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 SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescription- booleanGets the default value when the property is not set.Returns the name of the property, usually starting with '$'.- static AxisOptionReturns 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- VERTICALThe Axis direction as vertical (true), horizontal (false) is default.- Default is false, i.e. horizontal. 
- VISIBLEProvides support for an invisible axis, i.e. the axis visible setting.- Default is true. 
- INCLUDE_ZEROOption 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. 
- FIXEDForce all axis labels to be fixed numbers.- Default is true. 
- NATURALEnsure tick marks are made on "natural" numbers.- Defaults to false. 
- MAJOR_LABELSFlag to draw labels at major ticks.- Default is true. 
- MINOR_TICKSFlag to draw minor ticks on an axis.- Default is true. 
- MINOR_LABELSFlag to labels on minor ticks when there is enough space.- Default is true. 
- MICRO_TICKSFlag to draw micro ticks on an axis.- Default is false. 
- HTML_LABELSFlag to use HTML (as opposed to the native vector graphics engine) to draw labels.- Default is true. 
- DROP_LABELSWhether 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_CHANGEIndicates 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_CACHEWhether 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- valuesReturns 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
 
- valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- getDefaultValuepublic boolean getDefaultValue()Gets the default value when the property is not set.- Specified by:
- getDefaultValuein interface- IPropCnrBoolean
 
- getPropNameReturns the name of the property, usually starting with '$'.- Specified by:
- getPropNamein interface- IPropCnrBoolean