Interface SymbolVariant

All Superinterfaces:
Type

public interface SymbolVariant extends 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 Type
    Method
    Description
    default Dimension
    Returns this variants default frame size.
    Returns this variants default size.
    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.

    Methods inherited from interface se.conciliate.extensions.type.Type

    definedBy, getID, getName, getName
  • 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

      default Dimension 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.