- All Superinterfaces:
AbstractItem
,AbstractItem
,AbstractModelItem
,AbstractModelItem
,AbstractNodeItem
,Groupable
,Groupable
,ReadOnlyInterface
,WritableInterface
- All Known Subinterfaces:
AbstractBioNodeItem
,GraphicsNodeItem
,LinkItem
,MetaboliteItem
,ReactionItem
public interface AbstractNodeItem extends AbstractModelItem, AbstractNodeItem, Groupable
-
Method Summary
Modifier and Type Method Description List<? extends Comment>
comments()
Comment
getComment(String identifier)
List<? extends GraphicsEdgeItem>
graphicsEdges()
Group
group()
List<? extends LinkEdgeItem>
linkEdges()
AbstractNode
modelComponent()
PatternItem
patternObject()
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 accessoryFloating)
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
setCollapsed(boolean collapsed)
Changes the collapsed-state of the item in the diagram.void
setDefaultCollapsed()
Changes the collapsed-state of the item in the diagram.void
setHidden(boolean hidden)
Changes the property hidden of the item.void
setLabelFloating(boolean floating)
Changes the property floating of the item's label.void
setLabelHidden(boolean hidden)
Changes the property hidden of the item's label.void
setLabelPlacement(NodeLabelPlacement labelPlacement)
Changes the placement of the item's label.void
setLabelPosition(double labelX, double labelY)
Changes the position of the item's label.void
setLabelRotation(double labelRotation)
Changes the rotation of the item's label.void
setPosition(double x, double y)
Set the position of the item.void
setSize(double width, double height)
Changes the item's size.void
setZValue(double z)
Change z value of the item (defines the stacked position of the item in the diagram).AbstractNodeItem
toReadOnly()
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
Methods inherited from interface omix.plugin.diagram.AbstractNodeItem
accessoryAnchorFloating, accessoryAnchorPlacement, accessoryAnchorX, accessoryAnchorY, accessoryFloating, accessoryOrientation, accessorySpacing, collapsed, commentExists, getCustomProperty, hasInvalidPosition, height, hidden, isPlacedOnLayoutPattern, labelFloating, labelHidden, labelPlacement, labelRotation, labelX, labelY, setCustomProperty, setTmpCustomProperty, width, x, y, zValue
-
Method Details
-
modelComponent
AbstractNode modelComponent()- Specified by:
modelComponent
in interfaceAbstractModelItem
- Specified by:
modelComponent
in interfaceAbstractModelItem
- Specified by:
modelComponent
in interfaceAbstractNodeItem
-
setPosition
Set the position of the item.- Parameters:
x
-y
-- Throws:
IllegalChangeException
-
setSize
Changes the item's size.- Parameters:
width
-height
-- Throws:
IllegalChangeException
-
setZValue
Change z value of the item (defines the stacked position of the item in the diagram).- Parameters:
z
-- Throws:
IllegalChangeException
-
setLabelPosition
Changes the position of the item's label.- Parameters:
labelX
-labelY
-- Throws:
IllegalChangeException
-
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:
accessoryFloating
-- Throws:
IllegalChangeException
-
setAccessoryAnchorPlacement
void setAccessoryAnchorPlacement(AccessoryAnchorPlacement accessoryAnchorPlacement) throws IllegalChangeExceptionChanges the placement of the item's accessory anchor.- Parameters:
accessoryAnchorPlacement
-- Throws:
IllegalChangeException
-
setLabelRotation
Changes the rotation of the item's label.- Parameters:
labelRotation
- rotation in degrees- Throws:
IllegalChangeException
-
setLabelPlacement
Changes the placement of the item's label.- Parameters:
labelPlacement
- rotation in degrees- Throws:
IllegalChangeException
-
setLabelFloating
Changes the property floating of the item's label.- Parameters:
floating
-- Throws:
IllegalChangeException
-
setLabelHidden
Changes the property hidden of the item's label.- Parameters:
hidden
-- Throws:
IllegalChangeException
-
setHidden
Changes the property hidden of the item.- Parameters:
hidden
-- Throws:
IllegalChangeException
-
setCollapsed
Changes the collapsed-state of the item in the diagram.- Parameters:
collapsed
-- Throws:
IllegalChangeException
-
setDefaultCollapsed
Changes the collapsed-state of the item in the diagram.- Parameters:
node
- the itemcollapsed
-- Throws:
IllegalChangeException
-
group
Group group() -
comments
- Specified by:
comments
in interfaceAbstractNodeItem
-
getComment
- Specified by:
getComment
in interfaceAbstractNodeItem
-
graphicsEdges
List<? extends GraphicsEdgeItem> graphicsEdges()- Specified by:
graphicsEdges
in interfaceAbstractNodeItem
-
linkEdges
List<? extends LinkEdgeItem> linkEdges() -
toReadOnly
AbstractNodeItem toReadOnly()- Specified by:
toReadOnly
in interfaceAbstractItem
- Specified by:
toReadOnly
in interfaceAbstractModelItem
- Specified by:
toReadOnly
in interfaceGroupable
- Specified by:
toReadOnly
in interfaceWritableInterface
-
patternObject
PatternItem patternObject()- Specified by:
patternObject
in interfaceAbstractNodeItem
-