public final class PlainTableFrameIntersection extends Object
Provides the information of symbols of intersections.
Modifier and Type | Field and Description |
---|---|
static PlainTableFrameIntersection |
ASCII
Frame intersections for ASCII style.
|
static PlainTableFrameIntersection |
SIMPLE
Frame intersections for Simple style.
|
Constructor and Description |
---|
PlainTableFrameIntersection(char left,
char top,
char right,
char bottom,
char cross)
Initializes a new instance
of the
PlainTableFrameIntersection class. |
Modifier and Type | Method and Description |
---|---|
char |
checkIntersection(boolean left,
boolean top,
boolean right,
boolean bottom)
Returns a symbol of the intersection.
|
char |
getBottom()
Gets a top intersection to horizontal edge.
|
char |
getCross()
Gets a cross intersection.
|
char |
getLeft()
Gets a left intersection to vertical edge.
|
char |
getRight()
Gets a right intersection to vertical edge.
|
char |
getTop()
Gets a bottom intersection to horizontal edge.
|
public static final PlainTableFrameIntersection SIMPLE
Frame intersections for Simple style.
public static final PlainTableFrameIntersection ASCII
Frame intersections for ASCII style.
public PlainTableFrameIntersection(char left, char top, char right, char bottom, char cross)
Initializes a new instance
of the PlainTableFrameIntersection
class.
left
- Symbol of a left intersection to vertical edge.top
- Symbol of a bottom intersection to horizontal edge.right
- Symbol of a right intersection to vertical edge.bottom
- Symbol of a top intersection to horizontal edge.cross
- Symbol of a cross intersection.public char getLeft()
Gets a left intersection to vertical edge.
public char getTop()
Gets a bottom intersection to horizontal edge.
public char getRight()
Gets a right intersection to vertical edge.
public char getBottom()
Gets a top intersection to horizontal edge.
public char getCross()
Gets a cross intersection.
public char checkIntersection(boolean left, boolean top, boolean right, boolean bottom)
Returns a symbol of the intersection.
left
- Indicates whether the intersection has left line.top
- Indicates whether the intersection has top line.right
- Indicates whether the intersection has right line.bottom
- Indicates whether the intersection has bottom line.Copyright © 2019. All rights reserved.