public abstract class AxisTickModel extends ChartNode
PROPERTY_CHANGED_MESSAGE, PROPERTY_CHANGING_MESSAGE, trackPropertyChanged, trackPropertyChanging
Constructor and Description |
---|
AxisTickModel(double value,
double normalizedValue,
int virtualIndex) |
Modifier and Type | Method and Description |
---|---|
AxisLabelModel |
associatedLabel() |
AxisTickModel |
getNextMajorTick()
Gets the next major tick on the axis on which this one resides.
|
double |
getNormalizedBackwardLength()
Calculates the normalized value between this and the previous major tick.
|
double |
getNormalizedForwardLength()
Calculates the normalized value between this and the next major tick.
|
abstract TickType |
getType()
When overridden, gets a value from the
TickType
enum determining the type of the axis. |
double |
normalizedValue()
Gets the normalized value associated with this
AxisTickModel . |
TickPosition |
position()
Gets a value from the
TickPosition enum representing the position of the current tick. |
double |
value()
Gets the value associated with this
AxisTickModel . |
int |
virtualIndex()
Gets the virtual index of the current
AxisTickModel instance. |
applyLayoutRounding, arrange, arrange, chartArea, clearValue, collectionIndex, getLayoutSlot, getNodeState, getParent, getPresenter, index, invalidate, isTreeLoaded, isVisible, load, setIsVisible, setParent, setValue
getTypedValue, getValue, isLocalValue
public AxisTickModel(double value, double normalizedValue, int virtualIndex)
public abstract TickType getType()
TickType
enum determining the type of the axis.public AxisLabelModel associatedLabel()
public double value()
AxisTickModel
.public TickPosition position()
TickPosition
enum representing the position of the current tick.public double normalizedValue()
AxisTickModel
.public int virtualIndex()
AxisTickModel
instance.
The virtual index represents the index of the label as if no zoom is applied.public AxisTickModel getNextMajorTick()
AxisTickModel
representing
the next major tickpublic double getNormalizedForwardLength()
public double getNormalizedBackwardLength()
BigDecimal
instance representing the normalized value