Package se.conciliate.extensions.type
Interface SymbolVariant
- All Superinterfaces:
Type
A symbol of a given type can have different variants that are
drawn differently, such as a woman or a man for the "individual" type.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Dimension
Returns this variants default frame size.Returns this variants default size.getType()
Returns the symbol type of this variant.boolean
Returns true if the default size can be edited, that is, if symbols of this type should be able to change its size.default boolean
Returns true if the frame size can be edited, that is, if symbols of this type should be able to change its size.
-
Method Details
-
getType
SymbolType getType()Returns the symbol type of this variant. For example, the symbol type "Individual" would be returned for both the variants "Individual".Man and "Individual".Woman.- Returns:
- the symbol type of this variant.
-
getDefaultSize
Dimension getDefaultSize()Returns this variants default size. All variants must have a default type.- Returns:
- this variants default size - never null.
-
isDefaultSizeEditable
boolean isDefaultSizeEditable()Returns true if the default size can be edited, that is, if symbols of this type should be able to change its size. False is returned otherwise.- Returns:
- true if the default size can be edited, false otherwise.
-
getDefaultFrameSize
Returns this variants default frame size.- Returns:
- this variants default size.
-
isFrameSizeEditable
default boolean isFrameSizeEditable()Returns true if the frame size can be edited, that is, if symbols of this type should be able to change its size. False is returned otherwise.- Returns:
- true if the frame size can be edited, false otherwise.
-