Package com.iizix.prop.ui.chart.axis2d
Enum Class AxisOption
- All Implemented Interfaces:
IPropCnrBoolean
,Serializable
,Comparable<AxisOption>
,Constable
The Axis2D boolean settings the can be set or retrieved.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionWhether the axis automatically drops labels at regular interval or not to avoid labels overlapping.Whether the ticks and labels are cached from one rendering to another.Force all axis labels to be fixed numbers.Flag to use HTML (as opposed to the native vector graphics engine) to draw labels.Option to include zero in axis, i.e.Indicates to the axis whether the axis labels are changing their size on zoom.Flag to draw labels at major ticks.Flag to draw micro ticks on an axis.Flag to labels on minor ticks when there is enough space.Flag to draw minor ticks on an axis.Ensure tick marks are made on "natural" numbers.The Axis direction as vertical (true), horizontal (false) is default.Provides support for an invisible axis, i.e.Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the default value when the property is not set.Returns the name of the property, usually starting with '$'.static AxisOption
Returns the enum constant of this class with the specified name.static AxisOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
VERTICAL
The Axis direction as vertical (true), horizontal (false) is default.Default is false, i.e. horizontal.
VISIBLE
Provides support for an invisible axis, i.e. the axis visible setting.Default is true.
INCLUDE_ZERO
Option to include zero in axis, i.e. will make the lower bound be zero instead of the lowest value. If the lowest data value is negative the "includeZero" option has no effect.Default is false.
FIXED
Force all axis labels to be fixed numbers.Default is true.
NATURAL
Ensure tick marks are made on "natural" numbers.Defaults to false.
MAJOR_LABELS
Flag to draw labels at major ticks.Default is true.
MINOR_TICKS
Flag to draw minor ticks on an axis.Default is true.
MINOR_LABELS
Flag to labels on minor ticks when there is enough space.Default is true.
MICRO_TICKS
Flag to draw micro ticks on an axis.Default is false.
HTML_LABELS
Flag to use HTML (as opposed to the native vector graphics engine) to draw labels.Default is true.
DROP_LABELS
Whether the axis automatically drops labels at regular interval or not to avoid labels overlapping. This gives better results but require more computations. You can disable it to save computation time when you know your labels won't overlap.Default is true.
LABEL_SIZE_CHANGE
Indicates to the axis whether the axis labels are changing their size on zoom. If false this allows to optimize the axis by avoiding recomputing labels maximum size on zoom actions.Default is false.
ENABLE_CACHE
Whether the ticks and labels are cached from one rendering to another. This improves the rendering performance of successive rendering but penalize the first rendering. For labels it is only working with GFX labels not HTML ones.Default false.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
getDefaultValue
public boolean getDefaultValue()Gets the default value when the property is not set.- Specified by:
getDefaultValue
in interfaceIPropCnrBoolean
getPropName
Returns the name of the property, usually starting with '$'.- Specified by:
getPropName
in interfaceIPropCnrBoolean