public class DateTimeContinuousAxisModel extends AxisModel implements ContinuousAxisModel, AxisSupportsCombinedSeriesPlot
AxisModel.StackValue
ChartElement.Predicate<T>
PLOT_DIRECTION_PROPERTY_KEY, PLOT_ORIGIN_PROPERTY_KEY
children
PROPERTY_CHANGED_MESSAGE, PROPERTY_CHANGING_MESSAGE, trackPropertyChanged, trackPropertyChanging
Constructor and Description |
---|
DateTimeContinuousAxisModel()
Creates a new instance of the
DateTimeContinuousAxisModel . |
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. |
AxisLabelModel |
generateLastLabel() |
AxisPlotMode |
getActualPlotMode()
Gets a value from the
AxisPlotMode enum depicting the plot mode
actually used by the axis associated with this AxisModel . |
ValueRange<Calendar> |
getActualRange()
Gets the actual
ValueRange of this axis. |
Object |
getCombineGroupKey(DataPoint point)
Gets the key used to group series when combination mode like STACK is specified.
|
DateFormat |
getDateFormat() |
double |
getGapLength()
Gets the gap length.
|
double |
getMajorStep()
Gets a custom major step of the axis.
|
TimeInterval |
getMajorStepUnit()
Gets the unit that defines the custom major step of the axis.
|
Calendar |
getMaximum()
Gets the custom maximum of the axis.
|
int |
getMaximumTicks()
Gets the maximum ticks that might be displayed on the axis.
|
Calendar |
getMinimum()
Gets the custom minimum of the axis.
|
AxisPlotMode |
getPlotMode()
Gets the
AxisPlotMode used to position points along the axis. |
DateFormat |
getSourceDateFormat() |
int |
majorTickCount()
Gets the count of the major ticks currently generated
in this
AxisModel . |
void |
onZoomChanged()
Called when the zoom factor of the owning chart changes.
|
void |
resetState()
Resets the state of the current
AxisModel instance. |
void |
setDateFormat(DateFormat value) |
void |
setGapLength(double value)
Sets the gap length.
|
void |
setMajorStep(double value)
Sets a custom major step of the axis.
|
void |
setMajorStepUnit(TimeInterval value)
Sets the unit that defines the custom major step of the axis.
|
void |
setMaximum(Calendar value)
Sets the custom maximum of the axis.
|
void |
setMaximumTicks(int value)
Sets the maximum ticks that might be displayed on the axis.
|
void |
setMinimum(Calendar value)
Sets the custom minimum of the axis.
|
void |
setPlotMode(AxisPlotMode value)
Sets the
AxisPlotMode used to position points along the axis. |
void |
setSourceDateFormat(DateFormat value) |
applyLayoutRounding, canAddChild, desiredMargin, getDesiredSize, getFirstTick, getHorizontalLocation, getIsPrimary, getLabelContent, getLabelFitMode, getLabelFormat, getLabelInterval, getLabelLayoutMode, getLabelMargin, getLabelOffset, getLabels, getLabelValueToStringConverter, getLastLabelVisibility, getLastTick, getLineThickness, getMajorTickLength, getMajorTickOffset, getMajorTicks, getNormalizedLabelRotationAngle, getShowLabels, getStackValue, getTickThickness, getType, getVerticalLocation, getWidth, isDataReady, isPlotValid, isUpdated, measure, onPanOffsetChanged, plot, 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 DateTimeContinuousAxisModel()
DateTimeContinuousAxisModel
.public int majorTickCount()
AxisModel
AxisModel
.majorTickCount
in class AxisModel
public double getGapLength()
public void setGapLength(double value)
value
- The gap length.public AxisPlotMode getPlotMode()
AxisPlotMode
used to position points along the axis.public void setPlotMode(AxisPlotMode value)
AxisPlotMode
used to position points along the axis.value
- The plot mode.public double getMajorStep()
TimeInterval
between each tick is calculated by using this value and the setMajorStepUnit(TimeInterval)
.
Specify Double.POSITIVE_INFINITY
or Double.NEGATIVE_INFINITY
to clear the custom value and to generate the step automatically.public void setMajorStep(double value)
TimeInterval
between each tick
depends on the major step and the major step unit, set through
setMajorStepUnit(com.telerik.widget.chart.engine.axes.common.TimeInterval)
.
If the major step is set to 0.0
, the value is reset and the steps are generated automatically.value
- The user-defined major step of the axispublic TimeInterval getMajorStepUnit()
public void setMajorStepUnit(TimeInterval value)
value
- The major step unit.public ValueRange<Calendar> getActualRange()
ValueRange
of this axis.public Calendar getMinimum()
public void setMinimum(Calendar value)
Calendar
min value to clear the property value so that the minimum is auto-generated.value
- The minimum value of the axis.public Calendar getMaximum()
Calendar
max value to clear the property value so that the maximum is auto-generated.public void setMaximum(Calendar value)
Calendar
max value to clear the property value so that the maximum is auto-generated.value
- The maximum date of the axis.public int getMaximumTicks()
public void setMaximumTicks(int value)
value
- The maximum ticks.public AxisPlotMode getActualPlotMode()
AxisModel
AxisPlotMode
enum depicting the plot mode
actually used by the axis associated with this AxisModel
.getActualPlotMode
in class AxisModel
AxisPlotMode
value.public void resetState()
AxisModel
AxisModel
instance. Marks the plot data and the layout params
as invalid and resets the range.resetState
in class AxisModel
public void onZoomChanged()
AxisModel
onZoomChanged
in class AxisModel
public void setDateFormat(DateFormat value)
public DateFormat getDateFormat()
public void setSourceDateFormat(DateFormat value)
public DateFormat getSourceDateFormat()
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.public AxisLabelModel generateLastLabel()
generateLastLabel
in class AxisModel
public Object getCombineGroupKey(DataPoint point)
AxisModel
getCombineGroupKey
in class AxisModel