| org.jfree.chart.renderer.xy.AbstractXYItemRenderer org.jfree.chart.renderer.xy.XYStepAreaRenderer
Field Summary | |
final public static int | AREA Useful constant for specifying the type of rendering (area only). | final public static int | AREA_AND_SHAPES Useful constant for specifying the type of rendering (area and shapes). | final public static int | SHAPES Useful constant for specifying the type of rendering (shapes only). | protected transient Polygon | pArea |
Method Summary | |
public Object | clone() Returns a clone of the renderer. | public void | drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass) Draws the visual representation of a single data item. | public boolean | equals(Object obj) Tests this renderer for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public boolean | getPlotArea() Returns true if Area is being plotted by the renderer. | public double | getRangeBase() Returns the value on the range axis which defines the 'lower' border of
the area. | public boolean | getShapesVisible() Returns true if shapes are being plotted by the renderer. | public XYItemRendererState | initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info) Initialises the renderer. | public boolean | isOutline() Returns a flag that controls whether or not outlines of the areas are
drawn. | public boolean | isShapesFilled() Returns the flag that controls whether or not the shapes are filled. | protected static double | restrictValueToDataArea(double value, XYPlot plot, Rectangle2D dataArea) Helper method which returns a value if it lies
inside the visible dataArea and otherwise the corresponding
coordinate on the border of the dataArea. | public void | setOutline(boolean show) Sets a flag that controls whether or not outlines of the areas are
drawn, and sends a
RendererChangeEvent to all registered
listeners. | public void | setPlotArea(boolean flag) Sets a flag that controls whether or not areas are drawn for each data
item. | public void | setRangeBase(double val) Sets the value on the range axis which defines the default border of the
area. | public void | setShapesFilled(boolean filled) Sets the 'shapes filled' for ALL series. | public void | setShapesVisible(boolean flag) Sets the flag that controls whether or not shapes are displayed for each
data item, and sends a
RendererChangeEvent to all registered
listeners. |
AREA | final public static int AREA(Code) | | Useful constant for specifying the type of rendering (area only).
|
AREA_AND_SHAPES | final public static int AREA_AND_SHAPES(Code) | | Useful constant for specifying the type of rendering (area and shapes).
|
SHAPES | final public static int SHAPES(Code) | | Useful constant for specifying the type of rendering (shapes only).
|
pArea | protected transient Polygon pArea(Code) | | Area of the complete series
|
XYStepAreaRenderer | public XYStepAreaRenderer()(Code) | | Constructs a new renderer.
|
XYStepAreaRenderer | public XYStepAreaRenderer(int type)(Code) | | Constructs a new renderer.
Parameters: type - the type of the renderer. |
XYStepAreaRenderer | public XYStepAreaRenderer(int type, XYToolTipGenerator toolTipGenerator, XYURLGenerator urlGenerator)(Code) | | Constructs a new renderer.
To specify the type of renderer, use one of the constants:
AREA, SHAPES or AREA_AND_SHAPES.
Parameters: type - the type of renderer. Parameters: toolTipGenerator - the tool tip generator to use (null permitted). Parameters: urlGenerator - the URL generator (null permitted). |
drawItem | public void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass)(Code) | | Draws the visual representation of a single data item.
Parameters: g2 - the graphics device. Parameters: state - the renderer state. Parameters: dataArea - the area within which the data is being drawn. Parameters: info - collects information about the drawing. Parameters: plot - the plot (can be used to obtain standard color information etc). Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: dataset - the dataset. Parameters: series - the series index (zero-based). Parameters: item - the item index (zero-based). Parameters: crosshairState - crosshair information for the plot (null permitted). Parameters: pass - the pass index. |
equals | public boolean equals(Object obj)(Code) | | Tests this renderer for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getRangeBase | public double getRangeBase()(Code) | | Returns the value on the range axis which defines the 'lower' border of
the area.
double the value on the range axis which defines the 'lower' border of the area. See Also: XYStepAreaRenderer.setRangeBase(double) |
initialise | public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)(Code) | | Initialises the renderer. Here we calculate the Java2D y-coordinate for
zero, since all the bars have their bases fixed at zero.
Parameters: g2 - the graphics device. Parameters: dataArea - the area inside the axes. Parameters: plot - the plot. Parameters: data - the data. Parameters: info - an optional info collection object to return data back to the caller. The number of passes required by the renderer. |
restrictValueToDataArea | protected static double restrictValueToDataArea(double value, XYPlot plot, Rectangle2D dataArea)(Code) | | Helper method which returns a value if it lies
inside the visible dataArea and otherwise the corresponding
coordinate on the border of the dataArea. The PlotOrientation
is taken into account.
Useful to avoid possible sun.dc.pr.PRException: endPath: bad path
which occurs when trying to draw lines/shapes which in large part
lie outside of the visible dataArea.
Parameters: value - the value which shall be Parameters: dataArea - the area within which the data is being drawn. Parameters: plot - the plot (can be used to obtain standard color information etc). double value inside the data area. |
setPlotArea | public void setPlotArea(boolean flag)(Code) | | Sets a flag that controls whether or not areas are drawn for each data
item.
Parameters: flag - the flag. See Also: XYStepAreaRenderer.getPlotArea() |
setRangeBase | public void setRangeBase(double val)(Code) | | Sets the value on the range axis which defines the default border of the
area. E.g. setRangeBase(Double.NEGATIVE_INFINITY) lets areas always
reach the lower border of the plotArea.
Parameters: val - the value on the range axis which defines the default borderof the area. See Also: XYStepAreaRenderer.getRangeBase() |
Methods inherited from org.jfree.chart.renderer.xy.AbstractXYItemRenderer | public void addAnnotation(XYAnnotation annotation)(Code)(Java Doc) public void addAnnotation(XYAnnotation annotation, Layer layer)(Code)(Java Doc) protected void addEntity(EntityCollection entities, Shape area, XYDataset dataset, int series, int item, double entityX, double entityY)(Code)(Java Doc) protected Point2D calculateDomainMarkerTextAnchorPoint(Graphics2D g2, PlotOrientation orientation, Rectangle2D dataArea, Rectangle2D markerArea, RectangleInsets markerOffset, LengthAdjustmentType labelOffsetType, RectangleAnchor anchor)(Code)(Java Doc) protected Object clone() throws CloneNotSupportedException(Code)(Java Doc) public void drawAnnotations(Graphics2D g2, Rectangle2D dataArea, ValueAxis domainAxis, ValueAxis rangeAxis, Layer layer, PlotRenderingInfo info)(Code)(Java Doc) public void drawDomainGridLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value)(Code)(Java Doc) public void drawDomainLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)(Code)(Java Doc) public void drawDomainMarker(Graphics2D g2, XYPlot plot, ValueAxis domainAxis, Marker marker, Rectangle2D dataArea)(Code)(Java Doc) protected void drawItemLabel(Graphics2D g2, PlotOrientation orientation, XYDataset dataset, int series, int item, double x, double y, boolean negative)(Code)(Java Doc) public void drawRangeLine(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double value, Paint paint, Stroke stroke)(Code)(Java Doc) public void drawRangeMarker(Graphics2D g2, XYPlot plot, ValueAxis rangeAxis, Marker marker, Rectangle2D dataArea)(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public void fillDomainGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code)(Java Doc) public void fillRangeGridBand(Graphics2D g2, XYPlot plot, ValueAxis axis, Rectangle2D dataArea, double start, double end)(Code)(Java Doc) public Range findDomainBounds(XYDataset dataset)(Code)(Java Doc) public Range findRangeBounds(XYDataset dataset)(Code)(Java Doc) public XYItemLabelGenerator getBaseItemLabelGenerator()(Code)(Java Doc) public XYToolTipGenerator getBaseToolTipGenerator()(Code)(Java Doc) public int getDefaultEntityRadius()(Code)(Java Doc) public DrawingSupplier getDrawingSupplier()(Code)(Java Doc) public XYItemLabelGenerator getItemLabelGenerator(int series, int item)(Code)(Java Doc) public XYItemLabelGenerator getItemLabelGenerator()(Code)(Java Doc) public LegendItem getLegendItem(int datasetIndex, int series)(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemLabelGenerator()(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemToolTipGenerator()(Code)(Java Doc) public XYSeriesLabelGenerator getLegendItemURLGenerator()(Code)(Java Doc) public LegendItemCollection getLegendItems()(Code)(Java Doc) public int getPassCount()(Code)(Java Doc) public XYPlot getPlot()(Code)(Java Doc) public XYItemLabelGenerator getSeriesItemLabelGenerator(int series)(Code)(Java Doc) public XYToolTipGenerator getSeriesToolTipGenerator(int series)(Code)(Java Doc) public XYToolTipGenerator getToolTipGenerator(int series, int item)(Code)(Java Doc) public XYToolTipGenerator getToolTipGenerator()(Code)(Java Doc) public XYURLGenerator getURLGenerator()(Code)(Java Doc) public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)(Code)(Java Doc) public boolean removeAnnotation(XYAnnotation annotation)(Code)(Java Doc) public void removeAnnotations()(Code)(Java Doc) public void setBaseItemLabelGenerator(XYItemLabelGenerator generator)(Code)(Java Doc) public void setBaseToolTipGenerator(XYToolTipGenerator generator)(Code)(Java Doc) public void setDefaultEntityRadius(int radius)(Code)(Java Doc) public void setItemLabelGenerator(XYItemLabelGenerator generator)(Code)(Java Doc) public void setLegendItemLabelGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemToolTipGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setLegendItemURLGenerator(XYSeriesLabelGenerator generator)(Code)(Java Doc) public void setPlot(XYPlot plot)(Code)(Java Doc) public void setSeriesItemLabelGenerator(int series, XYItemLabelGenerator generator)(Code)(Java Doc) public void setSeriesToolTipGenerator(int series, XYToolTipGenerator generator)(Code)(Java Doc) public void setToolTipGenerator(XYToolTipGenerator generator)(Code)(Java Doc) public void setURLGenerator(XYURLGenerator urlGenerator)(Code)(Java Doc) protected void updateCrosshairValues(CrosshairState crosshairState, double x, double y, double transX, double transY, PlotOrientation orientation)(Code)(Java Doc) protected void updateCrosshairValues(CrosshairState crosshairState, double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, PlotOrientation orientation)(Code)(Java Doc)
|
|
|