Class XRangeIndicator


  • public class XRangeIndicator
    extends AbstractRangeValueIndicator
    A rectangle drawn on the plot area, covering specified range of X values, with an optional text label describing the range.

    Style Classes (from least to most specific):

    • Label: range-indicator-label, x-range-indicator-label, x-range-indicator-label[index]
    • Rectangle: range-indicator-rect, x-range-indicator-rect, x-range-indicator-rect[index]
    where [index] corresponds to the index (zero based) of this indicator instance added to the XYChartPane. For example class x-range-indicator-label1 can be used to style label of the second instance of this indicator added to the chart pane.
    Author:
    mhrabia
    • Constructor Detail

      • XRangeIndicator

        public XRangeIndicator​(Axis axis,
                               double lowerBound,
                               double upperBound)
        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
      • XRangeIndicator

        public XRangeIndicator​(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

      • updateStyleClass

        public void updateStyleClass()
      • layoutChildren

        public void layoutChildren()
        Description copied from class: ChartPlugin
        Optional method that allows the plug-in to react in case the size of the chart that it belongs to has changed.
        Overrides:
        layoutChildren in class ChartPlugin