Class AbstractRangeValueIndicator

    • Field Detail

      • 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

      • lowerBoundProperty

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

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

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

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

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

        public final void setUpperBound​(double value)
        Sets the value of upperBoundProperty()
        Parameters:
        value - 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
      • 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)
      • 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
      • 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)
      • 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