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 String |
CSS_CLASS
The CSS class that is assigned to the visual of this
EdgePart . |
static String |
CSS_CLASS_CURVE
|
static 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 Node> child,
int index) |
protected void |
doAttachToAnchorageVisual(IVisualPart<? extends Node> anchorage,
String role) |
protected void |
doAttachToContentAnchorage(Object contentAnchorage,
String role) |
protected Connection |
doCreateVisual() |
protected void |
doDeactivate() |
protected void |
doDetachFromAnchorageVisual(IVisualPart<? extends Node> anchorage,
String role) |
protected void |
doDetachFromContentAnchorage(Object contentAnchorage,
String role) |
protected com.google.common.collect.SetMultimap<? extends Object,String> |
doGetContentAnchorages() |
protected List<? extends Object> |
doGetContentChildren() |
protected void |
doRefreshVisual(Connection visual) |
protected void |
doRemoveChildVisual(IVisualPart<? extends Node> child,
int index) |
Edge |
getContent() |
List<IBendableContentPart.BendPoint> |
getContentBendPoints() |
Node |
getCurve()
Returns the
Node that displays the edge. |
void |
setContentBendPoints(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 String CSS_CLASS
EdgePart
.public static final String CSS_CLASS_CURVE
public static final String CSS_CLASS_DECORATION
protected void doActivate()
doActivate
in class AbstractVisualPart<Connection>
protected void doAddChildVisual(IVisualPart<? extends Node> child, int index)
doAddChildVisual
in class AbstractVisualPart<Connection>
protected void doAttachToAnchorageVisual(IVisualPart<? extends Node> anchorage, String role)
doAttachToAnchorageVisual
in class AbstractVisualPart<Connection>
protected void doAttachToContentAnchorage(Object contentAnchorage, 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 Node> anchorage, String role)
doDetachFromAnchorageVisual
in class AbstractVisualPart<Connection>
protected void doDetachFromContentAnchorage(Object contentAnchorage, String role)
doDetachFromContentAnchorage
in class AbstractContentPart<Connection>
protected com.google.common.collect.SetMultimap<? extends Object,String> doGetContentAnchorages()
doGetContentAnchorages
in class AbstractContentPart<Connection>
protected List<? extends Object> doGetContentChildren()
doGetContentChildren
in class AbstractContentPart<Connection>
protected void doRefreshVisual(Connection visual)
doRefreshVisual
in class AbstractVisualPart<Connection>
protected void doRemoveChildVisual(IVisualPart<? extends Node> child, int index)
doRemoveChildVisual
in class AbstractVisualPart<Connection>
public Edge getContent()
getContent
in interface IContentPart<Connection>
getContent
in class AbstractContentPart<Connection>
public List<IBendableContentPart.BendPoint> getContentBendPoints()
getContentBendPoints
in interface IBendableContentPart<Connection>
public Node getCurve()
Node
that displays the edge.Node
used to display the edge.public void setContentBendPoints(List<IBendableContentPart.BendPoint> bendPoints)
setContentBendPoints
in interface IBendableContentPart<Connection>
Copyright (c) 2014 itemis AG and others. All rights reserved.