Package de.gsi.chart.plugins
Class EditAxis
- java.lang.Object
-
- de.gsi.chart.plugins.ChartPlugin
-
- de.gsi.chart.plugins.EditAxis
-
public class EditAxis extends ChartPlugin
Allows editing of the chart axes (auto range, minimum/maximum range, etc.)- Author:
- rstein
-
-
Field Summary
Fields Modifier and Type Field Description protected static intDEFAULT_PREFERRED_HEIGHTprotected static intDEFAULT_PREFERRED_WIDTHprotected static intDEFAULT_SHUTDOWN_PERIODprotected static intDEFAULT_UPDATE_PERIODstatic java.lang.StringSTYLE_CLASS_AXIS_EDITOR
-
Constructor Summary
Constructors Constructor Description EditAxis()Creates a new instance of EditAxis with animation disabled and witheditModeinitialized toAxisMode.XY.EditAxis(boolean animated)Creates a new instance of EditAxis witheditModeinitialized toAxisMode.XY.EditAxis(AxisMode editMode)Creates a new instance of EditAxis with animation disabledEditAxis(AxisMode editMode, boolean animated)Creates a new instance of EditAxis.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.BooleanPropertyanimatedProperty()Whentruezooming will be animated.javafx.beans.property.ObjectProperty<AxisMode>axisModeProperty()The mode defining axis along which the zoom can be performed.AxisModegetAxisMode()Returns the value of theaxisModeProperty().javafx.util.DurationgetZoomDuration()Returns the value of thezoomDurationProperty().booleanisAnimated()Returns the value of theanimatedProperty().voidsetAnimated(boolean value)Sets the value of theanimatedProperty().voidsetAxisMode(AxisMode mode)Sets the value of theaxisModeProperty().voidsetZoomDuration(javafx.util.Duration duration)Sets the value of thezoomDurationProperty().javafx.beans.property.ObjectProperty<javafx.util.Duration>zoomDurationProperty()Duration of the animated fade (in and out).-
Methods inherited from class de.gsi.chart.plugins.ChartPlugin
addButtonsToToolBarProperty, chartProperty, getChart, getChartChildren, getLocationInPlotArea, isAddButtonsToToolBar, layoutChildren, registerInputEventHandler, setAddButtonsToToolBar, setChart, toDataPoint, toDisplayPoint
-
-
-
-
Field Detail
-
STYLE_CLASS_AXIS_EDITOR
public static final java.lang.String STYLE_CLASS_AXIS_EDITOR
- See Also:
- Constant Field Values
-
DEFAULT_SHUTDOWN_PERIOD
protected static final int DEFAULT_SHUTDOWN_PERIOD
- See Also:
- Constant Field Values
-
DEFAULT_UPDATE_PERIOD
protected static final int DEFAULT_UPDATE_PERIOD
- See Also:
- Constant Field Values
-
DEFAULT_PREFERRED_WIDTH
protected static final int DEFAULT_PREFERRED_WIDTH
- See Also:
- Constant Field Values
-
DEFAULT_PREFERRED_HEIGHT
protected static final int DEFAULT_PREFERRED_HEIGHT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EditAxis
public EditAxis()
Creates a new instance of EditAxis with animation disabled and witheditModeinitialized toAxisMode.XY.
-
EditAxis
public EditAxis(AxisMode editMode)
Creates a new instance of EditAxis with animation disabled- Parameters:
editMode- initial value ofeditModeproperty
-
EditAxis
public EditAxis(AxisMode editMode, boolean animated)
Creates a new instance of EditAxis.
-
EditAxis
public EditAxis(boolean animated)
Creates a new instance of EditAxis witheditModeinitialized toAxisMode.XY.- Parameters:
animated- initial value ofanimatedproperty
-
-
Method Detail
-
animatedProperty
public final javafx.beans.property.BooleanProperty animatedProperty()
Whentruezooming will be animated. By default it'sfalse.- Returns:
- the animated property
- See Also:
zoomDurationProperty()
-
axisModeProperty
public final javafx.beans.property.ObjectProperty<AxisMode> axisModeProperty()
The mode defining axis along which the zoom can be performed. By default initialized toAxisMode.XY.- Returns:
- the axis mode property
-
getAxisMode
public final AxisMode getAxisMode()
Returns the value of theaxisModeProperty().- Returns:
- current mode
-
getZoomDuration
public final javafx.util.Duration getZoomDuration()
Returns the value of thezoomDurationProperty().- Returns:
- the current zoom duration
-
isAnimated
public final boolean isAnimated()
Returns the value of theanimatedProperty().- Returns:
trueif zoom is animated,falseotherwise- See Also:
getZoomDuration()
-
setAnimated
public final void setAnimated(boolean value)
Sets the value of theanimatedProperty().- Parameters:
value- iftruezoom will be animated- See Also:
setZoomDuration(Duration)
-
setAxisMode
public final void setAxisMode(AxisMode mode)
Sets the value of theaxisModeProperty().- Parameters:
mode- the mode to be used
-
setZoomDuration
public final void setZoomDuration(javafx.util.Duration duration)
Sets the value of thezoomDurationProperty().- Parameters:
duration- duration of the zoom
-
zoomDurationProperty
public final javafx.beans.property.ObjectProperty<javafx.util.Duration> zoomDurationProperty()
Duration of the animated fade (in and out). Used only whenanimatedProperty()is set totrue. By default initialized to 500ms.- Returns:
- the zoom duration property
-
-