Class StackedXYAreaRenderer

All Implemented Interfaces:
Serializable, Cloneable, EventListener, AnnotationChangeListener, LegendItemSource, XYItemRenderer, org.jfree.util.PublicCloneable

public class StackedXYAreaRenderer extends XYAreaRenderer implements Cloneable, org.jfree.util.PublicCloneable, Serializable
A stacked area renderer for the XYPlot class.

The example shown here is generated by the StackedXYAreaRendererDemo1.java program included in the JFreeChart demo collection:

StackedXYAreaRendererSample.png

SPECIAL NOTE: This renderer does not currently handle negative data values correctly. This should get fixed at some point, but the current workaround is to use the StackedXYAreaRenderer2 class instead.
See Also:
  • Constructor Details

    • StackedXYAreaRenderer

      Creates a new renderer.
    • StackedXYAreaRenderer

      public StackedXYAreaRenderer(int type)
      Constructs a new renderer.
      Parameters:
      type - the type of the renderer.
    • StackedXYAreaRenderer

      public StackedXYAreaRenderer(int type, XYToolTipGenerator labelGenerator, XYURLGenerator urlGenerator)
      Constructs a new renderer. To specify the type of renderer, use one of the constants: SHAPES, LINES, SHAPES_AND_LINES, AREA or AREA_AND_SHAPES.
      Parameters:
      type - the type of renderer.
      labelGenerator - the tool tip generator to use (null is none).
      urlGenerator - the URL generator (null permitted).
  • Method Details