Package jexer.bits

Class BorderStyle


  • public class BorderStyle
    extends java.lang.Object
    A text box border style.
    • Field Detail

      • DEFAULT

        public static final BorderStyle DEFAULT
        The default border style. Synonym for SINGLE.
      • NONE

        public static final BorderStyle NONE
        The "no-border" style.
      • SINGLE

        public static final BorderStyle SINGLE
        A single-line border.
      • DOUBLE

        public static final BorderStyle DOUBLE
        A double-line border.
      • SINGLE_V_DOUBLE_H

        public static final BorderStyle SINGLE_V_DOUBLE_H
        A single-line border on the vertical sections, double-line on the horizontal sections.
      • SINGLE_H_DOUBLE_V

        public static final BorderStyle SINGLE_H_DOUBLE_V
        A double-line border on the vertical sections, single-line on the horizontal sections.
      • SINGLE_ROUND

        public static final BorderStyle SINGLE_ROUND
        A single-line border with round corners.
    • Method Detail

      • getStyle

        public static final BorderStyle getStyle​(java.lang.String borderStyle)
        Public constructor returns one of the static BorderStyle instances.
        Parameters:
        borderStyle - the border style string, one of: "default", "none", "single", "double", "singleVdoubleH", "singleHdoubleV", or "round"
        Returns:
        BorderStyle.SINGLE, BorderStyle.DOUBLE, etc.
      • getHorizontal

        public final int getHorizontal()
        Get the glyph for horizontal sections.
        Returns:
        the glyph for horizontal sections.
      • getVertical

        public final int getVertical()
        Get the glyph for vertical sections.
        Returns:
        the glyph for vertical sections.
      • getTopLeft

        public final int getTopLeft()
        Get the glyph for the top-left corner.
        Returns:
        the glyph for the top-left corner.
      • getTopRight

        public final int getTopRight()
        Get the glyph for the top-right corner.
        Returns:
        the glyph for the top-right corner.
      • getBottomLeft

        public final int getBottomLeft()
        Get the glyph for the bottom-left corner.
        Returns:
        the glyph for the bottom-left corner.
      • getBottomRight

        public final int getBottomRight()
        Get the glyph for the bottom-right corner.
        Returns:
        the glyph for the bottom-right corner.