Class ChartThresholdPane

All Implemented Interfaces:
Styleable, EventTarget

public class ChartThresholdPane extends BorderPane
Pane that can be used to contain an XYChart, adding adjustable thresholds to be displayed.
  • Property Details

  • Constructor Details

    • ChartThresholdPane

      public ChartThresholdPane(XYChart<Number,Number> chart)
      Note: xAxis and yAxis must be instances of NumberAxis.
      Parameters:
      chart -
  • Method Details

    • setThresholds

      public void setThresholds(Color color, double... thresholds)
      Set thresholds, which are visualized as vertical lines.
      Parameters:
      color -
      thresholds -
    • getThresholds

      public ObservableList<ObservableNumberValue> getThresholds()
      Get a list of all thresholds.
      Returns:
    • clearThresholds

      public void clearThresholds()
      Clear all thresholds.
    • setThresholdColor

      public void setThresholdColor(ObservableNumberValue val, Color color)
      Set the color of a specified threshold line.
      Parameters:
      val -
      color -
    • addThreshold

      public ObservableNumberValue addThreshold(double x)
      Add a threshold value.
      Parameters:
      x -
      Returns:
    • addThreshold

      public ObservableNumberValue addThreshold(double x, Color color)
      Add a threshold value with its display color.
      Parameters:
      x -
      color -
      Returns:
    • addThreshold

      Add a threshold value.
      Parameters:
      d -
      Returns:
    • lineWidthProperty

      public DoubleProperty lineWidthProperty()
      Line width property used for displaying threshold lines.
      Returns:
      See Also:
    • getLineWidth

      public double getLineWidth()
      Get the threshold line width.
      Returns:
    • setLineWidth

      public void setLineWidth(double width)
      Set the threshold line width.
      Parameters:
      width -
    • isInteractiveProperty

      public BooleanProperty isInteractiveProperty()
      Property indicating whether thresholds can be adjusted interactively.
      Returns:
    • isInteractive

      public boolean isInteractive()
      Returns the value of isInteractiveProperty().
      Returns:
    • setIsInteractive

      public void setIsInteractive(boolean isInteractive)
      Sets the value of isInteractiveProperty().
      Parameters:
      isInteractive -