nl.cloudfarming.client.area.field.shape
Enum Shape.ShapeType

java.lang.Object
  extended by java.lang.Enum<Shape.ShapeType>
      extended by nl.cloudfarming.client.area.field.shape.Shape.ShapeType
All Implemented Interfaces:
Serializable, Comparable<Shape.ShapeType>
Enclosing class:
Shape

public static enum Shape.ShapeType
extends Enum<Shape.ShapeType>

Type of a shape object Gives an indication about what kind of shape it is, what the purpose is and where it needs to be stored eventually.

Author:
Timon Veenstra

Enum Constant Summary
FIELD
          Field shape, Geometry will be a MultiPolygon
HELPLINE
          helpline shape, Geometry will be a line
SKIP
          Skip this shape
 
Method Summary
 String toString()
           
static Shape.ShapeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Shape.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

SKIP

public static final Shape.ShapeType SKIP
Skip this shape


FIELD

public static final Shape.ShapeType FIELD
Field shape, Geometry will be a MultiPolygon


HELPLINE

public static final Shape.ShapeType HELPLINE
helpline shape, Geometry will be a line

Method Detail

values

public static Shape.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 (Shape.ShapeType c : Shape.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 Shape.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

toString

public String toString()
Overrides:
toString in class Enum<Shape.ShapeType>


Copyright © 2011. All Rights Reserved.