- All Superinterfaces:
AbstractModelComponent
,AbstractModelComponent
,AbstractNode
,AbstractVisibleComponent
,AbstractVisibleComponent
,ReadOnlyInterface
,WritableInterface
- All Known Subinterfaces:
AbstractBioNode
,GraphicsNode
,Link
,Metabolite
,Reaction
public interface AbstractNode extends AbstractVisibleComponent, AbstractNode
-
Method Summary
Modifier and Type Method Description List<? extends AbstractEdge>
edges()
List<? extends AbstractNodeItem>
getDiagramItems()
List<? extends AbstractNodeItem>
getDiagramItems(Diagram diagram)
List<? extends GraphicsEdge>
graphicsEdges()
returns all graphics edges this node is connected with.List<? extends LinkEdge>
linkEdges()
void
setBlur(double blur)
The blur of the node.void
setCollapsed(boolean collapsed)
void
setFillLevel(double fillLevel)
The filling level of the item's shape given as percentage value.void
setFillLevelIndication(FillLevelIndication fillLevelIndication)
The indication for filling of the item's shape.void
setFont(Font font)
The font of the text label of the item.void
setHidden(boolean hidden)
Changes the visibility of the item in the diagram.void
setPaint(Paint paint)
Sets the fill appearance of the item's shape.void
setScale(double scale)
The scale factor the node is displayed with.void
setShadow(Shadow shadow)
The shadow of the item.void
setShape(Shape shape)
The appearance of the metabolite node in the diagram.void
setStrokeColor(Color strokeColor)
The color for the stroke of the item's shape.void
setStrokeStyle(StrokeStyle strokeStyle)
The paint style for the stroke of the item's shape.void
setStrokeWidth(double strokeWidth)
The stroke width of the item's shape.void
setTextBrush(Brush textBrush)
The fill brush of the item's text label.void
setTextStrokeColor(Color textStrokeColor)
The color for the stroke of the item's text label.void
setTextStrokeWidth(double textStrokeWidth)
The stroke width of the item's text label.void
setTransparency(double transparency)
Changes the transparency of the item's shape.AbstractNode
toReadOnly()
Methods inherited from interface omix.plugin.model.AbstractModelComponent
addChangeListener, addPropertyChangeListener, fieldExists, removeChangeListener, removePropertyChangeListener
Methods inherited from interface omix.plugin.model.writable.AbstractModelComponent
getField, getField, isChangeable, model
Methods inherited from interface omix.plugin.model.AbstractNode
blur, collapsed, fillLevel, fillLevelIndication, font, getCustomProperty, getIdentifier, hidden, paint, scale, setCustomProperty, setTmpCustomProperty, shadow, shape, strokeColor, strokeStyle, strokeWidth, textBrush, textStrokeColor, textStrokeWidth, transparency
Methods inherited from interface omix.plugin.model.AbstractVisibleComponent
accessoryExists, getAccessory, getAccessory, hasDiagramItems, hasDiagramItems
Methods inherited from interface omix.plugin.model.writable.AbstractVisibleComponent
getAccessories, getAccessories, getAccessory, getAccessory, getAllAccessories, getCustomProperty, getMethod, getMethod, getMethod, setCustomProperty, setTmpCustomProperty
-
Method Details
-
setHidden
Changes the visibility of the item in the diagram.- Parameters:
hidden
-- Throws:
IllegalChangeException
-
setPaint
Sets the fill appearance of the item's shape.- Parameters:
paint
- the new paint- Throws:
IllegalChangeException
- See Also:
Node#paintField
-
setTransparency
Changes the transparency of the item's shape.- Parameters:
transparency
-- Throws:
IllegalChangeException
- See Also:
Node.transparency()
-
setStrokeWidth
The stroke width of the item's shape.- Throws:
IllegalChangeException
-
setTextStrokeWidth
The stroke width of the item's text label.- Throws:
IllegalChangeException
-
setScale
The scale factor the node is displayed with. Values less than 1.0 decreases the node's size. Values greater than 1.0 increases its size.- Throws:
IllegalChangeException
-
setFillLevel
The filling level of the item's shape given as percentage value.- Throws:
IllegalChangeException
-
setBlur
The blur of the node.- Throws:
IllegalChangeException
-
setCollapsed
- Throws:
IllegalChangeException
-
setShadow
The shadow of the item.- Throws:
IllegalChangeException
-
setStrokeColor
The color for the stroke of the item's shape.- Throws:
IllegalChangeException
-
setTextStrokeColor
The color for the stroke of the item's text label.- Throws:
IllegalChangeException
-
setStrokeStyle
The paint style for the stroke of the item's shape.- Throws:
IllegalChangeException
-
setShape
The appearance of the metabolite node in the diagram.- Throws:
IllegalChangeException
-
setFont
The font of the text label of the item.- Throws:
IllegalChangeException
-
setFillLevelIndication
The indication for filling of the item's shape.- Throws:
IllegalChangeException
-
setTextBrush
The fill brush of the item's text label.- Throws:
IllegalChangeException
-
getDiagramItems
List<? extends AbstractNodeItem> getDiagramItems()- Specified by:
getDiagramItems
in interfaceAbstractNode
- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
-
getDiagramItems
- Specified by:
getDiagramItems
in interfaceAbstractNode
- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
-
graphicsEdges
List<? extends GraphicsEdge> graphicsEdges()Description copied from interface:AbstractNode
returns all graphics edges this node is connected with.- Specified by:
graphicsEdges
in interfaceAbstractNode
- Returns:
- unchangeable list of custom edges
-
linkEdges
-
edges
List<? extends AbstractEdge> edges() -
toReadOnly
AbstractNode toReadOnly()- Specified by:
toReadOnly
in interfaceAbstractModelComponent
- Specified by:
toReadOnly
in interfaceAbstractVisibleComponent
- Specified by:
toReadOnly
in interfaceWritableInterface
-