| org.jfree.chart.renderer.xy.AbstractXYItemRenderer org.jfree.chart.renderer.xy.StandardXYItemRenderer org.jfree.chart.renderer.xy.CyclicXYItemRenderer
CyclicXYItemRenderer | public class CyclicXYItemRenderer extends StandardXYItemRenderer implements Serializable(Code) | | The Cyclic XY item renderer is specially designed to handle cyclic axis.
While the standard renderer would draw a line across the plot when a cycling
occurs, the cyclic renderer splits the line at each cycle end instead. This
is done by interpolating new points at cycle boundary. Thus, correct
appearance is restored.
The Cyclic XY item renderer works exactly like a standard XY item renderer
with non-cyclic axis.
|
Inner Class :protected static class OverwriteDataSet implements XYDataset | |
Method Summary | |
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.
When using cyclic axis, do not draw a line from right to left when
cycling as would a standard XY item renderer, but instead draw a line
from the previous point to the cycle bound in the last cycle, and a line
from the cycle bound to current point in the current cycle. |
CyclicXYItemRenderer | public CyclicXYItemRenderer()(Code) | | Default constructor.
|
CyclicXYItemRenderer | public CyclicXYItemRenderer(int type)(Code) | | Creates a new renderer.
Parameters: type - the renderer type. |
CyclicXYItemRenderer | public CyclicXYItemRenderer(int type, XYToolTipGenerator labelGenerator)(Code) | | Creates a new renderer.
Parameters: type - the renderer type. Parameters: labelGenerator - the tooltip generator. |
CyclicXYItemRenderer | public CyclicXYItemRenderer(int type, XYToolTipGenerator labelGenerator, XYURLGenerator urlGenerator)(Code) | | Creates a new renderer.
Parameters: type - the renderer type. Parameters: labelGenerator - the tooltip generator. Parameters: urlGenerator - the url generator. |
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.
When using cyclic axis, do not draw a line from right to left when
cycling as would a standard XY item renderer, but instead draw a line
from the previous point to the cycle bound in the last cycle, and a line
from the cycle bound to current point in the current cycle.
Parameters: g2 - the graphics device. Parameters: state - the renderer state. Parameters: dataArea - the data area. Parameters: info - the plot rendering info. Parameters: plot - the plot. Parameters: domainAxis - the domain axis. Parameters: rangeAxis - the range axis. Parameters: dataset - the dataset. Parameters: series - the series index. Parameters: item - the item index. Parameters: crosshairState - crosshair information for the plot (null permitted). Parameters: pass - the current pass index. |
Methods inherited from org.jfree.chart.renderer.xy.StandardXYItemRenderer | public Object clone() throws CloneNotSupportedException(Code)(Java Doc) 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)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) public boolean getBaseShapesFilled()(Code)(Java Doc) public boolean getBaseShapesVisible()(Code)(Java Doc) public boolean getDrawSeriesLineAsPath()(Code)(Java Doc) public double getGapThreshold()(Code)(Java Doc) public UnitType getGapThresholdType()(Code)(Java Doc) protected Image getImage(Plot plot, int series, int item, double x, double y)(Code)(Java Doc) protected Point getImageHotspot(Plot plot, int series, int item, double x, double y, Image image)(Code)(Java Doc) public boolean getItemShapeFilled(int series, int item)(Code)(Java Doc) public LegendItem getLegendItem(int datasetIndex, int series)(Code)(Java Doc) public Shape getLegendLine()(Code)(Java Doc) public boolean getPlotDiscontinuous()(Code)(Java Doc) public boolean getPlotImages()(Code)(Java Doc) public boolean getPlotLines()(Code)(Java Doc) public Boolean getSeriesShapesFilled(int series)(Code)(Java Doc) public Boolean getShapesFilled()(Code)(Java Doc) public XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info)(Code)(Java Doc) public void setBaseShapesFilled(boolean flag)(Code)(Java Doc) public void setBaseShapesVisible(boolean flag)(Code)(Java Doc) public void setDrawSeriesLineAsPath(boolean flag)(Code)(Java Doc) public void setGapThreshold(double t)(Code)(Java Doc) public void setGapThresholdType(UnitType thresholdType)(Code)(Java Doc) public void setLegendLine(Shape line)(Code)(Java Doc) public void setPlotDiscontinuous(boolean flag)(Code)(Java Doc) public void setPlotImages(boolean flag)(Code)(Java Doc) public void setPlotLines(boolean flag)(Code)(Java Doc) public void setSeriesShapesFilled(int series, Boolean flag)(Code)(Java Doc) public void setShapesFilled(boolean filled)(Code)(Java Doc) public void setShapesFilled(Boolean filled)(Code)(Java Doc)
|
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)
|
|
|