Class TimeLabelsAndTicksDescriptor
java.lang.Object
com.amalgamasimulation.charts.axes.ticks.TimeLabelsAndTicksDescriptor
Class representing the parameters descriptor of the chart axis ticks and
labels for a particular displayed range.
- Author:
- Aleksey Kirillov
-
Constructor Summary
ConstructorsConstructorDescriptionTimeLabelsAndTicksDescriptor(AxisTimeStyle axisTimeStyle, double minWindowSize, double maxWindowSize, TimeTicksParameters majorTicksParameters, TimeTicksParameters minorTicksParameters, Function<LocalDateTime, String> majorTickLabelsProvider) Constructs a descriptor with manually setting of all initialization parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the axis time style which is the owner of this object.Returns the formatter to tick labels, i.e.Returns the major ticks frequency descriptor.doubleReturns the displayed range maximum size.Returns the minor ticks frequency descriptor.doubleReturns the displayed range minimum size.
-
Constructor Details
-
TimeLabelsAndTicksDescriptor
public TimeLabelsAndTicksDescriptor(AxisTimeStyle axisTimeStyle, double minWindowSize, double maxWindowSize, TimeTicksParameters majorTicksParameters, TimeTicksParameters minorTicksParameters, Function<LocalDateTime, String> majorTickLabelsProvider) Constructs a descriptor with manually setting of all initialization parameters.- Parameters:
axisTimeStyle-AxisTimeStylewhich is the owner of this objectminWindowSize- displayed range minimum sizemaxWindowSize- displayed range maximum sizemajorTicksParameters-TimeTicksParametersfor major ticksminorTicksParameters-TimeTicksParametersfor minor ticksmajorTickLabelsProvider- the formatter to tick labels, i.e. the function that takes aLocalDateTimevalue and produces aStringthat should be drawn to represent this value
-
-
Method Details
-
getAxisTimeStyle
Returns the axis time style which is the owner of this object.- Returns:
- the axis time style which is the owner of this object.
-
getMinWindowSize
public double getMinWindowSize()Returns the displayed range minimum size.- Returns:
- the displayed range minimum size
-
getMaxWindowSize
public double getMaxWindowSize()Returns the displayed range maximum size.- Returns:
- the displayed range maximum size
-
getMajorTicksParameters
Returns the major ticks frequency descriptor.- Returns:
- the major ticks frequency descriptor
-
getMinorTicksParameters
Returns the minor ticks frequency descriptor.- Returns:
- the minor ticks frequency descriptor
-
getMajorTickLabelsProvider
Returns the formatter to tick labels, i.e. the function that takes aLocalDateTimevalue and produces aStringthat should be drawn to represent this value.- Returns:
- the formatter to tick labels
-