Class ParetoBar

java.lang.Object
eu.hansolo.fx.charts.pareto.ParetoBar

public class ParetoBar extends Object
authors: Michael Läuchli, MLaeuchli (github) Stefan Mettler, orizion (github)
  • Property Details

  • Constructor Details

    • ParetoBar

      public ParetoBar(String name, List<ParetoBar> bars)
      Parameters:
      name - The name to display for the bar
      bars - List of type ParetoBar, if value is null, these bars will be used to determine this bars value.
    • ParetoBar

      public ParetoBar(String name, double value)
      Parameters:
      name - The name to display for the bar
      value - The value of this bar. If value is null, the ParetoBar will try to calculate the value from the list of ParetoBars
    • ParetoBar

      public ParetoBar(String name, Double value, List<ParetoBar> bars)
      Parameters:
      name - The name to display for the bar
      value - The value of this bar. If value is null, the ParetoBar will try to calculate the value from the list of ParetoBars
      bars - List of type ParetoBar, if value is null, these bars will be used to determine this bars value.
    • ParetoBar

      public ParetoBar(String name, Double value, javafx.scene.paint.Color color, List<ParetoBar> bars)
      Parameters:
      name - The name to display for the bar
      value - The value of this bar. If value is null, the ParetoBar will try to calculate the value from the list of ParetoBars
      color - The color used to fill this Bar
      bars - List of type ParetoBar, if value is null, these bars will be used to determine this bars value.
  • Method Details

    • getX

      public double getX()
    • setX

      public void setX(double X)
    • getY

      public double getY()
    • setY

      public void setY(double Y)
    • getWidth

      public double getWidth()
    • setWidth

      public void setWidth(double WIDTH)
    • getHeight

      public double getHeight()
    • setHeight

      public void setHeight(double HEIGHT)
    • getFillColor

      public javafx.scene.paint.Color getFillColor()
      Gets the value of the property fillColor.
      Property description:
    • setFillColor

      public void setFillColor(javafx.scene.paint.Color COLOR)
      Sets the value of the property fillColor.
      Property description:
    • fillColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> fillColorProperty()
      See Also:
    • getValue

      public Double getValue()
    • getName

      public String getName()
    • getBars

      public ArrayList<ParetoBar> getBars()
    • addBar

      public void addBar(ParetoBar bar)
      Adds a new bar to the list of bars and updates the value field
      Parameters:
      bar - The ParetoBar to add to this bar
    • addBar

      public void addBar(String name, double value)