Class AbstractRangeValueIndicator

    • Field Detail

      • STYLE_CLASS_LABEL

        protected static final java.lang.String STYLE_CLASS_LABEL
        See Also:
        Constant Field Values
      • STYLE_CLASS_RECT

        protected static final java.lang.String STYLE_CLASS_RECT
        See Also:
        Constant Field Values
      • rectangle

        protected final javafx.scene.shape.Rectangle rectangle
        Rectangle indicating the range.
    • Constructor Detail

      • AbstractRangeValueIndicator

        protected AbstractRangeValueIndicator​(Axis axis,
                                              double lowerBound,
                                              double upperBound,
                                              java.lang.String text)
        Creates a new instance of the indicator.
        Parameters:
        axis - the axis this indicator is associated with
        lowerBound - lower bound (min value) of the range
        upperBound - upper bound (max value) of the range
        text - the text to be shown by the label. Value of AbstractValueIndicator.textProperty().
    • Method Detail

      • getLowerBound

        public final double getLowerBound()
        Returns the value of the lowerBoundProperty().
        Returns:
        lower bound of the range to be indicated
      • getUpperBound

        public final double getUpperBound()
        Returns the value of the upperBoundProperty().
        Returns:
        upper bound (max value) of the range to be indicated
      • labelHorizontalPositionProperty

        public final javafx.beans.property.DoubleProperty labelHorizontalPositionProperty()
        Relative horizontal position of the text label on the plot area, with value between 0.0 (left) and 1.0 (right). Value 0.5 will position the label in the middle of the plot area.
        Returns:
        labelHorizontalPosition property
      • labelVerticalPositionProperty

        public final javafx.beans.property.DoubleProperty labelVerticalPositionProperty()
        Relative vertical position of the text label on the plot area, with value between 0.0 (bottom) and 1.0 (top). Value 0.5 will position the label in the middle of the plot area.
        Returns:
        labelVerticalPosition property
      • layout

        protected void layout​(javafx.geometry.Bounds bounds)
        Layouts the rectangle and label within given bounds.
        Parameters:
        bounds - our own bounds in relation to the plot area bounds
      • lowerBoundProperty

        public final javafx.beans.property.DoubleProperty lowerBoundProperty()
        Lower bound (min value) of the range to be indicated.
        Returns:
        lowerBound property
      • setLabelHorizontalPosition

        public final void setLabelHorizontalPosition​(double value)
        Sets the new value of the labelHorizontalPositionProperty().
        Parameters:
        value - the new horizontal position, between 0.0 and 1.0 (both inclusive)
      • setLabelVerticalPosition

        public final void setLabelVerticalPosition​(double value)
        Sets the new value of the labelVerticalPositionProperty().
        Parameters:
        value - the new vertical position, between 0.0 and 1.0 (both inclusive)
      • setLowerBound

        public final void setLowerBound​(double value)
        Sets the value of the lowerBoundProperty()
        Parameters:
        value - the value for the lower bound of the indicator
      • setUpperBound

        public final void setUpperBound​(double value)
        Sets the value of upperBoundProperty()
        Parameters:
        value - upper bound (max value) of the range to be indicated
      • upperBoundProperty

        public final javafx.beans.property.DoubleProperty upperBoundProperty()
        Upper bound (max value) of the range to be indicated.
        Returns:
        upperBound property