Interface ModelingLookAndFeel.Pattern

Enclosing interface:
ModelingLookAndFeel

public static interface ModelingLookAndFeel.Pattern
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Pattern types decied the relationship between the pattern elements.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the pattern should be centered around the starting variant, false to center around end variant.
    Returns the preferred size between symbols in different directions.
    Returns the variant pattern.
    Returns the pattern type deciding how the pattern parts relate to each other.
    boolean
    Returns true if the pattern should be horizontal, false otherwise.
    Returns a variant from the pattern that a realisation of the pattern must never end on.
  • Method Details

    • getPattern

      List<SymbolVariant> getPattern()
      Returns the variant pattern.
      Returns:
      the variant pattern
    • isHorizontal

      boolean isHorizontal()
      Returns true if the pattern should be horizontal, false otherwise.
      Returns:
      true if the pattern should be horizontal, false otherwise
    • neverEndOn

      SymbolVariant neverEndOn()
      Returns a variant from the pattern that a realisation of the pattern must never end on. (Think of the pattern as a lazy list. When realising this lazy list, the realisation must never end with this element). If this pattern has no preference, null may be returned.
      Returns:
      a variant from the pattern that a realisation must never end on, or null if this pattern has no ending preference.
    • getType

      Returns the pattern type deciding how the pattern parts relate to each other.
      Returns:
      the pattern type
    • centerAroundStart

      boolean centerAroundStart()
      Returns true if the pattern should be centered around the starting variant, false to center around end variant. Centering refers to how symbols are laid out. Either new symbols will be horizontally laid out (as determined by #isHorizontal()) with its y-values centered around the start or end (as determined by this method) or it will be vertically laid out with its x-values centered around the start or end.
      Returns:
      true to center symbols around the start symbol, false to center around end symbol.
    • getGap

      Insets getGap()
      Returns the preferred size between symbols in different directions.