public class EdgeLabelPart extends AbstractFXContentPart<javafx.scene.text.Text>
EdgeLabelPart is an AbstractVisualPart that is used to
display the label of an edge. It is created be an EdgeContentPart
upon activation. By separating the EdgeLabelPart from the
EdgeContentPart, bindings can be defined individually for both types
of parts.contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentPropertyactiveProperty, adaptersProperty, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, childrenProperty, parentProperty, refreshVisualPropertyanchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, childrenProperty, parentProperty, refreshVisualPropertyadaptersPropertyactivePropertyIAdaptable.Bound<A extends IAdaptable>| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CSS_CLASS_LABEL
The CSS class that is assigned to the visualization of the
EdgeLabelPart of this EdgeContentPart. |
CONTENT_ANCHORAGES_PROPERTY, CONTENT_CHILDREN_PROPERTY, CONTENT_PROPERTYANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTYADAPTERS_PROPERTYACTIVE_PROPERTY| Constructor and Description |
|---|
EdgeLabelPart() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attachToAnchorageVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> anchorage,
java.lang.String role) |
protected javafx.scene.text.Text |
createVisual() |
protected void |
detachFromAnchorageVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> anchorage,
java.lang.String role) |
protected com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> |
doGetContentAnchorages() |
protected java.util.List<? extends java.lang.Object> |
doGetContentChildren() |
protected void |
doRefreshVisual(javafx.scene.text.Text visual) |
javafx.util.Pair<Edge,java.lang.String> |
getContent() |
EdgeContentPart |
getHost()
Returns the
EdgeContentPart for which this EdgeLabelPart
displays the label. |
javafx.scene.transform.Translate |
getOffset()
Returns the offset that is currently applied to the label.
|
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, doAddContentChild, doAttachToContentAnchorage, doDetachFromContentAnchorage, doRemoveContentChild, doReorderContentChild, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, onContentChanged, recomputeContentChildren, register, registerAtContentPartMap, removeContentChild, reorderContentChild, setContent, unregister, unregisterFromContentPartMapactivate, activateChildren, activeProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, addChildVisual, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenProperty, deactivate, deactivateChildren, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, doActivate, doDeactivate, getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getParent, getPolicies, getRoot, getViewer, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, registerAtVisualPartMap, removeChild, removeChildren, removeChildVisual, reorderChild, setAdapter, setAdapter, setAdapter, setAdapter, setParent, setRefreshVisual, unregisterFromVisualPartMap, unsetAdapterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenProperty, detachAnchored, detachFromAnchorage, detachFromAnchorage, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getParent, getPolicies, getRoot, getVisual, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, removeChild, removeChildren, reorderChild, setParent, setRefreshVisualadaptersProperty, getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapteractivate, activeProperty, deactivate, isActivedisposepublic static final java.lang.String CSS_CLASS_LABEL
EdgeLabelPart of this EdgeContentPart.protected void attachToAnchorageVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> anchorage, java.lang.String role)
attachToAnchorageVisual in class AbstractVisualPart<javafx.scene.Node,javafx.scene.text.Text>protected javafx.scene.text.Text createVisual()
createVisual in class AbstractVisualPart<javafx.scene.Node,javafx.scene.text.Text>protected void detachFromAnchorageVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> anchorage, java.lang.String role)
detachFromAnchorageVisual in class AbstractVisualPart<javafx.scene.Node,javafx.scene.text.Text>protected void doRefreshVisual(javafx.scene.text.Text visual)
doRefreshVisual in class AbstractVisualPart<javafx.scene.Node,javafx.scene.text.Text>public javafx.util.Pair<Edge,java.lang.String> getContent()
getContent in interface IContentPart<javafx.scene.Node,javafx.scene.text.Text>getContent in class AbstractContentPart<javafx.scene.Node,javafx.scene.text.Text>protected com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> doGetContentAnchorages()
doGetContentAnchorages in class AbstractContentPart<javafx.scene.Node,javafx.scene.text.Text>protected java.util.List<? extends java.lang.Object> doGetContentChildren()
doGetContentChildren in class AbstractContentPart<javafx.scene.Node,javafx.scene.text.Text>public EdgeContentPart getHost()
EdgeContentPart for which this EdgeLabelPart
displays the label.EdgeContentPart for which this EdgeLabelPart
displays the label.public javafx.scene.transform.Translate getOffset()
Copyright (c) 2014 itemis AG and others. All rights reserved.