view
Enum ShapeFactory.Paths

java.lang.Object
  extended by java.lang.Enum<ShapeFactory.Paths>
      extended by view.ShapeFactory.Paths
All Implemented Interfaces:
Serializable, Comparable<ShapeFactory.Paths>
Enclosing class:
ShapeFactory

public static enum ShapeFactory.Paths
extends Enum<ShapeFactory.Paths>

For generating general path from strings.


Enum Constant Summary
CLOSE
           
CURVE
           
DIAMOND
           
ELLIPSE
           
LINE
           
MOVE
           
PLUS
           
QUAD
           
RECTANGLE
           
STAR
           
TRIANGLEDOWN
           
TRIANGLEUP
           
X
           
 
Field Summary
private  String abbrev
          An abbreviation to the enum name for compatibility.
 
Method Summary
static ShapeFactory.Paths abbreviationOf(String sc)
          Retruns the enum from its abbreviation.
 String getShort()
          An abbreviation to the enum name for compatibility.
static ShapeFactory.Paths valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ShapeFactory.Paths[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

MOVE

public static final ShapeFactory.Paths MOVE

LINE

public static final ShapeFactory.Paths LINE

QUAD

public static final ShapeFactory.Paths QUAD

CURVE

public static final ShapeFactory.Paths CURVE

ELLIPSE

public static final ShapeFactory.Paths ELLIPSE

RECTANGLE

public static final ShapeFactory.Paths RECTANGLE

TRIANGLEUP

public static final ShapeFactory.Paths TRIANGLEUP

TRIANGLEDOWN

public static final ShapeFactory.Paths TRIANGLEDOWN

DIAMOND

public static final ShapeFactory.Paths DIAMOND

X

public static final ShapeFactory.Paths X

PLUS

public static final ShapeFactory.Paths PLUS

STAR

public static final ShapeFactory.Paths STAR

CLOSE

public static final ShapeFactory.Paths CLOSE
Field Detail

abbrev

private String abbrev
An abbreviation to the enum name for compatibility.

Method Detail

values

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

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

valueOf

public static ShapeFactory.Paths 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

abbreviationOf

public static final ShapeFactory.Paths abbreviationOf(String sc)
Retruns the enum from its abbreviation.


getShort

public String getShort()
An abbreviation to the enum name for compatibility.