net.ogdf.ogml
Enum ShapeType

java.lang.Object
  extended by java.lang.Enum<ShapeType>
      extended by net.ogdf.ogml.ShapeType
All Implemented Interfaces:
Comparable<ShapeType>, Enumerator

public enum ShapeType
extends Enum<ShapeType>
implements Enumerator

A representation of the literals of the enumeration 'Shape Type', and utility methods for working with them.

See Also:
OgmlPackage.getShapeType()
Rating red
Generated:
This code was automatically generated.
Model element:
extendedMetaData=name='shape.type'

Enum Constant Summary
CIRCLE
          The 'Circle' literal object.
ELLIPSE
          The 'Ellipse' literal object.
HEXAGON
          The 'Hexagon' literal object.
IMAGE
          The 'Image' literal object.
LPARALLELOGRAM
          The 'LParallelogram' literal object.
OCTAGON
          The 'Octagon' literal object.
PENTAGON
          The 'Pentagon' literal object.
RECT
          The 'Rect' literal object.
RHOMB
          The 'Rhomb' literal object.
RPARALLELOGRAM
          The 'RParallelogram' literal object.
TRAPEZE
          The 'Trapeze' literal object.
TRIANGLE
          The 'Triangle' literal object.
UML_CLASS
          The 'Uml Class' literal object.
UP_TRAPEZE
          The 'Up Trapeze' literal object.
 
Field Summary
static int CIRCLE_VALUE
          The 'Circle' literal value.
static int ELLIPSE_VALUE
          The 'Ellipse' literal value.
static int HEXAGON_VALUE
          The 'Hexagon' literal value.
static int IMAGE_VALUE
          The 'Image' literal value.
static int LPARALLELOGRAM_VALUE
          The 'LParallelogram' literal value.
static int OCTAGON_VALUE
          The 'Octagon' literal value.
static int PENTAGON_VALUE
          The 'Pentagon' literal value.
static int RECT_VALUE
          The 'Rect' literal value.
static int RHOMB_VALUE
          The 'Rhomb' literal value.
static int RPARALLELOGRAM_VALUE
          The 'RParallelogram' literal value.
static int TRAPEZE_VALUE
          The 'Trapeze' literal value.
static int TRIANGLE_VALUE
          The 'Triangle' literal value.
static int UML_CLASS_VALUE
          The 'Uml Class' literal value.
static int UP_TRAPEZE_VALUE
          The 'Up Trapeze' literal value.
static List<ShapeType> VALUES
          A public read-only list of all the 'Shape Type' enumerators.
 
Method Summary
static ShapeType get(int value)
          Returns the 'Shape Type' literal with the specified integer value.
static ShapeType get(String literal)
          Returns the 'Shape Type' literal with the specified literal value.
static ShapeType getByName(String name)
          Returns the 'Shape Type' literal with the specified name.
 String getLiteral()
           
 String getName()
           
 int getValue()
           
 String toString()
          Returns the literal value of the enumerator, which is its string representation.
static ShapeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ShapeType[] 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

RECT

public static final ShapeType RECT
The 'Rect' literal object.

See Also:
RECT_VALUE
Generated:
This code was automatically generated.
Ordered

TRIANGLE

public static final ShapeType TRIANGLE
The 'Triangle' literal object.

See Also:
TRIANGLE_VALUE
Generated:
This code was automatically generated.
Ordered

CIRCLE

public static final ShapeType CIRCLE
The 'Circle' literal object.

See Also:
CIRCLE_VALUE
Generated:
This code was automatically generated.
Ordered

ELLIPSE

public static final ShapeType ELLIPSE
The 'Ellipse' literal object.

See Also:
ELLIPSE_VALUE
Generated:
This code was automatically generated.
Ordered

HEXAGON

public static final ShapeType HEXAGON
The 'Hexagon' literal object.

See Also:
HEXAGON_VALUE
Generated:
This code was automatically generated.
Ordered

RHOMB

public static final ShapeType RHOMB
The 'Rhomb' literal object.

See Also:
RHOMB_VALUE
Generated:
This code was automatically generated.
Ordered

TRAPEZE

public static final ShapeType TRAPEZE
The 'Trapeze' literal object.

See Also:
TRAPEZE_VALUE
Generated:
This code was automatically generated.
Ordered

UP_TRAPEZE

public static final ShapeType UP_TRAPEZE
The 'Up Trapeze' literal object.

See Also:
UP_TRAPEZE_VALUE
Generated:
This code was automatically generated.
Ordered

LPARALLELOGRAM

public static final ShapeType LPARALLELOGRAM
The 'LParallelogram' literal object.

See Also:
LPARALLELOGRAM_VALUE
Generated:
This code was automatically generated.
Ordered

RPARALLELOGRAM

public static final ShapeType RPARALLELOGRAM
The 'RParallelogram' literal object.

See Also:
RPARALLELOGRAM_VALUE
Generated:
This code was automatically generated.
Ordered

PENTAGON

public static final ShapeType PENTAGON
The 'Pentagon' literal object.

See Also:
PENTAGON_VALUE
Generated:
This code was automatically generated.
Ordered

OCTAGON

public static final ShapeType OCTAGON
The 'Octagon' literal object.

See Also:
OCTAGON_VALUE
Generated:
This code was automatically generated.
Ordered

UML_CLASS

public static final ShapeType UML_CLASS
The 'Uml Class' literal object.

See Also:
UML_CLASS_VALUE
Generated:
This code was automatically generated.
Ordered

IMAGE

public static final ShapeType IMAGE
The 'Image' literal object.

See Also:
IMAGE_VALUE
Generated:
This code was automatically generated.
Ordered
Field Detail

RECT_VALUE

public static final int RECT_VALUE
The 'Rect' literal value.

If the meaning of 'Rect' literal object isn't clear, there really should be more of a description here...

See Also:
RECT, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=rect
Ordered

TRIANGLE_VALUE

public static final int TRIANGLE_VALUE
The 'Triangle' literal value.

If the meaning of 'Triangle' literal object isn't clear, there really should be more of a description here...

See Also:
TRIANGLE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=triangle
Ordered

CIRCLE_VALUE

public static final int CIRCLE_VALUE
The 'Circle' literal value.

If the meaning of 'Circle' literal object isn't clear, there really should be more of a description here...

See Also:
CIRCLE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=circle
Ordered

ELLIPSE_VALUE

public static final int ELLIPSE_VALUE
The 'Ellipse' literal value.

If the meaning of 'Ellipse' literal object isn't clear, there really should be more of a description here...

See Also:
ELLIPSE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=ellipse
Ordered

HEXAGON_VALUE

public static final int HEXAGON_VALUE
The 'Hexagon' literal value.

If the meaning of 'Hexagon' literal object isn't clear, there really should be more of a description here...

See Also:
HEXAGON, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=hexagon
Ordered

RHOMB_VALUE

public static final int RHOMB_VALUE
The 'Rhomb' literal value.

If the meaning of 'Rhomb' literal object isn't clear, there really should be more of a description here...

See Also:
RHOMB, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=rhomb
Ordered

TRAPEZE_VALUE

public static final int TRAPEZE_VALUE
The 'Trapeze' literal value.

If the meaning of 'Trapeze' literal object isn't clear, there really should be more of a description here...

See Also:
TRAPEZE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=trapeze
Ordered

UP_TRAPEZE_VALUE

public static final int UP_TRAPEZE_VALUE
The 'Up Trapeze' literal value.

If the meaning of 'Up Trapeze' literal object isn't clear, there really should be more of a description here...

See Also:
UP_TRAPEZE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=upTrapeze
Ordered

LPARALLELOGRAM_VALUE

public static final int LPARALLELOGRAM_VALUE
The 'LParallelogram' literal value.

If the meaning of 'LParallelogram' literal object isn't clear, there really should be more of a description here...

See Also:
LPARALLELOGRAM, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=lParallelogram
Ordered

RPARALLELOGRAM_VALUE

public static final int RPARALLELOGRAM_VALUE
The 'RParallelogram' literal value.

If the meaning of 'RParallelogram' literal object isn't clear, there really should be more of a description here...

See Also:
RPARALLELOGRAM, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=rParallelogram
Ordered

PENTAGON_VALUE

public static final int PENTAGON_VALUE
The 'Pentagon' literal value.

If the meaning of 'Pentagon' literal object isn't clear, there really should be more of a description here...

See Also:
PENTAGON, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=pentagon
Ordered

OCTAGON_VALUE

public static final int OCTAGON_VALUE
The 'Octagon' literal value.

If the meaning of 'Octagon' literal object isn't clear, there really should be more of a description here...

See Also:
OCTAGON, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=octagon
Ordered

UML_CLASS_VALUE

public static final int UML_CLASS_VALUE
The 'Uml Class' literal value.

If the meaning of 'Uml Class' literal object isn't clear, there really should be more of a description here...

See Also:
UML_CLASS, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=umlClass
Ordered

IMAGE_VALUE

public static final int IMAGE_VALUE
The 'Image' literal value.

If the meaning of 'Image' literal object isn't clear, there really should be more of a description here...

See Also:
IMAGE, Constant Field Values
Generated:
This code was automatically generated.
Model element:
name=image
Ordered

VALUES

public static final List<ShapeType> VALUES
A public read-only list of all the 'Shape Type' enumerators.

Generated:
This code was automatically generated.
Method Detail

values

public static ShapeType[] 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 (ShapeType c : ShapeType.values())
    System.out.println(c);

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

valueOf

public static ShapeType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

get

public static ShapeType get(String literal)
Returns the 'Shape Type' literal with the specified literal value.

Generated:
This code was automatically generated.

getByName

public static ShapeType getByName(String name)
Returns the 'Shape Type' literal with the specified name.

Generated:
This code was automatically generated.

get

public static ShapeType get(int value)
Returns the 'Shape Type' literal with the specified integer value.

Generated:
This code was automatically generated.

getValue

public int getValue()

Specified by:
getValue in interface Enumerator
Generated:
This code was automatically generated.

getName

public String getName()

Specified by:
getName in interface Enumerator
Generated:
This code was automatically generated.

getLiteral

public String getLiteral()

Specified by:
getLiteral in interface Enumerator
Generated:
This code was automatically generated.

toString

public String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class Enum<ShapeType>
Generated:
This code was automatically generated.