@XStreamConverter(value=SidesConverter.class) public final class Sides extends Object implements Overwriting, CloneBehavior<Sides>, Serializable
SidesConverter
,
Serialized FormModifier and Type | Field and Description |
---|---|
boolean |
bottom
Whether or not botton (south) side should be displayed.
|
static String |
BOTTOM |
boolean |
left
Whether or not left (west) side should be displayed.
|
static String |
LEFT |
static String |
NONE |
boolean |
right
Whether or not right (east) side should be displayed.
|
static String |
RIGHT |
boolean |
top
Whether or not top (north) side should be displayed.
|
static String |
TOP
Sides constants.
|
Constructor and Description |
---|
Sides()
Constructs sides display settings.
|
Sides(boolean display)
Constructs sides display settings.
|
Sides(boolean topBottom,
boolean leftRight)
Constructs sides display settings.
|
Sides(boolean top,
boolean leftRight,
boolean bottom)
Constructs sides display settings.
|
Sides(boolean top,
boolean left,
boolean bottom,
boolean right)
Constructs sides display settings.
|
Modifier and Type | Method and Description |
---|---|
Sides |
clone(RecursiveClone clone,
int depth) |
boolean |
isAny()
Returns whether or not at least one side should be displayed.
|
boolean |
isOverwrite() |
String |
toString() |
public static final String TOP
public static final String LEFT
public static final String BOTTOM
public static final String RIGHT
public static final String NONE
public final boolean top
public final boolean left
public final boolean bottom
public final boolean right
public Sides()
public Sides(boolean display)
display
- whether or not all sides should be displayedpublic Sides(boolean topBottom, boolean leftRight)
topBottom
- whether or not top and bottom sides should be displayedleftRight
- whether or not left and right sides should be displayedpublic Sides(boolean top, boolean leftRight, boolean bottom)
top
- whether or not top side should be displayedleftRight
- whether or not left and right sides should be displayedbottom
- whether or not bottom side should be displayedpublic Sides(boolean top, boolean left, boolean bottom, boolean right)
top
- whether or not top side should be displayedleft
- whether or not left side should be displayedbottom
- whether or not bottom side should be displayedright
- whether or not right side should be displayedpublic boolean isAny()
true
if at least one side should be displayed, false
otherwisepublic boolean isOverwrite()
isOverwrite
in interface Overwriting
@NotNull public Sides clone(@NotNull RecursiveClone clone, int depth)
clone
in interface CloneBehavior<Sides>
Copyright © 2020. All rights reserved.