| Enum Constant and Description |
|---|
BAR
A bar with alternating black and white zones marking the sub-intervals.
|
BAR_SUB
A bar with alternating black and white zones marking the sub-intervals.
|
LINE
A simple line with ticks.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ScalebarDrawer |
createDrawer(java.awt.Graphics2D graphics2d,
ScaleBarRenderSettings settings)
Create a
ScalebarDrawer instance for this type. |
static Type |
fromString(java.lang.String label)
Get a type from its label.
|
java.lang.String |
getLabel() |
static Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type LINE
public static final Type BAR
public static final Type BAR_SUB
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract ScalebarDrawer createDrawer(java.awt.Graphics2D graphics2d, ScaleBarRenderSettings settings)
ScalebarDrawer instance for this type.graphics2d - The graphics context.settings - Parameters for rendering the scalebar.public static Type fromString(java.lang.String label)
label - the type labelpublic final java.lang.String getLabel()