Class EditAxis


  • public class EditAxis
    extends ChartPlugin
    Allows editing of the chart axes (auto range, minimum/maximum range, etc.)

    Author:
    rstein
    • 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 with editMode initialized to AxisMode.XY.
      • EditAxis

        public EditAxis​(AxisMode editMode)
        Creates a new instance of EditAxis with animation disabled
        Parameters:
        editMode - initial value of editMode property
      • EditAxis

        public EditAxis​(boolean animated)
        Creates a new instance of EditAxis with editMode initialized to AxisMode.XY.
        Parameters:
        animated - initial value of animated property
      • EditAxis

        public EditAxis​(AxisMode editMode,
                        boolean animated)
        Creates a new instance of EditAxis.
        Parameters:
        editMode - initial value of axisMode property
        animated - initial value of animated property
    • Method Detail

      • animatedProperty

        public final javafx.beans.property.BooleanProperty animatedProperty()
        When true zooming will be animated. By default it's false.
        Returns:
        the animated property
        See Also:
        zoomDurationProperty()
      • zoomDurationProperty

        public final javafx.beans.property.ObjectProperty<javafx.util.Duration> zoomDurationProperty()
        Duration of the animated fade (in and out). Used only when animatedProperty() is set to true. By default initialized to 500ms.
        Returns:
        the zoom duration property
      • setZoomDuration

        public final void setZoomDuration​(javafx.util.Duration duration)
        Sets the value of the zoomDurationProperty().
        Parameters:
        duration - duration of the zoom
      • getZoomDuration

        public final javafx.util.Duration getZoomDuration()
        Returns the value of the zoomDurationProperty().
        Returns:
        the current zoom duration
      • axisModeProperty

        public final javafx.beans.property.ObjectProperty<AxisMode> axisModeProperty()
        The mode defining axis along which the zoom can be performed. By default initialized to AxisMode.XY.
        Returns:
        the axis mode property
      • setAxisMode

        public final void setAxisMode​(AxisMode mode)
        Sets the value of the axisModeProperty().
        Parameters:
        mode - the mode to be used