Enum Constant and Description |
---|
BIGCROSS
Describes a big cross, drawn at the specified location.
|
CIRCLE
Describes a circle (only the outline is drawn).
|
CIRCLEARC
Describes an arc of a circle.
|
CLOSED
Describes a closed polygon with only the outline drawn.
|
CROSS
Describes a small cross, drawn at the specified location.
|
CROSSED
Describes a closed rectangle with the outline drawn and an "X" drawn through it.
|
DISC
Describes a filled circle.
|
FILLED
Describes a closed polygon which is filled in.
|
OPENED
Describes an open outline.
|
OPENEDT1
Describes an open outline, drawn with a dotted texture.
|
OPENEDT2
Describes an open outline, drawn with a dashed texture.
|
OPENEDT3
Describes an open outline, drawn with thicker lines.
|
TEXTBOT
Describes text that should be placed so that the Poly point is at the bottom-center.
|
TEXTBOTLEFT
Describes text that should be placed so that the Poly point is at the lower-left.
|
TEXTBOTRIGHT
Describes text that should be placed so that the Poly point is at the lower-right.
|
TEXTBOX
Describes text that is centered in the Poly and must remain inside.
|
TEXTCENT
Describes text that should be centered about the Poly point.
|
TEXTLEFT
Describes text that should be placed so that the Poly point is at the left-center.
|
TEXTRIGHT
Describes text that should be placed so that the Poly point is at the right-center.
|
TEXTTOP
Describes text that should be placed so that the Poly point is at the top-center.
|
TEXTTOPLEFT
Describes text that should be placed so that the Poly point is at the upper-left.
|
TEXTTOPRIGHT
Describes text that should be placed so that the Poly point is at the upper-right.
|
THICKCIRCLE
Describes a circle, drawn with thick lines (only the outline is drawn).
|
THICKCIRCLEARC
Describes an arc of a circle, drawn with thick lines.
|
VECTORS
Describes a vector endpoint pairs, solid.
|
Modifier and Type | Method and Description |
---|---|
int |
getTextAngle()
Method to get the "angle" of a style of text.
|
static Poly.Type |
getTextTypeFromAngle(int angle)
Method to get a text Type from an angle.
|
boolean |
isOpened()
Method to tell whether this is a style that can draw an opened polygon.
|
boolean |
isText()
Method to tell whether this Poly Style is text.
|
java.lang.String |
toString()
Returns a printable version of this Type.
|
static Poly.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Poly.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Poly.Type FILLED
public static final Poly.Type CLOSED
public static final Poly.Type CROSSED
public static final Poly.Type OPENED
public static final Poly.Type OPENEDT1
public static final Poly.Type OPENEDT2
public static final Poly.Type OPENEDT3
public static final Poly.Type VECTORS
public static final Poly.Type CIRCLE
public static final Poly.Type THICKCIRCLE
public static final Poly.Type DISC
public static final Poly.Type CIRCLEARC
public static final Poly.Type THICKCIRCLEARC
public static final Poly.Type TEXTCENT
public static final Poly.Type TEXTTOP
public static final Poly.Type TEXTBOT
public static final Poly.Type TEXTLEFT
public static final Poly.Type TEXTRIGHT
public static final Poly.Type TEXTTOPLEFT
public static final Poly.Type TEXTBOTLEFT
public static final Poly.Type TEXTTOPRIGHT
public static final Poly.Type TEXTBOTRIGHT
public static final Poly.Type TEXTBOX
public static final Poly.Type CROSS
public static final Poly.Type BIGCROSS
public static Poly.Type[] values()
for (Poly.Type c : Poly.Type.values()) System.out.println(c);
public static Poly.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isText()
public java.lang.String toString()
toString
in class java.lang.Enum<Poly.Type>
public boolean isOpened()
public int getTextAngle()
public static Poly.Type getTextTypeFromAngle(int angle)
angle
- of the text anchor.