public abstract class NumericalAxisModel extends AxisModel implements ContinuousAxisModel
AxisModel.StackValue
ChartElement.Predicate<T>
Modifier and Type | Field and Description |
---|---|
ValueRange<Double> |
pointMinMax |
PLOT_DIRECTION_PROPERTY_KEY, PLOT_ORIGIN_PROPERTY_KEY
children
PROPERTY_CHANGED_MESSAGE, PROPERTY_CHANGING_MESSAGE, trackPropertyChanged, trackPropertyChanging
Modifier and Type | Method and Description |
---|---|
Object |
convertPhysicalUnitsToData(double coordinate)
Calculates the value which corresponds to the provided axis coordinate.
|
AxisPlotInfo |
createPlotInfo(Object value)
Creates an instance of the
AxisPlotInfo class containing the plot information about the provided
axis value. |
ValueRange<Double> |
getActualRange()
Gets the actual range (minimum and maximum values) used by the axis.
|
int |
getDesiredTickCount()
Gets the number of the ticks available on the axis.
|
double |
getMajorStep()
Gets the user-defined major step of the axis.
|
double |
getMaximum()
Gets the user-defined maximum of the axis.
|
double |
getMinimum()
Gets the user-defined minimum of the axis.
|
int |
getRangeExtendDirection()
Gets a value that specifies how the auto-range of this axis will be extended so that each data point is visualized in the best possible way.
|
AxisModel.StackValue |
getStackValue(DataPoint point)
Gets the value for a DataPoint used by a CombineStrategy to calculate the stack sum for each stack group.
|
void |
onZoomChanged()
Called when the zoom factor of the owning chart changes.
|
void |
setDesiredTickCount(int value)
Sets the number of the ticks available on the axis.
|
void |
setMajorStep(double value)
Sets a custom major step of the axis.
|
void |
setMaximum(double value)
Sets the user-defined maximum of the axis.
|
void |
setMinimum(double value)
Sets the user-defined minimum of the axis.
|
void |
setRangeExtendDirection(int value)
Sets a value that specifies how the auto-range of this axis will be extended so that each data point is visualized in the best possible way.
|
applyLayoutRounding, canAddChild, desiredMargin, generateLastLabel, getActualPlotMode, getCombineGroupKey, getDesiredSize, getFirstTick, getHorizontalLocation, getIsPrimary, getLabelContent, getLabelFitMode, getLabelFormat, getLabelInterval, getLabelLayoutMode, getLabelMargin, getLabelOffset, getLabels, getLabelValueToStringConverter, getLastLabelVisibility, getLastTick, getLineThickness, getMajorTickLength, getMajorTickOffset, getMajorTicks, getNormalizedLabelRotationAngle, getShowLabels, getTickThickness, getType, getVerticalLocation, getWidth, isDataReady, isPlotValid, isUpdated, majorTickCount, measure, onPanOffsetChanged, plot, resetState, setHorizontalLocation, setIsPrimary, setLabelFitMode, setLabelFormat, setLabelInterval, setLabelLayoutMode, setLabelMargin, setLabelOffset, setLabelValueToStringConverter, setLastLabelVisibility, setLineThickness, setMajorTickLength, setMajorTickOffset, setNormalizedLabelRotationAngle, setShowLabels, setTickThickness, setType, setVerticalLocation, setWidth, ticks, title, update, updateTicksVisibility
enumDescendants, enumDescendants, enumDescendants, findAncestor, findDescendant, getPresenter, isAncestorOf, setPresenter
arrange, arrange, chartArea, clearValue, collectionIndex, getLayoutSlot, getNodeState, getParent, index, invalidate, isTreeLoaded, isVisible, load, setIsVisible, setParent, setValue
getTypedValue, getValue, isLocalValue
public ValueRange<Double> pointMinMax
public int getDesiredTickCount()
public void setDesiredTickCount(int value)
value
- The number of the ticks available on the axis. If a value less than 2 is set, the property is reset to its default value.public int getRangeExtendDirection()
public void setRangeExtendDirection(int value)
value
- A value that specifies how the auto-range of this axis will be extended so that each data point is visualized in the best possible way.public double getMajorStep()
public void setMajorStep(double value)
0.0
, the value is reset and the steps are generated automatically.value
- The user-defined major step of the axispublic double getMinimum()
public void setMinimum(double value)
value
- The user-defined minimum of the axis.public double getMaximum()
public void setMaximum(double value)
value
- The user-defined maximum of the axis.public ValueRange<Double> getActualRange()
public void onZoomChanged()
AxisModel
onZoomChanged
in class AxisModel
public AxisModel.StackValue getStackValue(DataPoint point)
AxisModel
getStackValue
in class AxisModel
point
- the point for which we need to get the stack value.public AxisPlotInfo createPlotInfo(Object value)
AxisModel
AxisPlotInfo
class containing the plot information about the provided
axis value.createPlotInfo
in class AxisModel
value
- the value to create the plot information for.AxisPlotInfo
instance.public Object convertPhysicalUnitsToData(double coordinate)
AxisModel
convertPhysicalUnitsToData
in class AxisModel
coordinate
- the coordinate to calculate the value for.