public class EdgeLabelPart extends AbstractLabelPart
EdgeLabelPart is an AbstractLabelPart that is used to
display the label of an edge.contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, contentactive, adaptable, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisualcontentAnchoragesUnmodifiable, contentChildrenUnmodifiable, contentanchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisualadaptersadaptableactiveIAdaptable.Bound<A extends IAdaptable>IAdaptable.Bound.Impl<T extends IAdaptable>CSS_CLASS_LABELTRANSFORM_PROVIDER_KEY, TRANSFORM_PROVIDER_ROLECONTENT_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 |
|---|---|
Point |
computeLabelPosition()
Computes a position for this label.
|
protected Group |
doCreateVisual() |
protected com.google.common.collect.SetMultimap<? extends Object,String> |
doGetContentAnchorages() |
protected void |
doRefreshVisual(Group visual) |
Pair<Edge,String> |
getContent() |
protected Point |
getEndPoint()
Computes the end position for placing a label.
|
protected IContentPart<? extends Connection> |
getFirstAnchorage()
Returns the
IContentPart for which this EdgeLabelPart
displays the label. |
protected Point |
getMidPoint()
Computes the middle position for placing a label.
|
protected Point |
getStartPoint()
Computes the start position for placing a label.
|
createText, doActivate, doAttachToAnchorageVisual, doDeactivate, doDetachFromAnchorageVisual, doGetContentChildren, getContentTransform, getLabelPosition, getLabelPositionAttributeKey, getText, recomputeLabelPosition, refreshPosition, setContentTransform, setLabelPositionaddContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, doAddContentChild, doAttachToContentAnchorage, doDetachFromContentAnchorage, doRemoveContentChild, doReorderContentChild, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, register, registerAtContentPartMap, removeContentChild, reorderContentChild, setContent, unregister, unregisterFromContentPartMapactivate, activateAdapters, activateChildren, activeProperty, adaptableProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, deactivate, deactivateAdapters, deactivateChildren, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, doAddChildVisual, doRemoveChildVisual, getAdaptable, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, registerAtVisualPartMap, removeChild, removeChildren, reorderChild, setAdaptable, setAdapter, setAdapter, setAdapter, setAdapter, setParent, setRefreshVisual, unregisterFromVisualPartMap, unsetAdapterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVisualTransform, setVisualTransformaddContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, removeContentChild, reorderContentChild, setContentaddChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, detachAnchored, detachFromAnchorage, detachFromAnchorage, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getViewer, getVisual, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, removeChild, removeChildren, reorderChild, setParent, setRefreshVisualadaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapteradaptableProperty, getAdaptable, setAdaptableactivate, activeProperty, deactivate, isActivedisposepublic Point computeLabelPosition()
AbstractLabelPartcomputeLabelPosition in class AbstractLabelPartGraphPart that contains this label.protected Group doCreateVisual()
doCreateVisual in class AbstractVisualPart<Group>protected com.google.common.collect.SetMultimap<? extends Object,String> doGetContentAnchorages()
doGetContentAnchorages in class AbstractContentPart<Group>protected void doRefreshVisual(Group visual)
doRefreshVisual in class AbstractVisualPart<Group>public Pair<Edge,String> getContent()
getContent in interface IContentPart<Group>getContent in class AbstractLabelPartprotected Point getEndPoint()
protected IContentPart<? extends Connection> getFirstAnchorage()
IContentPart for which this EdgeLabelPart
displays the label.IContentPart for which this EdgeLabelPart
displays the label.protected Point getMidPoint()
protected Point getStartPoint()
Copyright (c) 2014 itemis AG and others. All rights reserved.