|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<LineStyle>
net.sourceforge.swtlayeredgraph.LineStyle
public enum LineStyle
Defines the available/known line types and how they are mapped to SWT line types.
| Enum Constant Summary | |
|---|---|
DASH
|
|
DASH_DOT
|
|
DASH_DOT_DOT
|
|
DOT
|
|
POINTS
|
|
SOLID
|
|
| Method Summary | |
|---|---|
static LineStyle |
fromString(java.lang.String value)
Parses the incoming string into the correct LineStyle type. |
java.lang.Integer |
getInt()
Gets the integer value that defines what SWT line type this corresponds to. |
java.lang.String |
getText()
Gets the name/text description for this item. |
static LineStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static LineStyle[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final LineStyle SOLID
public static final LineStyle POINTS
public static final LineStyle DOT
public static final LineStyle DASH
public static final LineStyle DASH_DOT
public static final LineStyle DASH_DOT_DOT
| Method Detail |
|---|
public static final LineStyle[] values()
for(LineStyle c : LineStyle.values())
System.out.println(c);
public static LineStyle 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 namepublic java.lang.String getText()
public java.lang.Integer getInt()
public static LineStyle fromString(java.lang.String value)
value - Type to look for.
java.lang.IllegalArgumentException - If value is null, empty or is not a known type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||