public enum BoxBorderMode extends Enum<BoxBorderMode>
BoxBorderMode
specifies for according algorithms on how a box is
to be drawn.Enum Constant and Description |
---|
ALL |
BOTTOM |
BOTTOM_LEFT |
LEFT |
NONE |
RIGHT |
RIGHT_BOTTOM |
RIGHT_BOTTOM_LEFT |
RIGHT_LEFT |
TOP |
TOP_BOTTOM |
TOP_BOTTOM_LEFT |
TOP_LEFT |
TOP_RIGHT |
TOP_RIGHT_BOTTOM |
TOP_RIGHT_BOTTOM_LEFT |
TOP_RIGHT_LEFT |
Modifier and Type | Method and Description |
---|---|
static BoxBorderMode |
fromBoxBorders(boolean isTopBorder,
boolean isRightBorder,
boolean isBottomBorder,
boolean isLeftBorder)
From box borders.
|
boolean |
isBottomBorder()
Checks if is bottom border.
|
boolean |
isLeftBorder()
Checks if is left border.
|
boolean |
isRightBorder()
Checks if is right border.
|
boolean |
isTopBorder()
Checks if is top border.
|
static BoxBorderMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BoxBorderMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BoxBorderMode NONE
public static final BoxBorderMode LEFT
public static final BoxBorderMode BOTTOM
public static final BoxBorderMode BOTTOM_LEFT
public static final BoxBorderMode RIGHT
public static final BoxBorderMode RIGHT_LEFT
public static final BoxBorderMode RIGHT_BOTTOM
public static final BoxBorderMode RIGHT_BOTTOM_LEFT
public static final BoxBorderMode TOP
public static final BoxBorderMode TOP_LEFT
public static final BoxBorderMode TOP_BOTTOM
public static final BoxBorderMode TOP_BOTTOM_LEFT
public static final BoxBorderMode TOP_RIGHT
public static final BoxBorderMode TOP_RIGHT_LEFT
public static final BoxBorderMode TOP_RIGHT_BOTTOM
public static final BoxBorderMode TOP_RIGHT_BOTTOM_LEFT
public static final BoxBorderMode ALL
public static BoxBorderMode[] values()
for (BoxBorderMode c : BoxBorderMode.values()) System.out.println(c);
public static BoxBorderMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isLeftBorder()
public boolean isTopBorder()
public boolean isRightBorder()
public boolean isBottomBorder()
public static BoxBorderMode fromBoxBorders(boolean isTopBorder, boolean isRightBorder, boolean isBottomBorder, boolean isLeftBorder)
isTopBorder
- the is top borderisRightBorder
- the is right borderisBottomBorder
- the is bottom borderisLeftBorder
- the is left borderCopyright © 2017. All rights reserved.