public class DateTimeContinuousAxis extends CartesianAxis
linkedSeriesCount
LINE_COLOR_PROPERTY_KEY, LINE_THICKNESS_PROPERTY_KEY
AXIS_Z_INDEX, LABEL_COLOR, LABEL_COLOR_PROPERTY_KEY, LABEL_FIT_MODE, LABEL_FIT_MODE_PROPERTY_KEY, LABEL_FONT_KEY, LABEL_FONT_PROPERTY_KEY, LABEL_FONT_STYLE_KEY, LABEL_FONT_STYLE_PROPERTY_KEY, LABEL_ROTATION_ANGLE, LABEL_ROTATION_ANGLE_PROPERTY_KEY, LABEL_SIZE_KEY, LABEL_SIZE_PROPERTY_KEY, LINE_COLOR_KEY, LINE_THICKNESS_KEY, TICK_COLOR_KEY, TICK_COLOR_PROPERTY_KEY, TICK_THICKNESS_KEY, TICK_THICKNESS_PROPERTY_KEY
Constructor and Description |
---|
DateTimeContinuousAxis()
Creates an instance of the
DateTimeContinuousAxis
class with a specified context, a set of styleable attributes and an id of the default style. |
Modifier and Type | Method and Description |
---|---|
ValueRange<Calendar> |
getActualRange()
Gets an instance of the
ValueRange
class representing the value range currently represented by this axis. |
List<DataPoint> |
getDataPointsForValue(Object value) |
Function2<Calendar,Calendar,Boolean> |
getDateComparer()
Gets a custom date comparator.
|
DateFormat |
getDateTimeFormat()
Gets the date format object that will be used to convert the label dates to string.
|
double |
getGapLength()
Gets the distance in pixels between a tick and the adjacent data point.
|
double |
getMajorStep()
Gets the major step between two ticks.
|
TimeInterval |
getMajorStepUnit()
Gets the unit that defines the custom major step of the axis.
|
Calendar |
getMaximum()
Gets an instance of the
Calendar class representing
the biggest value which this axis represents. |
int |
getMaximumTicks()
Gets the maximum ticks that might be displayed on the axis.
|
Calendar |
getMinimum()
Gets an instance of the
Calendar class representing
the smallest value which this axis represents. |
AxisPlotMode |
getPlotMode()
Gets a value from the
AxisPlotMode enum which determines in what way the axis will
be plotted on the viewport of the Chart. |
DateFormat |
getSourceDateTimeFormat() |
void |
setDateComparer(Function2<Calendar,Calendar,Boolean> value)
Sets a custom date comparator.
|
void |
setDateTimeFormat(DateFormat value)
Sets the date format object that will be used to convert the label dates to string.
|
void |
setGapLength(double value)
Sets the distance in pixels between a tick and the adjacent data point.
|
void |
setLabelFormat(String value)
Sets the label format string.
|
void |
setMajorStep(double value)
Sets the major step between two ticks.
|
void |
setMajorStepUnit(TimeInterval value)
Sets the unit that defines the custom major step of the axis.
|
void |
setMaximum(Calendar value)
Sets an instance of the
Calendar class representing
the biggest value which this axis represents. |
void |
setMaximumTicks(int value)
Sets the maximum ticks that might be displayed on the axis.
|
void |
setMinimum(Calendar value)
Sets an instance of the
Calendar class representing
the smallest value which this axis represents. |
void |
setPlotMode(AxisPlotMode value)
Sets a value from the
AxisPlotMode enum which determines in what way the axis will
be plotted on the viewport of the Chart. |
void |
setSourceDateTimeFormat(DateFormat value) |
getHorizontalLocation, getVerticalLocation, setHorizontalLocation, setVerticalLocation
getLineColor, getLineDashArray, getLineThickness, getShowLine, render, setLineColor, setLineDashArray, setLineThickness, setShowLine
getAxisType, getLabelFitMode, getLabelFont, getLabelFontStyle, getLabelFormat, getLabelInterval, getLabelLayoutMode, getLabelMargin, getLabelOffset, getLabelRenderer, getLabelRotationAngle, getLabelSize, getLabelTextColor, getLabelValueToStringConverter, getLastLabelVisibility, getLastLayoutContext, getLayoutSlot, getMajorTickOffset, getModel, getShowLabels, getTickColor, getTickThickness, getVerticalWidth, renderLabel, resolveLabelRenderer, setAxisType, setLabelFitMode, setLabelFont, setLabelFontStyle, setLabelInterval, setLabelLayoutMode, setLabelMargin, setLabelOffset, setLabelRenderer, setLabelRotationAngle, setLabelSize, setLabelTextColor, setLabelValueToStringConverter, setLastLabelVisibility, setMajorTickOffset, setShowLabels, setTickColor, setTickThickness, setVerticalWidth
attach, detach, getCanApplyPalette, getChart, getCollectionIndex, getPalette, getZIndex, invalidatePalette, onPaletteInvalidated, onPaletteUpdated, requestLayout, requestRender, setZIndex, updatePalette
getPaletteFamily, getPaletteFamilyCore, isLoaded, isPaletteApplied, isVisible, measureContent, paletteFamily, postRender, refreshNode, setCanApplyPalette, setPaletteFamily, setVisible, setVisible
getValue, resetPropertyValue, setValue, setValue
public DateTimeContinuousAxis()
DateTimeContinuousAxis
class with a specified context, a set of styleable attributes and an id of the default style.public int getMaximumTicks()
public void setMaximumTicks(int value)
value
- the maximum count of ticks for this axis.public double getGapLength()
public void setGapLength(double value)
value
- the distance in pixels.public double getMajorStep()
public void setMajorStep(double value)
value
- the value of the major step.public TimeInterval getMajorStepUnit()
public void setMajorStepUnit(TimeInterval value)
value
- the custom major step unit.public Calendar getMinimum()
Calendar
class representing
the smallest value which this axis represents.public void setMinimum(Calendar value)
Calendar
class representing
the smallest value which this axis represents.value
- the smallest value.public Calendar getMaximum()
Calendar
class representing
the biggest value which this axis represents.public void setMaximum(Calendar value)
Calendar
class representing
the biggest value which this axis represents.value
- the biggest value.public AxisPlotMode getPlotMode()
AxisPlotMode
enum which determines in what way the axis will
be plotted on the viewport of the Chart.AxisPlotMode
value.public void setPlotMode(AxisPlotMode value)
AxisPlotMode
enum which determines in what way the axis will
be plotted on the viewport of the Chart.value
- the current AxisPlotMode
value.public void setLabelFormat(String value)
ChartLabelRenderer
setLabelFormat
in interface ChartLabelRenderer
setLabelFormat
in class Axis
value
- The label format string. The format string is a standard Java format string.
For more information see the java formatter help page.public void setDateComparer(Function2<Calendar,Calendar,Boolean> value)
public Function2<Calendar,Calendar,Boolean> getDateComparer()
public void setDateTimeFormat(DateFormat value)
public DateFormat getDateTimeFormat()
public void setSourceDateTimeFormat(DateFormat value)
public DateFormat getSourceDateTimeFormat()
public ValueRange<Calendar> getActualRange()
ValueRange
class representing the value range currently represented by this axis.public List<DataPoint> getDataPointsForValue(Object value)
getDataPointsForValue
in class Axis