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 theTableBodyinterface.
-
-
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 TgetBottomDividerEdge()Returns the table row's bottom divider edge character, for example "╪" (head) or "╧" (tail).TgetBottomLeftEdge()Returns the table row's bottom right edge character, for example "╟" (head) or "╙" (tail).TgetBottomRightEdge()Returns the table row's bottom left edge character, for example "╡" (head) or "╛" (tail).TgetDividerEdge()Returns the table body's top divider edge character, for example "┼" / the table body's top divider edge character, for example "╤".TgetDividerLine()Returns the table row's divider line character, for example "│".TgetLeftEdge()Returns the table body's top left edge character, for example "├" / the table header's top left edge character, for example "╒".TgetLeftLine()Returns the table row's left line character, for example "│".TgetRightEdge()Returns the table body's top right edge character, for example "┤" / the table header's top right edge character, for example "╕".TgetRightLine()Returns the table row's right line character, for example "│".TgetTopDividerEdge()Returns the table row's bottom divider edge character, for example "╪" (head) or "╧" (tail).TgetTopLeftEdge()Returns the table body's top left edge character, for example "├" / the table header's top left edge character, for example "╒".TgetTopLine()Returns the table row's top line character, for example "─" (body) or "═" (head).TgetTopRightEdge()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:TableBodyReturns the table body's top left edge character, for example "├" / the table header's top left edge character, for example "╒".- Specified by:
getLeftEdgein 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:
getTopLeftEdgein 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:
getBottomLeftEdgein 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:
getDividerEdgein 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:
getTopDividerEdgein 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:
getBottomDividerEdgein 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:
getRightEdgein 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:
getTopRightEdgein 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:
getBottomRightEdgein interfaceBottomRightEdgeAccessor<T>- Returns:
- The bottom left edge character.
-
getLeftLine
public T getLeftLine()
Returns the table row's left line character, for example "│".- Specified by:
getLeftLinein interfaceTableBody<T>- Returns:
- The left line character.
-
getDividerLine
public T getDividerLine()
Returns the table row's divider line character, for example "│".- Specified by:
getDividerLinein interfaceTableBody<T>- Returns:
- The divider line character.
-
getRightLine
public T getRightLine()
Returns the table row's right line character, for example "│".- Specified by:
getRightLinein 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:
getTopLinein interfaceTableBody<T>- Returns:
- The top line character.
-
-