|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Style>
us.zuercher.gpx2map.plotter.Style
public enum Style
Style is an enumeration of concrete MarkerStyle
implementations.
Every Style has user-defined (as opposed to constant) dimensions and
simply overrides the MarkerStyle.getShape(Point, int, Color)
method
to render various simple, single-color, markers.
Enum Constant Summary | |
---|---|
BOX
A filled square. |
|
DIAMOND
A filled diamond. |
|
DOT
A filled circle. |
|
PLUS
A plus, or cross, shape. |
|
TRIANGLE
A filled triangle pointing up. |
|
X
An X shape. |
Field Summary | |
---|---|
private String |
name
Marker style name. |
Method Summary | |
---|---|
int |
getHeight()
Returns -1. |
String |
getName()
Returns the style's name. |
static Style |
getStyle(String styleName)
Returns a Style with the given name. |
int |
getWidth()
Returns -1. |
boolean |
hasConstantDimensions()
Returns false. |
static Style |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Style[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface us.zuercher.gpx2map.plotter.MarkerStyle |
---|
getShape |
Enum Constant Detail |
---|
public static final Style DOT
public static final Style BOX
public static final Style DIAMOND
BOX
rotated 45 degrees.
public static final Style X
public static final Style TRIANGLE
public static final Style PLUS
Field Detail |
---|
private final String name
Method Detail |
---|
public static final Style[] values()
for(Style c : Style.values()) System.out.println(c);
public static Style valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic static Style getStyle(String styleName)
styleName
- a marker style name for style defined in this
enumeration.
public boolean hasConstantDimensions()
hasConstantDimensions
in interface MarkerStyle
MarkerStyle.hasConstantDimensions()
public int getHeight()
getHeight
in interface MarkerStyle
hasConstantDimensions()
,
MarkerStyle.hasConstantDimensions()
,
MarkerStyle.getHeight()
public int getWidth()
getWidth
in interface MarkerStyle
hasConstantDimensions()
,
MarkerStyle.hasConstantDimensions()
,
MarkerStyle.getWidth()
public String getName()
getName
in interface MarkerStyle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |