org.opensha.commons.gui.plot
Enum PlotSymbol

java.lang.Object
  extended by java.lang.Enum<PlotSymbol>
      extended by org.opensha.commons.gui.plot.PlotSymbol
All Implemented Interfaces:
Serializable, Comparable<PlotSymbol>

public enum PlotSymbol
extends Enum<PlotSymbol>


Enum Constant Summary
BOLD_CROSS
           
BOLD_DASH
           
BOLD_X
           
CIRCLE
           
CROSS
           
DASH
           
DIAMOND
           
FILLED_CIRCLE
           
FILLED_DIAMOND
           
FILLED_INV_TRIANGLE
           
FILLED_SQUARE
           
FILLED_TRIANGLE
           
INV_TRIANGLE
           
SQUARE
           
TRIANGLE
           
X
           
 
Method Summary
 Shape buildShape(float width)
           
static PlotSymbol forString(String desc)
           
 boolean isFilled()
           
 String toString()
           
static PlotSymbol valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PlotSymbol[] 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

X

public static final PlotSymbol X

CROSS

public static final PlotSymbol CROSS

BOLD_X

public static final PlotSymbol BOLD_X

BOLD_CROSS

public static final PlotSymbol BOLD_CROSS

FILLED_CIRCLE

public static final PlotSymbol FILLED_CIRCLE

CIRCLE

public static final PlotSymbol CIRCLE

FILLED_SQUARE

public static final PlotSymbol FILLED_SQUARE

SQUARE

public static final PlotSymbol SQUARE

FILLED_TRIANGLE

public static final PlotSymbol FILLED_TRIANGLE

TRIANGLE

public static final PlotSymbol TRIANGLE

FILLED_INV_TRIANGLE

public static final PlotSymbol FILLED_INV_TRIANGLE

INV_TRIANGLE

public static final PlotSymbol INV_TRIANGLE

FILLED_DIAMOND

public static final PlotSymbol FILLED_DIAMOND

DIAMOND

public static final PlotSymbol DIAMOND

DASH

public static final PlotSymbol DASH

BOLD_DASH

public static final PlotSymbol BOLD_DASH
Method Detail

values

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

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

valueOf

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

isFilled

public boolean isFilled()

toString

public String toString()
Overrides:
toString in class Enum<PlotSymbol>

forString

public static PlotSymbol forString(String desc)

buildShape

public Shape buildShape(float width)