- All Superinterfaces:
AbstractModelComponent
,AbstractModelComponent
,AbstractVisibleComponent
,AbstractVisibleComponent
,GraphicsBox
,ReadOnlyInterface
,WritableInterface
public interface GraphicsBox extends AbstractVisibleComponent, GraphicsBox
-
Method Summary
Modifier and Type Method Description List<? extends GraphicsBoxItem>
getDiagramItems()
List<? extends GraphicsBoxItem>
getDiagramItems(Diagram diagram)
void
setFont(Font font)
Changes the font of the text label of the item.void
setHidden(boolean hidden)
Changes the visibility of the item in the diagram.void
setIdentifier(String identifier)
Changes identifier of the item.void
setPaint(Paint paint)
Sets the fill appearance of the item's shape.void
setScale(double scale)
Changes the scale factor the node is displayed with.void
setShadow(Shadow shadow)
Changes the item's shadow.void
setShape(Shape shape)
Changes the appearance of the metabolite node in the diagram.void
setStrokeColor(Color strokeColor)
Sets the color for the stroke of the item's shape.void
setStrokeStyle(StrokeStyle strokeStyle)
Changes the paint style for the stroke of the item's shape.void
setStrokeWidth(double strokeWidth)
Changes the stroke width of the item's shape.void
setText(String text)
Changes the item's text label.void
setTransparency(double transparency)
Changes the transparency of the item's shape.void
setVerticalTextAlignment(VerticalAlignment verticalTextAlignment)
Vertical text alignmentGraphicsBox
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.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
Methods inherited from interface omix.plugin.model.GraphicsBox
blur, font, getCustomProperty, getIdentifier, hidden, paint, scale, setCustomProperty, setTmpCustomProperty, shadow, shape, strokeColor, strokeStyle, strokeWidth, text, transparency, verticalTextAlignment
-
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
-
setScale
Changes the scale factor the node is displayed with.- Parameters:
scale
-- Throws:
IllegalChangeException
- See Also:
GraphicsItem.scale()
-
setStrokeWidth
Changes the stroke width of the item's shape.- Parameters:
strokeWidth
-- Throws:
IllegalChangeException
- See Also:
GraphicsItem.strokeWidth()
-
setFont
Changes the font of the text label of the item.- Parameters:
font
-- Throws:
IllegalChangeException
- See Also:
GraphicsItem.font()
-
setShape
Changes the appearance of the metabolite node in the diagram.- Parameters:
shape
-- Throws:
IllegalChangeException
- See Also:
GraphicsItem.shape()
-
setStrokeStyle
Changes the paint style for the stroke of the item's shape.- Parameters:
strokeStyle
-- Throws:
IllegalChangeException
- See Also:
GraphicsItem.strokeStyle()
-
setStrokeColor
Sets the color for the stroke of the item's shape.- Parameters:
strokeColor
-- Throws:
IllegalChangeException
- See Also:
GraphicsItem.strokeColor()
-
setTransparency
Changes the transparency of the item's shape.- Parameters:
transparency
-- Throws:
IllegalChangeException
- See Also:
GraphicsItem.transparency()
-
setText
Changes the item's text label.- Parameters:
text
-- Throws:
IllegalChangeException
- See Also:
GraphicsItem.text()
-
setShadow
Changes the item's shadow.- Parameters:
shadow
-- Throws:
IllegalChangeException
- See Also:
GraphicsItem.shadow()
-
setVerticalTextAlignment
void setVerticalTextAlignment(VerticalAlignment verticalTextAlignment) throws IllegalChangeExceptionVertical text alignment- Throws:
IllegalChangeException
-
setIdentifier
Changes identifier of the item.- Parameters:
identifier
- the new name of the item. CAUTION, the name must be unique in the network.- Throws:
ComponentExistsException
IllegalChangeException
-
getDiagramItems
List<? extends GraphicsBoxItem> getDiagramItems()- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
- Specified by:
getDiagramItems
in interfaceGraphicsBox
-
getDiagramItems
- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
- Specified by:
getDiagramItems
in interfaceGraphicsBox
-
toReadOnly
GraphicsBox toReadOnly()- Specified by:
toReadOnly
in interfaceAbstractModelComponent
- Specified by:
toReadOnly
in interfaceAbstractVisibleComponent
- Specified by:
toReadOnly
in interfaceWritableInterface
-