public class ChartViewportsState.AxisState
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
AxisState(ChartViewPort<java.lang.Double> chartViewPort,
double startY,
double endY)
Initializes a new instance of the
ChartViewportsState.AxisState class. |
| Modifier and Type | Method and Description |
|---|---|
void |
addListeners() |
XYChartSelection<java.time.ZonedDateTime,java.lang.Double> |
asSelection()
Returns the current state as a
XYChartSelection |
void |
close() |
void |
removeListeners() |
XYChartSelection<java.time.ZonedDateTime,java.lang.Double> |
selectTimeRange(java.time.ZonedDateTime beginning,
java.time.ZonedDateTime end) |
void |
setSelection(XYChartSelection<java.time.ZonedDateTime,java.lang.Double> selection,
boolean toHistory)
Sets the current state from a
XYChartSelection |
public AxisState(ChartViewPort<java.lang.Double> chartViewPort, double startY, double endY)
ChartViewportsState.AxisState class.chartViewPort - startY - the lower bound of the Y axisendY - the upper bound of the Y axispublic void removeListeners()
public void addListeners()
public XYChartSelection<java.time.ZonedDateTime,java.lang.Double> asSelection()
XYChartSelectionXYChartSelectionpublic XYChartSelection<java.time.ZonedDateTime,java.lang.Double> selectTimeRange(java.time.ZonedDateTime beginning, java.time.ZonedDateTime end)
public void setSelection(XYChartSelection<java.time.ZonedDateTime,java.lang.Double> selection, boolean toHistory)
XYChartSelectionselection - the XYChartSelection to set as the current statetoHistory - true if the change in state should be recorded in the historypublic void close()
close in interface java.lang.AutoCloseableCopyright © 2018 Frederic Thevenet. All rights reserved.