org.opensha.commons.gui.plot
Enum PlotSymbol
java.lang.Object
java.lang.Enum<PlotSymbol>
org.opensha.commons.gui.plot.PlotSymbol
- All Implemented Interfaces:
- Serializable, Comparable<PlotSymbol>
public enum PlotSymbol
- extends Enum<PlotSymbol>
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
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)