- All Superinterfaces:
AbstractModelComponent
,AbstractVisibleComponent
,ReadOnlyInterface
- All Known Subinterfaces:
GraphicsBox
public interface GraphicsBox extends AbstractVisibleComponent
-
Method Summary
Modifier and Type Method Description double
blur()
The item's blur.Font
font()
The item's default text font.Object
getCustomProperty(String name)
Returns the value of the custom property or null if not available.List<? extends GraphicsBoxItem>
getDiagramItems()
List<? extends GraphicsBoxItem>
getDiagramItems(Diagram diagram)
String
getIdentifier()
boolean
hidden()
Visibility of the item.Paint
paint()
The fill appearance of the item's shape.double
scale()
The item's scale factor.void
setCustomProperty(String name, Object value)
Adds a custom property to the network item.void
setTmpCustomProperty(String name, Object value)
Adds a temporary custom property to the network item.Shadow
shadow()
The item's default text font.Shape
shape()
The item's shape.Color
strokeColor()
The color for the stroke of the item's shape.StrokeStyle
strokeStyle()
The paint style for the stroke of the item's shape.double
strokeWidth()
The stroke width of the item's shape.String
text()
returns the item's Text.double
transparency()
The item's transparency.VerticalAlignment
verticalTextAlignment()
Vertical text alignmentMethods inherited from interface omix.plugin.model.AbstractModelComponent
addChangeListener, addPropertyChangeListener, fieldExists, getField, getField, model, removeChangeListener, removePropertyChangeListener
Methods inherited from interface omix.plugin.model.AbstractVisibleComponent
accessoryExists, getAccessories, getAccessories, getAccessory, getAccessory, getAccessory, getAccessory, getAllAccessories, hasDiagramItems, hasDiagramItems
-
Method Details
-
getDiagramItems
List<? extends GraphicsBoxItem> getDiagramItems()- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
-
getDiagramItems
- Specified by:
getDiagramItems
in interfaceAbstractVisibleComponent
-
getIdentifier
String getIdentifier()- Specified by:
getIdentifier
in interfaceAbstractModelComponent
-
strokeColor
Color strokeColor()The color for the stroke of the item's shape. -
paint
Paint paint()The fill appearance of the item's shape. -
blur
double blur()The item's blur. -
transparency
double transparency()The item's transparency. -
strokeStyle
StrokeStyle strokeStyle()The paint style for the stroke of the item's shape. -
strokeWidth
double strokeWidth()The stroke width of the item's shape. -
scale
double scale()The item's scale factor. -
font
Font font()The item's default text font. -
shadow
Shadow shadow()The item's default text font. -
boolean hidden()Visibility of the item.
- Returns:
- hidden
-
text
String text()returns the item's Text.- Returns:
- text
-
shape
Shape shape()The item's shape.- Returns:
- shape
-
verticalTextAlignment
VerticalAlignment verticalTextAlignment()Vertical text alignment- Returns:
- verticalTextAlignment
-
setCustomProperty
Adds a custom property to the network item. Each item can carry arbitrary values as custom property. The property content is stored to the document file as far as possible. If the value cannot be saved to file, the property is removed after relaunch. Custom properties can be accessed from all namespaces. Set null to remove property. Setting custom properties in OVL is undoable.- Parameters:
name
-value
-- Throws:
IllegalAccessException
- See Also:
setTmpCustomProperty(String, Object)
,getCustomProperty(String)
,#customPropertyNames()
-
setTmpCustomProperty
Adds a temporary custom property to the network item. Each item can carry arbitrary values as custom property. The property content is not stored to the document file. Instead, the property is removed after relaunch. Custom properties can be accessed from all namespaces. Set null to remove property. Setting custom properties in OVL is undoable.- Parameters:
name
-value
-- Throws:
IllegalAccessException
- See Also:
setCustomProperty(String, Object)
,getCustomProperty(String)
,#customPropertyNames()
-
getCustomProperty
Returns the value of the custom property or null if not available.- Parameters:
name
-- Returns:
- value
-