/** * Constructs a new renderer. * <p> * To specify the type of renderer, use one of the constants: * AREA, SHAPES or AREA_AND_SHAPES. * * @param type the type of renderer. * @param toolTipGenerator the tool tip generator to use * ({@code null} permitted). * @param urlGenerator the URL generator ({@code null} permitted). */ public XYStepAreaRenderer(int type, XYToolTipGenerator toolTipGenerator, XYURLGenerator urlGenerator) { super(); setDefaultToolTipGenerator(toolTipGenerator); setURLGenerator(urlGenerator); if (type == AREA) { this.plotArea = true; } else if (type == SHAPES) { this.shapesVisible = true; } else if (type == AREA_AND_SHAPES) { this.plotArea = true; this.shapesVisible = true; } this.showOutline = false; this.stepPoint = 1.0; }
/** * Constructs a new renderer. * <p> * To specify the type of renderer, use one of the constants: * AREA, SHAPES or AREA_AND_SHAPES. * * @param type the type of renderer. * @param toolTipGenerator the tool tip generator to use * (<code>null</code> permitted). * @param urlGenerator the URL generator (<code>null</code> permitted). */ public XYStepAreaRenderer(int type, XYToolTipGenerator toolTipGenerator, XYURLGenerator urlGenerator) { super(); setBaseToolTipGenerator(toolTipGenerator); setURLGenerator(urlGenerator); if (type == AREA) { this.plotArea = true; } else if (type == SHAPES) { this.shapesVisible = true; } else if (type == AREA_AND_SHAPES) { this.plotArea = true; this.shapesVisible = true; } this.showOutline = false; }