- All Superinterfaces:
AbstractItem
,AbstractItem
,Comment
,Groupable
,Groupable
,ReadOnlyInterface
,WritableInterface
public interface Comment extends AbstractItem, Comment, Groupable
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Comment.Reply
-
Method Summary
Modifier and Type Method Description List<? extends Comment.Reply>
replies()
Returns an unchangeableList
of all replies.void
setBrush(Brush brush)
Sets the fill brush of the item's shape.void
setDefaultBrush()
Sets the fill brush of the item's shape to default.void
setDefaultFont()
Changes the font of the text label of the item.void
setDefaultStrokeColor()
Sets the color for the stroke of the item's shape.void
setDefaultStrokeStyle()
Changes the paint style for the stroke of the item's shape.void
setDefaultStrokeWidth()
Changes the stroke width of the item's shape.void
setDefaultTransparency()
Changes the transparency of the item's shape to default.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
setPosition(double x, double y)
Set the position of the item.void
setSize(double width, double height)
Changes the item's size.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)
void
setTransparency(double transparency)
Changes the transparency of the item's shape.void
setZValue(double z)
Change z layer of the item (defines the stacked position of the item in the diagram).Comment
toReadOnly()
Methods inherited from interface omix.plugin.diagram.AbstractItem
addChangeListener, addPropertyChangeListener, getIdentifier, removeChangeListener, removePropertyChangeListener
Methods inherited from interface omix.plugin.diagram.Comment
blur, brush, font, height, hidden, scale, strokeColor, strokeStyle, strokeWidth, text, transparency, width, x, y, zValue
-
Method Details
-
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
-
setPosition
Set the position of the item.- Parameters:
x
-y
-- Throws:
IllegalChangeException
-
setSize
Changes the item's size.- Parameters:
width
-height
-- Throws:
IllegalChangeException
-
setHidden
Changes the visibility of the item in the diagram.- Parameters:
hidden
-- Throws:
IllegalChangeException
-
setBrush
Sets the fill brush of the item's shape.- Parameters:
brush
- the new paint brush- Throws:
IllegalChangeException
- See Also:
Comment.brush()
-
setFont
Changes the font of the text label of the item.- Parameters:
font
-- Throws:
IllegalChangeException
- See Also:
Comment.font()
-
setStrokeWidth
Changes the stroke width of the item's shape.- Parameters:
strokeWidth
-- Throws:
IllegalChangeException
- See Also:
Comment.strokeWidth()
-
setStrokeStyle
Changes the paint style for the stroke of the item's shape.- Parameters:
strokeStyle
-- Throws:
IllegalChangeException
- See Also:
Comment.strokeStyle()
-
setStrokeColor
Sets the color for the stroke of the item's shape.- Parameters:
strokeColor
-- Throws:
IllegalChangeException
- See Also:
Comment.strokeColor()
-
setTransparency
Changes the transparency of the item's shape.- Parameters:
transparency
-- Throws:
IllegalChangeException
-
setZValue
Change z layer of the item (defines the stacked position of the item in the diagram).- Parameters:
z
-- Throws:
IllegalChangeException
-
setText
- Throws:
IllegalChangeException
-
setDefaultBrush
Sets the fill brush of the item's shape to default.- Throws:
IllegalChangeException
- See Also:
Comment.brush()
-
setDefaultFont
Changes the font of the text label of the item.- Throws:
IllegalChangeException
- See Also:
Comment.font()
-
setDefaultStrokeWidth
Changes the stroke width of the item's shape.- Throws:
IllegalChangeException
- See Also:
Comment.strokeWidth()
-
setDefaultStrokeStyle
Changes the paint style for the stroke of the item's shape.- Throws:
IllegalChangeException
- See Also:
Comment.strokeStyle()
-
setDefaultStrokeColor
Sets the color for the stroke of the item's shape.- Throws:
IllegalChangeException
- See Also:
Comment.strokeColor()
-
setDefaultTransparency
Changes the transparency of the item's shape to default.- Throws:
IllegalChangeException
- See Also:
Compartment.transparency()
-
replies
List<? extends Comment.Reply> replies()Description copied from interface:Comment
Returns an unchangeableList
of all replies. -
toReadOnly
Comment toReadOnly()- Specified by:
toReadOnly
in interfaceAbstractItem
- Specified by:
toReadOnly
in interfaceGroupable
- Specified by:
toReadOnly
in interfaceWritableInterface
-