Enum BoxBorderMode



  • public enum BoxBorderMode
    extends java.lang.Enum<BoxBorderMode>
    The BoxBorderMode specifies for according algorithms on how a box is to be drawn.
    • Method Detail

      • values

        public static BoxBorderMode[] values​()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BoxBorderMode c : BoxBorderMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BoxBorderMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.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