public enum PlotInteger extends Enum<PlotInteger> implements IPropCnrInteger
Enum Constant and Description |
---|
ANIMATION_DURATION
Whether or not to animate the chart to place and specifies the duration in milliseconds of the animation.
|
FAN_SIZE
The amount for a radial gradient in a pie chart.
|
GAP
Gap between columns in pixels in an OHLC chart.
|
LABEL_OFFSET
Pie: the amount in pixels by which to offset labels.
|
MAX_BAR_SIZE
The maximum size for a bar (or column) in pixels.
|
MIN_BAR_SIZE
The minimum size for a bar (or column) in pixels.
|
RADIUS
The size of the radial gradient in a pie chart.
|
Modifier and Type | Method and Description |
---|---|
int |
getDefaultValue()
Gets the default value when the property is not set.
|
String |
getPropName()
Returns the name of the property, usually starting with '$'.
|
void |
validate(PropCnr pc,
int value)
Validates a new value.
|
static PlotInteger |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlotInteger[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlotInteger LABEL_OFFSET
Default is 20.
public static final PlotInteger MIN_BAR_SIZE
Default is 1.
public static final PlotInteger MAX_BAR_SIZE
Default is 1.
public static final PlotInteger FAN_SIZE
Default is 5.
public static final PlotInteger RADIUS
Default is 0.
public static final PlotInteger GAP
Default 2 pixels.
public static final PlotInteger ANIMATION_DURATION
Default 0, i.e. no animation.
public static PlotInteger[] values()
for (PlotInteger c : PlotInteger.values()) System.out.println(c);
public static PlotInteger 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 int getDefaultValue()
getDefaultValue
in interface IPropCnrInteger
public String getPropName()
getPropName
in interface IPropCnrInteger
public void validate(PropCnr pc, int value) throws PropValidateException
Overridden to provide validation for negative values.
validate
in interface IPropCnrInteger
pc
- The property container that will be set.value
- The new value to validate.PropValidateException
- If the value is negative.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.