Package jexer.bits
Class BorderStyle
- java.lang.Object
-
- jexer.bits.BorderStyle
-
public class BorderStyle extends java.lang.Object
A text box border style.
-
-
Field Summary
Fields Modifier and Type Field Description static BorderStyle
DEFAULT
The default border style.static BorderStyle
DOUBLE
A double-line border.static BorderStyle
NONE
The "no-border" style.static BorderStyle
SINGLE
A single-line border.static BorderStyle
SINGLE_H_DOUBLE_V
A double-line border on the vertical sections, single-line on the horizontal sections.static BorderStyle
SINGLE_ROUND
A single-line border with round corners.static BorderStyle
SINGLE_V_DOUBLE_H
A single-line border on the vertical sections, double-line on the horizontal sections.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBottomLeft()
Get the glyph for the bottom-left corner.int
getBottomRight()
Get the glyph for the bottom-right corner.int
getHorizontal()
Get the glyph for horizontal sections.static BorderStyle
getStyle(java.lang.String borderStyle)
Public constructor returns one of the static BorderStyle instances.int
getTopLeft()
Get the glyph for the top-left corner.int
getTopRight()
Get the glyph for the top-right corner.int
getVertical()
Get the glyph for vertical sections.
-
-
-
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.
-
-