public final class PlainTableFrame extends Object
Provides a frame of the table's borders.
Constructor and Description |
---|
PlainTableFrame()
Initializes a new instance
of the
PlainTableFrame class. |
PlainTableFrame(PlainTableFrameAngle angles,
PlainTableFrameEdge edges,
PlainTableFrameIntersection intersections,
PlainTableFrameConfig config)
Initializes a new instance
of the
PlainTableFrame class. |
Modifier and Type | Method and Description |
---|---|
static boolean |
areCellEquals(TableCell left,
TableCell right)
Compares two cells.
|
PlainTableFrameAngle |
getAngles()
Gets an angles of the frame.
|
PlainTableFrameConfig |
getConfig()
Gets a configuration of the frame.
|
char |
getCross(TableCell topLeft,
TableCell topRight,
TableCell bottomLeft,
TableCell bottomRight)
Returns a symbol of the cross.
|
PlainTableFrameEdge |
getEdges()
Gets an edges of the frame.
|
String |
getHorizontal(TableCell top,
TableCell bottom,
int columnWidth)
Returns a horizontal edge.
|
PlainTableFrameIntersection |
getIntersections()
Gets a intersections of the frame.
|
char |
getVertical(TableCell left,
TableCell right)
Returns a vertical edge.
|
public PlainTableFrame()
Initializes a new instance
of the PlainTableFrame
class.
public PlainTableFrame(PlainTableFrameAngle angles, PlainTableFrameEdge edges, PlainTableFrameIntersection intersections, PlainTableFrameConfig config)
Initializes a new instance
of the PlainTableFrame
class.
angles
- The angles of the frame.edges
- The edges of the frame.intersections
- The intersections of the frame.config
- The configuration of the frame.public PlainTableFrameAngle getAngles()
Gets an angles of the frame.
PlainTableFrameAngle
class.public PlainTableFrameEdge getEdges()
Gets an edges of the frame.
PlainTableFrameEdge
class.public PlainTableFrameIntersection getIntersections()
Gets a intersections of the frame.
PlainTableFrameIntersection
class.public PlainTableFrameConfig getConfig()
Gets a configuration of the frame.
PlainTableFrameConfig
class.public static boolean areCellEquals(TableCell left, TableCell right)
Compares two cells.
left
- The left cell.right
- The right cell.public char getVertical(TableCell left, TableCell right)
Returns a vertical edge.
left
- The left cell.right
- The right cell.public String getHorizontal(TableCell top, TableCell bottom, int columnWidth)
Returns a horizontal edge.
top
- The top cell.bottom
- The bottom cell.columnWidth
- The width of the column.public char getCross(TableCell topLeft, TableCell topRight, TableCell bottomLeft, TableCell bottomRight)
Returns a symbol of the cross.
topLeft
- The top-left cell.topRight
- The top-right cell.bottomLeft
- The bottom-left cell.bottomRight
- The bottom-right cell.Copyright © 2018. All rights reserved.