Enum Class BoxBorderMode

java.lang.Object
java.lang.Enum<BoxBorderMode>
org.refcodes.graphical.BoxBorderMode
All Implemented Interfaces:
Serializable, Comparable<BoxBorderMode>, Constable

public enum BoxBorderMode extends Enum<BoxBorderMode>
The BoxBorderMode specifies for according algorithms on how a box is to be drawn.
  • Enum Constant Details

  • Method Details

    • values

      public static BoxBorderMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BoxBorderMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isLeftBorder

      public boolean isLeftBorder()
      Checks if is left border.
      Returns:
      true, if is left border
    • isTopBorder

      public boolean isTopBorder()
      Checks if is top border.
      Returns:
      true, if is top border
    • isRightBorder

      public boolean isRightBorder()
      Checks if is right border.
      Returns:
      true, if is right border
    • isBottomBorder

      public boolean isBottomBorder()
      Checks if is bottom border.
      Returns:
      true, if is bottom border
    • fromBoxBorders

      public static BoxBorderMode fromBoxBorders(boolean isTopBorder, boolean isRightBorder, boolean isBottomBorder, boolean isLeftBorder)
      From box borders.
      Parameters:
      isTopBorder - the is top border
      isRightBorder - the is right border
      isBottomBorder - the is bottom border
      isLeftBorder - the is left border
      Returns:
      the box border mode