public class EdgeLabelPart extends AbstractLabelPart
EdgeLabelPart
is an AbstractVisualPart
that is used to
display the label of an edge.contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, content
active, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisual
contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, content
anchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisual
adapters
active
IAdaptable.Bound<A extends IAdaptable>
CSS_CLASS_LABEL
CONTENT_ANCHORAGES_PROPERTY, CONTENT_CHILDREN_PROPERTY, CONTENT_PROPERTY
ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTY
ADAPTERS_PROPERTY
ACTIVE_PROPERTY
Constructor and Description |
---|
EdgeLabelPart() |
Modifier and Type | Method and Description |
---|---|
Point |
computeLabelPosition()
Computes a position for this label.
|
protected javafx.scene.Group |
createVisual() |
protected com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> |
doGetContentAnchorages() |
protected void |
doRefreshVisual(javafx.scene.Group visual) |
javafx.util.Pair<Edge,java.lang.String> |
getContent() |
protected IContentPart<javafx.scene.Node,? extends Connection> |
getFirstAnchorage()
Returns the
IContentPart for which this EdgeLabelPart
displays the label. |
attachToAnchorageVisual, createText, detachFromAnchorageVisual, doGetContentChildren, getLabelPositionAttributeKey, getStoredLabelPosition, getText, refreshPosition, setStoredLabelPosition, transformContent
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, doAddContentChild, doAttachToContentAnchorage, doDetachFromContentAnchorage, doRemoveContentChild, doReorderContentChild, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, onContentChanged, refreshContentAnchorages, refreshContentChildren, register, registerAtContentPartMap, removeContentChild, reorderContentChild, setContent, unregister, unregisterFromContentPartMap
activate, 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, unsetAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, removeContentChild, reorderContentChild, setContent
addChild, 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, setRefreshVisual
adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter
activate, activeProperty, deactivate, isActive
dispose
public Point computeLabelPosition()
AbstractLabelPart
computeLabelPosition
in class AbstractLabelPart
GraphPart
that contains this label.protected javafx.scene.Group createVisual()
createVisual
in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>
protected com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> doGetContentAnchorages()
doGetContentAnchorages
in class AbstractContentPart<javafx.scene.Node,javafx.scene.Group>
protected void doRefreshVisual(javafx.scene.Group visual)
doRefreshVisual
in class AbstractVisualPart<javafx.scene.Node,javafx.scene.Group>
public javafx.util.Pair<Edge,java.lang.String> getContent()
getContent
in interface IContentPart<javafx.scene.Node,javafx.scene.Group>
getContent
in class AbstractLabelPart
protected IContentPart<javafx.scene.Node,? extends Connection> getFirstAnchorage()
IContentPart
for which this EdgeLabelPart
displays the label.IContentPart
for which this EdgeLabelPart
displays the label.Copyright (c) 2014 itemis AG and others. All rights reserved.