public class EdgePart extends AbstractFXContentPart<Connection> implements ITransformableContentPart<javafx.scene.Node,Connection>, IBendableContentPart<javafx.scene.Node,Connection>
EdgePart
is the controller for an Edge
content object. It
uses Connection
for the visualization.contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, content
active, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisual
contentAnchoragesUnmodifiable, contentChildrenUnmodifiable, content
anchoragesUnmodifiable, anchoredsUnmodifiable, children, parent, refreshVisual
adapters
active
IBendableContentPart.BendPoint
IAdaptable.Bound<A 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.
|
protected static java.lang.String |
SOURCE_ROLE
The role used for attaching to the source node.
|
protected static java.lang.String |
TARGET_ROLE
The role used for attaching to the target node.
|
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 |
addChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child,
int index) |
protected void |
attachToAnchorageVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> anchorage,
java.lang.String role) |
void |
bendContent(java.util.List<IBendableContentPart.BendPoint> bendPoints) |
protected Connection |
createVisual() |
protected void |
detachFromAnchorageVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> anchorage,
java.lang.String role) |
protected void |
doActivate() |
protected void |
doAttachToContentAnchorage(java.lang.Object contentAnchorage,
java.lang.String role) |
protected void |
doDeactivate() |
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) |
Edge |
getContent() |
javafx.scene.Node |
getCurve()
Returns the
Node that displays the edge. |
protected void |
removeChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child,
int index) |
void |
transformContent(AffineTransform transform) |
addContentChild, attachToContentAnchorage, contentAnchoragesUnmodifiableProperty, contentChildrenUnmodifiableProperty, contentProperty, detachFromContentAnchorage, doAddContentChild, doRemoveContentChild, doReorderContentChild, getContentAnchoragesUnmodifiable, getContentChildrenUnmodifiable, isFocusable, isSelectable, onContentChanged, refreshContentAnchorages, refreshContentChildren, register, registerAtContentPartMap, removeContentChild, reorderContentChild, setContent, unregister, unregisterFromContentPartMap
activate, activateChildren, activeProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenProperty, deactivate, deactivateChildren, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getParent, getPolicies, getRoot, getViewer, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, registerAtVisualPartMap, removeChild, removeChildren, 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, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter
activate, activeProperty, deactivate, isActive
dispose
protected static final java.lang.String SOURCE_ROLE
protected static final java.lang.String TARGET_ROLE
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 addChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child, int index)
addChildVisual
in class AbstractVisualPart<javafx.scene.Node,Connection>
protected void attachToAnchorageVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> anchorage, java.lang.String role)
attachToAnchorageVisual
in class AbstractVisualPart<javafx.scene.Node,Connection>
public void bendContent(java.util.List<IBendableContentPart.BendPoint> bendPoints)
bendContent
in interface IBendableContentPart<javafx.scene.Node,Connection>
protected Connection createVisual()
createVisual
in class AbstractVisualPart<javafx.scene.Node,Connection>
protected void detachFromAnchorageVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> anchorage, java.lang.String role)
detachFromAnchorageVisual
in class AbstractVisualPart<javafx.scene.Node,Connection>
protected void doActivate()
doActivate
in class AbstractVisualPart<javafx.scene.Node,Connection>
protected void doAttachToContentAnchorage(java.lang.Object contentAnchorage, java.lang.String role)
doAttachToContentAnchorage
in class AbstractContentPart<javafx.scene.Node,Connection>
protected void doDeactivate()
doDeactivate
in class AbstractVisualPart<javafx.scene.Node,Connection>
protected void doDetachFromContentAnchorage(java.lang.Object contentAnchorage, java.lang.String role)
doDetachFromContentAnchorage
in class AbstractContentPart<javafx.scene.Node,Connection>
protected com.google.common.collect.SetMultimap<? extends java.lang.Object,java.lang.String> doGetContentAnchorages()
doGetContentAnchorages
in class AbstractContentPart<javafx.scene.Node,Connection>
protected java.util.List<? extends java.lang.Object> doGetContentChildren()
doGetContentChildren
in class AbstractContentPart<javafx.scene.Node,Connection>
protected void doRefreshVisual(Connection visual)
doRefreshVisual
in class AbstractVisualPart<javafx.scene.Node,Connection>
public Edge getContent()
getContent
in interface IContentPart<javafx.scene.Node,Connection>
getContent
in class AbstractContentPart<javafx.scene.Node,Connection>
public javafx.scene.Node getCurve()
Node
that displays the edge.Node
used to display the edge.protected void removeChildVisual(IVisualPart<javafx.scene.Node,? extends javafx.scene.Node> child, int index)
removeChildVisual
in class AbstractVisualPart<javafx.scene.Node,Connection>
public void transformContent(AffineTransform transform)
transformContent
in interface ITransformableContentPart<javafx.scene.Node,Connection>
Copyright (c) 2014 itemis AG and others. All rights reserved.