public class EdgePart extends AbstractContentPart<Connection> implements IBendableContentPart<Connection>
EdgePart
is the controller for an Edge
content object. It
uses Connection
for the visualization.contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, content
active, adaptable, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisual
contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, content
anchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisual
adapters
adaptable
active
IBendableContentPart.BendPoint
IAdaptable.Bound<A extends IAdaptable>
IAdaptable.Bound.Impl<T extends IAdaptable>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CSS_CLASS
The CSS class that is assigned to the visual of this
EdgePart . |
static java.lang.String |
CSS_CLASS_CURVE
|
static java.lang.String |
CSS_CLASS_DECORATION
CSS class assigned to the decorations.
|
CONTROL_ROLE_PREFIX, SOURCE_ROLE, TARGET_ROLE
TRANSFORM_PROVIDER_KEY, TRANSFORM_PROVIDER_ROLE
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 |
---|
EdgePart() |
Modifier and Type | Method and Description |
---|---|
protected void |
doActivate() |
protected void |
doAddChildVisual(IVisualPart<? extends javafx.scene.Node> child,
int index) |
protected void |
doAttachToAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage,
java.lang.String role) |
protected void |
doAttachToContentAnchorage(java.lang.Object contentAnchorage,
java.lang.String role) |
protected Connection |
doCreateVisual() |
protected void |
doDeactivate() |
protected void |
doDetachFromAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage,
java.lang.String role) |
protected void |
doDetachFromContentAnchorage(java.lang.Object contentAnchorage,
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(Connection visual) |
protected void |
doRemoveChildVisual(IVisualPart<? extends javafx.scene.Node> child,
int index) |
Edge |
getContent() |
java.util.List<IBendableContentPart.BendPoint> |
getContentBendPoints() |
javafx.scene.Node |
getCurve()
Returns the
Node that displays the edge. |
protected void |
refreshTooltip()
Changes the tooltip of this
EdgePart to the given value. |
void |
setContentBendPoints(java.util.List<IBendableContentPart.BendPoint> bendPoints) |
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, doAddContentChild, doRemoveContentChild, doReorderContentChild, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, register, registerAtContentPartMap, removeContentChild, reorderContentChild, setContent, unregister, unregisterFromContentPartMap
activate, activateAdapters, activateChildren, activeProperty, adaptableProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, deactivate, deactivateAdapters, deactivateChildren, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, 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, unsetAdapter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBendableVisual, getContentSize, getContentTransform, getRole, getVisualBendPoints, getVisualSize, getVisualTransform, setContentSize, setContentTransform, setVisualBendPoints, setVisualSize, setVisualTransform
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, refreshContentAnchorages, refreshContentChildren, removeContentChild, reorderContentChild, setContent
addChild, 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, setRefreshVisual
adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter
adaptableProperty, getAdaptable, setAdaptable
activate, activeProperty, deactivate, isActive
dispose
public static final java.lang.String CSS_CLASS
EdgePart
.public static final java.lang.String CSS_CLASS_CURVE
public static final java.lang.String CSS_CLASS_DECORATION
protected void doActivate()
doActivate
in class AbstractVisualPart<Connection>
protected void doAddChildVisual(IVisualPart<? extends javafx.scene.Node> child, int index)
doAddChildVisual
in class AbstractVisualPart<Connection>
protected void doAttachToAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage, java.lang.String role)
doAttachToAnchorageVisual
in class AbstractVisualPart<Connection>
protected void doAttachToContentAnchorage(java.lang.Object contentAnchorage, java.lang.String role)
doAttachToContentAnchorage
in class AbstractContentPart<Connection>
protected Connection doCreateVisual()
doCreateVisual
in class AbstractVisualPart<Connection>
protected void doDeactivate()
doDeactivate
in class AbstractVisualPart<Connection>
protected void doDetachFromAnchorageVisual(IVisualPart<? extends javafx.scene.Node> anchorage, java.lang.String role)
doDetachFromAnchorageVisual
in class AbstractVisualPart<Connection>
protected void doDetachFromContentAnchorage(java.lang.Object contentAnchorage, java.lang.String role)
doDetachFromContentAnchorage
in class AbstractContentPart<Connection>
protected com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> doGetContentAnchorages()
doGetContentAnchorages
in class AbstractContentPart<Connection>
protected java.util.List<? extends java.lang.Object> doGetContentChildren()
doGetContentChildren
in class AbstractContentPart<Connection>
protected void doRefreshVisual(Connection visual)
doRefreshVisual
in class AbstractVisualPart<Connection>
protected void doRemoveChildVisual(IVisualPart<? extends javafx.scene.Node> child, int index)
doRemoveChildVisual
in class AbstractVisualPart<Connection>
public Edge getContent()
getContent
in interface IContentPart<Connection>
getContent
in class AbstractContentPart<Connection>
public java.util.List<IBendableContentPart.BendPoint> getContentBendPoints()
getContentBendPoints
in interface IBendableContentPart<Connection>
public javafx.scene.Node getCurve()
Node
that displays the edge.Node
used to display the edge.protected void refreshTooltip()
EdgePart
to the given value.public void setContentBendPoints(java.util.List<IBendableContentPart.BendPoint> bendPoints)
setContentBendPoints
in interface IBendableContentPart<Connection>
Copyright (c) 2014 itemis AG and others. All rights reserved.