Class LineChart

All Implemented Interfaces:
Drawable, Fillable, Strokeable

public class LineChart extends Rectangle
  • Field Details

  • Constructor Details

    • LineChart

      public LineChart(double x, double y, double width, double height)
    • LineChart

      public LineChart(double x, double y, double width, double height, double[] pCoordinates, double[] pValues)
  • Method Details

    • addValue

      public void addValue(double pCoordinate, double pValue)
    • removeValue

      public void removeValue(double x)
    • getValue

      public double getValue(double x)
    • setValue

      public void setValue(double x, double pValue)
    • draw

      public void draw(Graphics2D graphics, AffineTransform transform)
      Description copied from class: Shape
      Zeichnet die Form, aber wendet zuvor noch eine zusätzliche Transformations- matrix an. Wird u.A. von der ShapeGroup verwendet.
      Overrides:
      draw in class Shape