public enum Shape extends Enum<Shape> implements IsShape
Enum Constant and Description |
---|
BACK_SLASHED_LINE
Draws a back slashed line.
|
BOX
Draws a box on the tile.
|
CROSS
Draws a cross on the tile.
|
CROSS_DASH
Draws a cross and a dash on the tile.
|
DASH
Draws a dash on the tile.
|
DIAGONAL
Draws a diagonal (from left to right) on the tile.
|
DIAMOND
Draws a diamond on the tile.
|
DIAMOND_BOX
Draws a diamond and a box on the tile.
|
DISC
Draws a disc on the tile.
|
DOT
Draws a dot on the tile.
|
DOT_DASH
Draws a dot and a dash on the tile.
|
DOUBLE_DIAGONAL
Draws a double diagonals on the tile.
|
EMPTY_STAR
Draws a start (no filled) on the tile.
|
INVERTED_DIAGONAL
Draws a diagonal (from right to left) on the tile.
|
INVERTED_DOUBLE_DIAGONAL
Draws a double diagonals (from right to left) on the tile.
|
INVERTED_TRIANGLE
Draws a triangle (with spike down) on the tile.
|
LINE
Draws a line on the tile.
|
PLUS
Draws a plus on the tile.
|
RING
Draws a ring on the tile.
|
SLASHED_LINE
Draws a slashed line.
|
SOLID
Draws an empty tile.
|
SQUARE
Draws a square on the tile.
|
STAR
Draws a star.
|
TRIANGLE
Draws a triangle on the tile.
|
VERTICAL_LINE
Draws a line vertically on the tile.
|
VERTICAL_ZIGZAG
Draws a zig zag vertically on the tile.
|
WEAVE
Draws a weave on the tile.
|
ZIGZAG
Draws a zig zag line on the tile.
|
Modifier and Type | Method and Description |
---|---|
ShapeDrawer |
getDrawer()
Returns the instance of shape drawer.
|
String |
getKeyPrefix()
Returns a unique key prefix for shape to use into cache.
|
String |
value()
Returns the name value of property
|
static Shape |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Shape[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
checkIfValid, isValid
checkIfValid, compare, create, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid
public static final Shape BACK_SLASHED_LINE
public static final Shape BOX
public static final Shape CROSS
public static final Shape CROSS_DASH
public static final Shape DASH
public static final Shape DIAGONAL
public static final Shape DIAMOND
public static final Shape DIAMOND_BOX
public static final Shape DISC
public static final Shape DOT
public static final Shape DOT_DASH
public static final Shape DOUBLE_DIAGONAL
public static final Shape EMPTY_STAR
public static final Shape INVERTED_DIAGONAL
public static final Shape INVERTED_DOUBLE_DIAGONAL
public static final Shape INVERTED_TRIANGLE
public static final Shape LINE
public static final Shape PLUS
public static final Shape RING
public static final Shape SLASHED_LINE
public static final Shape SOLID
public static final Shape STAR
public static final Shape SQUARE
public static final Shape TRIANGLE
public static final Shape WEAVE
public static final Shape ZIGZAG
public static final Shape VERTICAL_LINE
public static final Shape VERTICAL_ZIGZAG
public static Shape[] values()
for (Shape c : Shape.values()) System.out.println(c);
public static Shape 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 String value()
Key
public String getKeyPrefix()
IsShape
getKeyPrefix
in interface IsShape
public ShapeDrawer getDrawer()
IsShape