|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<DotStyle>
edu.mit.csail.sdg.alloy4graph.DotStyle
public enum DotStyle
Immutable; this defines the set of possible line styles (SOLID, DASHED, DOTTED...)
Thread Safety: Can be called only by the AWT event thread.
| Enum Constant Summary | |
|---|---|
BOLD
Bold line. |
|
DASHED
Dashed line. |
|
DOTTED
Dotted line. |
|
SOLID
Solid line. |
|
| 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 DotStyle |
parse(java.lang.String x)
This method is used in parsing the XML value into a valid style; returns null if there is no match. |
java.lang.String |
toString()
This value is used in writing XML. |
static DotStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DotStyle[] |
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 DotStyle SOLID
public static final DotStyle DASHED
public static final DotStyle DOTTED
public static final DotStyle BOLD
| Method Detail |
|---|
public static DotStyle[] values()
for (DotStyle c : DotStyle.values()) System.out.println(c);
public static DotStyle 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 DotStyle parse(java.lang.String x)
public java.lang.String toString()
toString in class java.lang.Enum<DotStyle>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||