java.lang.Object
org.refcodes.mixin.BoxGridImpl<T>
- Type Parameters:
T
- The type of the grid elements for drawing a box grid, may be a char or a sprite or a byte array.
- All Implemented Interfaces:
BoxGrid<T>
Implementation of the
BoxGrid
interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.BoxGrid
BoxGrid.BoxGridBuilder<T,
B>, BoxGrid.BoxGridMutator<T>, BoxGrid.BoxGridProperty<T> -
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor to be used by sub-classes setting the member variables by themselves.BoxGridImpl
(T aTopLeftEdge, T aTopLine, T aTopDividerEdge, T aTopRightEdge, T aRightLine, T aRightEdge, T aBottomRightEdge, T aBottomLine, T aBottomDividerEdge, T aBottomLeftEdge, T aLeftLine, T aLeftEdge, T aDividerLine, T aDividerEdge, T aInnerLine) Constructs theBoxGrid
instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the box's bottom divider edge character, for example "┴".Returns the box's bottom left edge character, for example "└".Returns the box's bottom line character, for example "─".Returns the box's bottom right edge character, for example "┘".Returns the box's divider edge character, for example "┼".Returns the box's divider line character, for example "│".Returns the box's inner line character, for example "─".Returns the box's left edge character, for example "├".Returns the box's left line character, for example "│".Returns the box's right edge character, for example "┤".Returns the box row's right line character, for example "│".Returns the box's top divider edge character, for example "┬".Returns the box's top left edge character, for example "┌".Returns the box's top line character, for example "─" .Returns the box's top right edge character, for example "┐".
-
Field Details
-
_leftEdge
-
_topLeftEdge
-
_dividerEdge
-
_topDividerEdge
-
_bottomDividerEdge
-
_rightEdge
-
_topRightEdge
-
_bottomRightEdge
-
_bottomLeftEdge
-
_leftLine
-
_dividerLine
-
_rightLine
-
_topLine
-
_bottomLine
-
_innerLine
-
-
Constructor Details
-
BoxGridImpl
protected BoxGridImpl()Default constructor to be used by sub-classes setting the member variables by themselves. -
BoxGridImpl
public BoxGridImpl(T aTopLeftEdge, T aTopLine, T aTopDividerEdge, T aTopRightEdge, T aRightLine, T aRightEdge, T aBottomRightEdge, T aBottomLine, T aBottomDividerEdge, T aBottomLeftEdge, T aLeftLine, T aLeftEdge, T aDividerLine, T aDividerEdge, T aInnerLine) Constructs theBoxGrid
instance.- Parameters:
aTopLeftEdge
- the top left edge, for example "├".aTopLine
- The top line, for example "─" .aTopDividerEdge
- The top divider edge, for example "┬".aTopRightEdge
- the top right edge, for example "┐".aRightLine
- The right line, for example "│".aRightEdge
- The right edge, for example "┤".aBottomRightEdge
- the bottom right edge, for example "┘".aBottomLine
- The bottom line, for example "─".aBottomDividerEdge
- The bottom divider edge, for example "┴".aBottomLeftEdge
- the bottom left edge, for example "└".aLeftLine
- The left line, for example "│".aLeftEdge
- The top left edge, for example "├".aDividerLine
- the divider line, for example "│".aDividerEdge
- The divider edge, for example "┼".aInnerLine
- The inner line, for example "─".
-
-
Method Details
-
getLeftEdge
Returns the box's left edge character, for example "├".- Specified by:
getLeftEdge
in interfaceBoxGrid<T>
- Returns:
- The left edge character.
-
getTopLeftEdge
Returns the box's top left edge character, for example "┌".- Specified by:
getTopLeftEdge
in interfaceBoxGrid<T>
- Returns:
- The top left edge character.
-
getBottomLeftEdge
Returns the box's bottom left edge character, for example "└".- Specified by:
getBottomLeftEdge
in interfaceBoxGrid<T>
- Returns:
- The bottom left edge character.
-
getDividerEdge
Returns the box's divider edge character, for example "┼".- Specified by:
getDividerEdge
in interfaceBoxGrid<T>
- Returns:
- The divider edge character.
-
getTopDividerEdge
Returns the box's top divider edge character, for example "┬".- Specified by:
getTopDividerEdge
in interfaceBoxGrid<T>
- Returns:
- The top divider edge character.
-
getBottomDividerEdge
Returns the box's bottom divider edge character, for example "┴".- Specified by:
getBottomDividerEdge
in interfaceBoxGrid<T>
- Returns:
- The bottom divider edge character.
-
getRightEdge
Returns the box's right edge character, for example "┤".- Specified by:
getRightEdge
in interfaceBoxGrid<T>
- Returns:
- The top left edge character.
-
getTopRightEdge
Returns the box's top right edge character, for example "┐".- Specified by:
getTopRightEdge
in interfaceBoxGrid<T>
- Returns:
- The top right edge character.
-
getBottomRightEdge
Returns the box's bottom right edge character, for example "┘".- Specified by:
getBottomRightEdge
in interfaceBoxGrid<T>
- Returns:
- The bottom left edge character.
-
getLeftLine
Returns the box's left line character, for example "│".- Specified by:
getLeftLine
in interfaceBoxGrid<T>
- Returns:
- The left line character.
-
getDividerLine
Returns the box's divider line character, for example "│".- Specified by:
getDividerLine
in interfaceBoxGrid<T>
- Returns:
- The divider line character.
-
getRightLine
Returns the box row's right line character, for example "│".- Specified by:
getRightLine
in interfaceBoxGrid<T>
- Returns:
- The right line character.
-
getTopLine
Returns the box's top line character, for example "─" .- Specified by:
getTopLine
in interfaceBoxGrid<T>
- Returns:
- The top line character.
-
getBottomLine
Returns the box's bottom line character, for example "─".- Specified by:
getBottomLine
in interfaceBoxGrid<T>
- Returns:
- The bottom line character.
-
getInnerLine
Returns the box's inner line character, for example "─".- Specified by:
getInnerLine
in interfaceBoxGrid<T>
- Returns:
- The inner line character.
-