public enum DefaultScaleId extends Enum<DefaultScaleId> implements ScaleId
Enum Constant and Description |
---|
R
Default scale id for radial linear axis.
|
UNKNOWN
Default scale id for chart with a single axis.
|
X
Default scale id for X cartesian axis.
|
Y
Default scale id for Y cartesian axis.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_X_FOR_BAR_AND_LINE_OPTIONS
Default scale id for X scale defined in the chart defaults for
ChartType.BAR and ChartType.LINE . |
static String |
DEFAULT_Y_FOR_BAR_AND_LINE_OPTIONS
Default scale id for Y scale defined in the chart defaults for
ChartType.BAR and ChartType.LINE . |
Modifier and Type | Method and Description |
---|---|
AxisKind |
getAxisKind()
Returns the default axis kind for this default scale id.
|
static AxisKind |
getAxisKindByScaleId(Key scaleId,
AxisKind defaultValue)
Returns the axis kind inferring from the first character of the scale id which should be 'x', 'y' or 'r'.
|
static AxisKind |
getAxisKindByScaleId(String scaleId,
AxisKind defaultValue)
Returns the axis kind inferring from the first character of the scale id which should be 'x', 'y' or 'r'.
|
static ScaleId |
getByAxisKind(AxisKind kind,
ScaleId defaultValue)
Returns the default scale id instance by axis kind, otherwise will return
null if not found. |
boolean |
is(ScaleId scaleId)
Returns
true if the scale id is related to this axis id. |
boolean |
is(String scaleId)
Returns
true if the scale id is related to this axis id. |
String |
value()
Returns the name value of property
|
static DefaultScaleId |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultScaleId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
checkAndGetScaleID, checkIfValid, checkIfValid, create, isValid, isValid
checkIfValid, isValid
checkAndGetIfValid, checkIfValid, compare, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid
public static final DefaultScaleId X
public static final DefaultScaleId Y
public static final DefaultScaleId R
public static final DefaultScaleId UNKNOWN
public static final String DEFAULT_X_FOR_BAR_AND_LINE_OPTIONS
ChartType.BAR
and ChartType.LINE
.public static final String DEFAULT_Y_FOR_BAR_AND_LINE_OPTIONS
ChartType.BAR
and ChartType.LINE
.public static DefaultScaleId[] values()
for (DefaultScaleId c : DefaultScaleId.values()) System.out.println(c);
public static DefaultScaleId valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String value()
Key
public AxisKind getAxisKind()
ScaleId
getAxisKind
in interface ScaleId
public boolean is(String scaleId)
true
if the scale id is related to this axis id.scaleId
- scale id to be checkedtrue
if the scale id is related to this axis idpublic boolean is(ScaleId scaleId)
true
if the scale id is related to this axis id.scaleId
- scale id to be checkedtrue
if the scale id is related to this axis idpublic static ScaleId getByAxisKind(AxisKind kind, ScaleId defaultValue)
null
if not found.kind
- axis kind to use to get the related default scale iddefaultValue
- default axis id to use if it's not matchingnull
if not foundpublic static AxisKind getAxisKindByScaleId(Key scaleId, AxisKind defaultValue)
scaleId
- scale iddefaultValue
- default value for axis kind when it can not be recognized by scale idpublic static AxisKind getAxisKindByScaleId(String scaleId, AxisKind defaultValue)
scaleId
- scale iddefaultValue
- default value for axis kind when it can not be recognized by scale id