com.googlecode.charts4j
Enum Shape

java.lang.Object
  extended by java.lang.Enum<Shape>
      extended by com.googlecode.charts4j.Shape
All Implemented Interfaces:
Serializable, Comparable<Shape>

public enum Shape
extends Enum<Shape>

Enumeration for specifying shape of ShapeMarker.

Author:
Julien Chastang (julien.c.chastang at gmail dot com)

Enum Constant Summary
ARROW
          Arrow.
CIRCLE
          Circle.
CROSS
          Cross.
DIAMOND
          Diamond.
HORIZONTAL_LINE
          Horizontal line.
SQUARE
          Square.
VERTICAL_LINE_FULL
          Full vertical line spanning chart.
VERTICAL_LINE_PARTIAL
          Partial vertical line.
X
          X.
 
Method Summary
 String toString()
          
static Shape valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Shape[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ARROW

public static final Shape ARROW
Arrow.


CROSS

public static final Shape CROSS
Cross.


DIAMOND

public static final Shape DIAMOND
Diamond.


CIRCLE

public static final Shape CIRCLE
Circle.


SQUARE

public static final Shape SQUARE
Square.


VERTICAL_LINE_PARTIAL

public static final Shape VERTICAL_LINE_PARTIAL
Partial vertical line.


VERTICAL_LINE_FULL

public static final Shape VERTICAL_LINE_FULL
Full vertical line spanning chart.


HORIZONTAL_LINE

public static final Shape HORIZONTAL_LINE
Horizontal line.


X

public static final Shape X
X.

Method Detail

values

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

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

valueOf

public static Shape 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

toString

public String toString()

Overrides:
toString in class Enum<Shape>