edu.mit.csail.sdg.alloy4graph
Enum DotStyle

java.lang.Object
  extended by java.lang.Enum<DotStyle>
      extended by edu.mit.csail.sdg.alloy4graph.DotStyle
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DotStyle>

public enum DotStyle
extends java.lang.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

SOLID

public static final DotStyle SOLID
Solid line.


DASHED

public static final DotStyle DASHED
Dashed line.


DOTTED

public static final DotStyle DOTTED
Dotted line.


BOLD

public static final DotStyle BOLD
Bold line.

Method Detail

values

public static DotStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DotStyle c : DotStyle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DotStyle valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getDisplayedText

public java.lang.String getDisplayedText()
Returns the String that will be displayed in the GUI to represent this value.


getDotText

public java.lang.String getDotText()
Returns the String that should be written into the dot file for this value, when used with the given palette.


getIcon

public javax.swing.Icon getIcon()
Returns the Icon that will be displayed in the GUI to represent this value, when used with the given palette.


parse

public 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.


toString

public java.lang.String toString()
This value is used in writing XML.

Overrides:
toString in class java.lang.Enum<DotStyle>