Class Chart2D

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
GraphChart2D, PieChart2D

public abstract class Chart2D extends Object2D
An abstract class for the common methods of GraphChart2D and PieChart2D. These are methods for handling the Chart2DProperties object and the LegendProperties object. Changes through its set methods are updated upon next repaint() or getImage() calls.
See Also:
  • Constructor Details

    • Chart2D

      public Chart2D()
      Creates a Chart2D object with its defaults. A Chart2DProperties object must be set for this object before it is used. An LegendProperties object must be set for this object before it is used.
  • Method Details

    • setChart2DProperties

      public final void setChart2DProperties(Chart2DProperties props)
      Sets the Chart2DProperties for this Chart2D.
      Parameters:
      props - The Chart2DProperties.
    • setLegendProperties

      public final void setLegendProperties(LegendProperties props)
      Sets the LegendProperties for this Chart2D.
      Parameters:
      props - The LegendProperties.
    • getChart2DProperties

      public final Chart2DProperties getChart2DProperties()
      Gets the Chart2DProperties for this Chart2D.
      Returns:
      The Chart2DProperties.
    • getLegendProperties

      public final LegendProperties getLegendProperties()
      Gets the LegendProperties for this Chart2D.
      Returns:
      The LegendProperties.