Package jexer.bits
Class BorderStyle
- java.lang.Object
-
- jexer.bits.BorderStyle
-
public class BorderStyle extends java.lang.ObjectA text box border style.
-
-
Field Summary
Fields Modifier and Type Field Description static BorderStyleDEFAULTThe default border style.static BorderStyleDOUBLEA double-line border.static BorderStyleNONEThe "no-border" style.static BorderStyleSINGLEA single-line border.static BorderStyleSINGLE_H_DOUBLE_VA double-line border on the vertical sections, single-line on the horizontal sections.static BorderStyleSINGLE_ROUNDA single-line border with round corners.static BorderStyleSINGLE_V_DOUBLE_HA 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 intgetBottomLeft()Get the glyph for the bottom-left corner.intgetBottomRight()Get the glyph for the bottom-right corner.intgetHorizontal()Get the glyph for horizontal sections.static BorderStylegetStyle(java.lang.String borderStyle)Public constructor returns one of the static BorderStyle instances.intgetTopLeft()Get the glyph for the top-left corner.intgetTopRight()Get the glyph for the top-right corner.intgetVertical()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.
-
-