- All Superinterfaces:
AbstractEdgeItem
,AbstractItem
,AbstractItem
,AbstractModelItem
,AbstractModelItem
,Groupable
,Groupable
,ReadOnlyInterface
,WritableInterface
- All Known Subinterfaces:
EffectorEdgeItem
,FluxEdgeItem
,GraphicsEdgeItem
,LinkEdgeItem
public interface AbstractEdgeItem extends AbstractModelItem, AbstractEdgeItem, Groupable
-
Method Summary
Modifier and Type Method Description AbstractNodeItem
dst()
Group
group()
AbstractEdge
modelComponent()
PatternPath
patternObject()
List<? extends AbstractCurvePoint>
points()
void
setAccessoryAnchorFloating(boolean accessoryAnchorFloating)
void
setAccessoryAnchorPlacement(AccessoryAnchorPlacement accessoryAnchorPlacement)
Changes the placement of the item's accessory anchor.void
setAccessoryAnchorPosition(double accessoryAnchorX, double accessoryAnchorY)
Changes the position of the item's accessory anchor.void
setAccessoryFloating(boolean accessoryAnchorFloating)
void
setAccessoryOrientation(Orientation accessoryOrientation)
Changes the layout (horizontal / vertical) of the item's accessory anchor.void
setAccessorySpacing(double accessorySpacing)
Changes the spacing of the item's accessory anchor.void
setDockingPositions(DockingPosition srcPort, DockingPosition dstPort)
Changes the docking positions of the edge at the source and destination nodes.void
setPoints(List<? extends AbstractCurvePoint> points)
default void
setPoints(AbstractCurvePoint... points)
AbstractNodeItem
src()
AbstractEdgeItem
toReadOnly()
Methods inherited from interface omix.plugin.diagram.AbstractEdgeItem
accessoryAnchorFloating, accessoryAnchorPlacement, accessoryAnchorX, accessoryAnchorY, accessoryFloating, accessoryOrientation, accessorySpacing, dstDockingPosition, hasInvalidPosition, isHidden, isPlacedOnLayoutPattern, srcDockingPosition
Methods inherited from interface omix.plugin.diagram.AbstractItem
addChangeListener, addPropertyChangeListener, getIdentifier, removeChangeListener, removePropertyChangeListener
Methods inherited from interface omix.plugin.diagram.AbstractModelItem
getAccessoryItem, getAccessoryItem
Methods inherited from interface omix.plugin.diagram.writable.AbstractModelItem
getAccessoryItem, getAccessoryItem, getAccessoryItems, getAccessoryItems, getAllAccessoryItems, getField, getField
-
Method Details
-
modelComponent
AbstractEdge modelComponent()- Specified by:
modelComponent
in interfaceAbstractEdgeItem
- Specified by:
modelComponent
in interfaceAbstractModelItem
- Specified by:
modelComponent
in interfaceAbstractModelItem
-
setDockingPositions
void setDockingPositions(@NonNull DockingPosition srcPort, @NonNull DockingPosition dstPort) throws IllegalChangeExceptionChanges the docking positions of the edge at the source and destination nodes.- Parameters:
srcPort
- - port of the edge at the source node. null causes no change.dstPort
- - port of the edge at the destination node. null causes no change.- Throws:
IllegalChangeException
- See Also:
DockingPosition
-
group
Group group() -
src
AbstractNodeItem src()- Specified by:
src
in interfaceAbstractEdgeItem
-
dst
AbstractNodeItem dst()- Specified by:
dst
in interfaceAbstractEdgeItem
-
setAccessoryAnchorPosition
void setAccessoryAnchorPosition(double accessoryAnchorX, double accessoryAnchorY) throws IllegalChangeExceptionChanges the position of the item's accessory anchor.- Parameters:
accessoryAnchorX
-accessoryAnchorY
-- Throws:
IllegalChangeException
-
setAccessorySpacing
Changes the spacing of the item's accessory anchor.- Parameters:
accessorySpacing
-- Throws:
IllegalChangeException
-
setAccessoryOrientation
Changes the layout (horizontal / vertical) of the item's accessory anchor.- Parameters:
accessoryOrientation
-- Throws:
IllegalChangeException
-
setAccessoryAnchorFloating
- Parameters:
accessoryAnchorFloating
-- Throws:
IllegalChangeException
-
setAccessoryFloating
- Parameters:
accessoryAnchorFloating
-- Throws:
IllegalChangeException
-
setAccessoryAnchorPlacement
void setAccessoryAnchorPlacement(AccessoryAnchorPlacement accessoryAnchorPlacement) throws IllegalChangeExceptionChanges the placement of the item's accessory anchor.- Parameters:
accessoryAnchorPlacement
-- Throws:
IllegalChangeException
-
points
List<? extends AbstractCurvePoint> points()- Specified by:
points
in interfaceAbstractEdgeItem
-
setPoints
void setPoints(List<? extends AbstractCurvePoint> points) throws IllegalComponentException, IllegalChangeException -
setPoints
default void setPoints(AbstractCurvePoint... points) throws IllegalComponentException, IllegalChangeException -
toReadOnly
AbstractEdgeItem toReadOnly()- Specified by:
toReadOnly
in interfaceAbstractItem
- Specified by:
toReadOnly
in interfaceAbstractModelItem
- Specified by:
toReadOnly
in interfaceGroupable
- Specified by:
toReadOnly
in interfaceWritableInterface
-
patternObject
PatternPath patternObject()- Specified by:
patternObject
in interfaceAbstractEdgeItem
-