|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<DotShape>
edu.mit.csail.sdg.alloy4graph.DotShape
public enum DotShape
Immutable; this defines the set of possible node shapes (BOX, CIRCLE, ELLIPSE...)
Thread Safety: Can be called only by the AWT event thread.
Enum Constant Summary | |
---|---|
BOX
Box |
|
CIRCLE
Circle |
|
DIAMOND
Diamond |
|
DOUBLE_CIRCLE
Double Circle |
|
DOUBLE_OCTAGON
Double Octagon |
|
EGG
Egg |
|
ELLIPSE
Ellipse |
|
HEXAGON
Hexagon |
|
HOUSE
House |
|
INV_HOUSE
Inverted House |
|
INV_TRAPEZOID
Inverted Trapezoid |
|
INV_TRIANGLE
Inverted Triangle |
|
M_CIRCLE
Lined Circle |
|
M_DIAMOND
Lined Diamond |
|
M_SQUARE
Lined Square |
|
OCTAGON
Octagon |
|
PARALLELOGRAM
Parallelogram |
|
TRAPEZOID
Trapezoid |
|
TRIANGLE
Triangle |
|
TRIPLE_OCTAGON
Triple Octagon |
Method Summary | |
---|---|
java.lang.String |
getDisplayedText()
Returns the String that will be displayed in the GUI to represent this value. |
java.lang.String |
getDotText()
Returns the String that should be written into the dot file for this value, when used with the given palette. |
javax.swing.Icon |
getIcon()
Returns the Icon that will be displayed in the GUI to represent this value, when used with the given palette. |
static DotShape |
parse(java.lang.String x)
This method is used in parsing the XML value into a valid Shape; returns null if there is no match. |
java.lang.String |
toString()
This value is used in writing XML. |
static DotShape |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DotShape[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final DotShape ELLIPSE
public static final DotShape BOX
public static final DotShape CIRCLE
public static final DotShape EGG
public static final DotShape TRIANGLE
public static final DotShape DIAMOND
public static final DotShape TRAPEZOID
public static final DotShape PARALLELOGRAM
public static final DotShape HOUSE
public static final DotShape HEXAGON
public static final DotShape OCTAGON
public static final DotShape DOUBLE_CIRCLE
public static final DotShape DOUBLE_OCTAGON
public static final DotShape TRIPLE_OCTAGON
public static final DotShape INV_TRIANGLE
public static final DotShape INV_HOUSE
public static final DotShape INV_TRAPEZOID
public static final DotShape M_DIAMOND
public static final DotShape M_SQUARE
public static final DotShape M_CIRCLE
Method Detail |
---|
public static DotShape[] values()
for (DotShape c : DotShape.values()) System.out.println(c);
public static DotShape 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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDisplayedText()
public java.lang.String getDotText()
public javax.swing.Icon getIcon()
public static DotShape parse(java.lang.String x)
public java.lang.String toString()
toString
in class java.lang.Enum<DotShape>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |