Package org.refcodes.mixin
Class TableBodyImpl<T>
- java.lang.Object
-
- org.refcodes.mixin.TableBodyImpl<T>
-
- Type Parameters:
T
- The type of the "character", may be a char or a sprite or a byte array.
- All Implemented Interfaces:
BottomDividerEdgeAccessor<T>
,BottomLeftEdgeAccessor<T>
,BottomRightEdgeAccessor<T>
,TableBody<T>
- Direct Known Subclasses:
TableHeaderImpl
public class TableBodyImpl<T> extends java.lang.Object implements TableBody<T>
Implementation of theTableBody
interface.
-
-
Constructor Summary
Constructors Constructor Description TableBodyImpl(T aLeftLine, T aLeftEdge, T aTopLeftEdge, T aBottomLeftEdge, T aTopLine, T aDividerLine, T aDividerEdge, T aTopDividerEdge, T aBottomDividerEdge, T aRightLine, T aRightEdge, T aTopRightEdge, T aBottomRightEdge)
Constructs the table tail.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getBottomDividerEdge()
Returns the table row's bottom divider edge character, for example "╪" (head) or "╧" (tail).T
getBottomLeftEdge()
Returns the table row's bottom right edge character, for example "╟" (head) or "╙" (tail).T
getBottomRightEdge()
Returns the table row's bottom left edge character, for example "╡" (head) or "╛" (tail).T
getDividerEdge()
Returns the table body's top divider edge character, for example "┼" / the table body's top divider edge character, for example "╤".T
getDividerLine()
Returns the table row's divider line character, for example "│".T
getLeftEdge()
Returns the table body's top left edge character, for example "├" / the table header's top left edge character, for example "╒".T
getLeftLine()
Returns the table row's left line character, for example "│".T
getRightEdge()
Returns the table body's top right edge character, for example "┤" / the table header's top right edge character, for example "╕".T
getRightLine()
Returns the table row's right line character, for example "│".T
getTopDividerEdge()
Returns the table row's bottom divider edge character, for example "╪" (head) or "╧" (tail).T
getTopLeftEdge()
Returns the table body's top left edge character, for example "├" / the table header's top left edge character, for example "╒".T
getTopLine()
Returns the table row's top line character, for example "─" (body) or "═" (head).T
getTopRightEdge()
Returns the table body's top right edge character, for example "┤" / the table header's top right edge character, for example "╕".
-
-
-
Constructor Detail
-
TableBodyImpl
public TableBodyImpl(T aLeftLine, T aLeftEdge, T aTopLeftEdge, T aBottomLeftEdge, T aTopLine, T aDividerLine, T aDividerEdge, T aTopDividerEdge, T aBottomDividerEdge, T aRightLine, T aRightEdge, T aTopRightEdge, T aBottomRightEdge)
Constructs the table tail.- Parameters:
aLeftLine
- The left line.aLeftEdge
- The top left edge.aTopLeftEdge
- the top left edgeaBottomLeftEdge
- the bottom left edgeaTopLine
- The top line.aDividerLine
- the divider lineaDividerEdge
- The divider edge.aTopDividerEdge
- The top divider edge.aBottomDividerEdge
- The bottom divider edge.aRightLine
- The right line.aRightEdge
- The right edge.aTopRightEdge
- the top right edgeaBottomRightEdge
- the bottom right edge
-
-
Method Detail
-
getLeftEdge
public T getLeftEdge()
Description copied from interface:TableBody
Returns the table body's top left edge character, for example "├" / the table header's top left edge character, for example "╒".- Specified by:
getLeftEdge
in interfaceTableBody<T>
- Returns:
- The top left edge character.
-
getTopLeftEdge
public T getTopLeftEdge()
Returns the table body's top left edge character, for example "├" / the table header's top left edge character, for example "╒".- Specified by:
getTopLeftEdge
in interfaceTableBody<T>
- Returns:
- The top left edge character.
-
getBottomLeftEdge
public T getBottomLeftEdge()
Returns the table row's bottom right edge character, for example "╟" (head) or "╙" (tail).- Specified by:
getBottomLeftEdge
in interfaceBottomLeftEdgeAccessor<T>
- Returns:
- The bottom right edge character.
-
getDividerEdge
public T getDividerEdge()
Returns the table body's top divider edge character, for example "┼" / the table body's top divider edge character, for example "╤".- Specified by:
getDividerEdge
in interfaceTableBody<T>
- Returns:
- The top left edge character.
-
getTopDividerEdge
public T getTopDividerEdge()
Returns the table row's bottom divider edge character, for example "╪" (head) or "╧" (tail).- Specified by:
getTopDividerEdge
in interfaceTableBody<T>
- Returns:
- The bottom divider edge character.
-
getBottomDividerEdge
public T getBottomDividerEdge()
Returns the table row's bottom divider edge character, for example "╪" (head) or "╧" (tail).- Specified by:
getBottomDividerEdge
in interfaceBottomDividerEdgeAccessor<T>
- Returns:
- The bottom divider edge character.
-
getRightEdge
public T getRightEdge()
Returns the table body's top right edge character, for example "┤" / the table header's top right edge character, for example "╕".- Specified by:
getRightEdge
in interfaceTableBody<T>
- Returns:
- The top left edge character.
-
getTopRightEdge
public T getTopRightEdge()
Returns the table body's top right edge character, for example "┤" / the table header's top right edge character, for example "╕".- Specified by:
getTopRightEdge
in interfaceTableBody<T>
- Returns:
- The top left edge character.
-
getBottomRightEdge
public T getBottomRightEdge()
Returns the table row's bottom left edge character, for example "╡" (head) or "╛" (tail).- Specified by:
getBottomRightEdge
in interfaceBottomRightEdgeAccessor<T>
- Returns:
- The bottom left edge character.
-
getLeftLine
public T getLeftLine()
Returns the table row's left line character, for example "│".- Specified by:
getLeftLine
in interfaceTableBody<T>
- Returns:
- The left line character.
-
getDividerLine
public T getDividerLine()
Returns the table row's divider line character, for example "│".- Specified by:
getDividerLine
in interfaceTableBody<T>
- Returns:
- The divider line character.
-
getRightLine
public T getRightLine()
Returns the table row's right line character, for example "│".- Specified by:
getRightLine
in interfaceTableBody<T>
- Returns:
- The right line character.
-
getTopLine
public T getTopLine()
Returns the table row's top line character, for example "─" (body) or "═" (head).- Specified by:
getTopLine
in interfaceTableBody<T>
- Returns:
- The top line character.
-
-