Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » renderer » xy » [javadoc | source]
org.jfree.chart.renderer.xy
public class: XYDifferenceRenderer [javadoc | source]
java.lang.Object
   org.jfree.chart.renderer.AbstractRenderer
      org.jfree.chart.renderer.xy.AbstractXYItemRenderer
         org.jfree.chart.renderer.xy.XYDifferenceRenderer

All Implemented Interfaces:
    PublicCloneable, Cloneable, Serializable, XYItemRenderer

A renderer for an XYPlot that highlights the differences between two series.
Fields inherited from org.jfree.chart.renderer.AbstractRenderer:
ZERO,  DEFAULT_PAINT,  DEFAULT_OUTLINE_PAINT,  DEFAULT_STROKE,  DEFAULT_OUTLINE_STROKE,  DEFAULT_SHAPE,  DEFAULT_VALUE_LABEL_FONT,  DEFAULT_VALUE_LABEL_PAINT
Constructor:
 public XYDifferenceRenderer() 
 public XYDifferenceRenderer(Paint positivePaint,
    Paint negativePaint,
    boolean shapes) 
    Creates a new renderer.
    Parameters:
    positivePaint - the highlight color for positive differences (null not permitted).
    negativePaint - the highlight color for negative differences (null not permitted).
    shapes - draw shapes?
Method from org.jfree.chart.renderer.xy.XYDifferenceRenderer Summary:
clone,   drawItem,   drawItemPass0,   drawItemPass1,   equals,   getLegendItem,   getLegendLine,   getNegativePaint,   getPassCount,   getPositivePaint,   getRoundXCoordinates,   getShapesVisible,   initialise,   setLegendLine,   setNegativePaint,   setPositivePaint,   setRoundXCoordinates,   setShapesVisible
Methods from org.jfree.chart.renderer.xy.AbstractXYItemRenderer:
addAnnotation,   addAnnotation,   addEntity,   calculateDomainMarkerTextAnchorPoint,   clone,   drawAnnotations,   drawDomainGridLine,   drawDomainLine,   drawDomainMarker,   drawItemLabel,   drawRangeLine,   drawRangeMarker,   equals,   fillDomainGridBand,   fillRangeGridBand,   findDomainBounds,   findRangeBounds,   getBaseItemLabelGenerator,   getBaseToolTipGenerator,   getDefaultEntityRadius,   getDrawingSupplier,   getItemLabelGenerator,   getItemLabelGenerator,   getLegendItem,   getLegendItemLabelGenerator,   getLegendItemToolTipGenerator,   getLegendItemURLGenerator,   getLegendItems,   getPassCount,   getPlot,   getSeriesItemLabelGenerator,   getSeriesToolTipGenerator,   getToolTipGenerator,   getToolTipGenerator,   getURLGenerator,   initialise,   isPointInRect,   removeAnnotation,   removeAnnotations,   setBaseItemLabelGenerator,   setBaseToolTipGenerator,   setDefaultEntityRadius,   setItemLabelGenerator,   setLegendItemLabelGenerator,   setLegendItemToolTipGenerator,   setLegendItemURLGenerator,   setPlot,   setSeriesItemLabelGenerator,   setSeriesToolTipGenerator,   setToolTipGenerator,   setURLGenerator,   updateCrosshairValues,   updateCrosshairValues
Methods from org.jfree.chart.renderer.AbstractRenderer:
addChangeListener,   calculateLabelAnchorPoint,   clone,   equals,   fireChangeEvent,   getAutoPopulateSeriesFillPaint,   getAutoPopulateSeriesOutlinePaint,   getAutoPopulateSeriesOutlineStroke,   getAutoPopulateSeriesPaint,   getAutoPopulateSeriesShape,   getAutoPopulateSeriesStroke,   getBaseCreateEntities,   getBaseFillPaint,   getBaseItemLabelFont,   getBaseItemLabelPaint,   getBaseItemLabelsVisible,   getBaseNegativeItemLabelPosition,   getBaseOutlinePaint,   getBaseOutlineStroke,   getBasePaint,   getBasePositiveItemLabelPosition,   getBaseSeriesVisible,   getBaseSeriesVisibleInLegend,   getBaseShape,   getBaseStroke,   getCreateEntities,   getDrawingSupplier,   getItemCreateEntity,   getItemFillPaint,   getItemLabelAnchorOffset,   getItemLabelFont,   getItemLabelFont,   getItemLabelPaint,   getItemLabelPaint,   getItemOutlinePaint,   getItemOutlineStroke,   getItemPaint,   getItemShape,   getItemStroke,   getItemVisible,   getNegativeItemLabelPosition,   getNegativeItemLabelPosition,   getPositiveItemLabelPosition,   getPositiveItemLabelPosition,   getSeriesCreateEntities,   getSeriesFillPaint,   getSeriesItemLabelFont,   getSeriesItemLabelPaint,   getSeriesNegativeItemLabelPosition,   getSeriesOutlinePaint,   getSeriesOutlineStroke,   getSeriesPaint,   getSeriesPositiveItemLabelPosition,   getSeriesShape,   getSeriesStroke,   getSeriesVisible,   getSeriesVisible,   getSeriesVisibleInLegend,   getSeriesVisibleInLegend,   hasListener,   hashCode,   isItemLabelVisible,   isSeriesItemLabelsVisible,   isSeriesVisible,   isSeriesVisibleInLegend,   lookupSeriesFillPaint,   lookupSeriesOutlinePaint,   lookupSeriesOutlineStroke,   lookupSeriesPaint,   lookupSeriesShape,   lookupSeriesStroke,   notifyListeners,   removeChangeListener,   setAutoPopulateSeriesFillPaint,   setAutoPopulateSeriesOutlinePaint,   setAutoPopulateSeriesOutlineStroke,   setAutoPopulateSeriesPaint,   setAutoPopulateSeriesShape,   setAutoPopulateSeriesStroke,   setBaseCreateEntities,   setBaseCreateEntities,   setBaseFillPaint,   setBaseFillPaint,   setBaseItemLabelFont,   setBaseItemLabelFont,   setBaseItemLabelPaint,   setBaseItemLabelPaint,   setBaseItemLabelsVisible,   setBaseItemLabelsVisible,   setBaseItemLabelsVisible,   setBaseNegativeItemLabelPosition,   setBaseNegativeItemLabelPosition,   setBaseOutlinePaint,   setBaseOutlinePaint,   setBaseOutlineStroke,   setBaseOutlineStroke,   setBasePaint,   setBasePaint,   setBasePositiveItemLabelPosition,   setBasePositiveItemLabelPosition,   setBaseSeriesVisible,   setBaseSeriesVisible,   setBaseSeriesVisibleInLegend,   setBaseSeriesVisibleInLegend,   setBaseShape,   setBaseShape,   setBaseStroke,   setBaseStroke,   setCreateEntities,   setCreateEntities,   setFillPaint,   setFillPaint,   setItemLabelAnchorOffset,   setItemLabelFont,   setItemLabelFont,   setItemLabelPaint,   setItemLabelPaint,   setItemLabelsVisible,   setItemLabelsVisible,   setItemLabelsVisible,   setNegativeItemLabelPosition,   setNegativeItemLabelPosition,   setOutlinePaint,   setOutlinePaint,   setOutlineStroke,   setOutlineStroke,   setPaint,   setPaint,   setPositiveItemLabelPosition,   setPositiveItemLabelPosition,   setSeriesCreateEntities,   setSeriesCreateEntities,   setSeriesFillPaint,   setSeriesFillPaint,   setSeriesItemLabelFont,   setSeriesItemLabelFont,   setSeriesItemLabelPaint,   setSeriesItemLabelPaint,   setSeriesItemLabelsVisible,   setSeriesItemLabelsVisible,   setSeriesItemLabelsVisible,   setSeriesNegativeItemLabelPosition,   setSeriesNegativeItemLabelPosition,   setSeriesOutlinePaint,   setSeriesOutlinePaint,   setSeriesOutlineStroke,   setSeriesOutlineStroke,   setSeriesPaint,   setSeriesPaint,   setSeriesPositiveItemLabelPosition,   setSeriesPositiveItemLabelPosition,   setSeriesShape,   setSeriesShape,   setSeriesStroke,   setSeriesStroke,   setSeriesVisible,   setSeriesVisible,   setSeriesVisible,   setSeriesVisible,   setSeriesVisibleInLegend,   setSeriesVisibleInLegend,   setSeriesVisibleInLegend,   setSeriesVisibleInLegend,   setShape,   setShape,   setStroke,   setStroke
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.renderer.xy.XYDifferenceRenderer Detail:
 public Object clone() throws CloneNotSupportedException 
    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.
 protected  void drawItemPass0(Graphics2D x_graphics,
    Rectangle2D x_dataArea,
    PlotRenderingInfo x_info,
    XYPlot x_plot,
    ValueAxis x_domainAxis,
    ValueAxis x_rangeAxis,
    XYDataset x_dataset,
    int x_series,
    int x_item,
    CrosshairState x_crosshairState) 
    Draws the visual representation of a single data item, first pass.
 protected  void drawItemPass1(Graphics2D x_graphics,
    Rectangle2D x_dataArea,
    PlotRenderingInfo x_info,
    XYPlot x_plot,
    ValueAxis x_domainAxis,
    ValueAxis x_rangeAxis,
    XYDataset x_dataset,
    int x_series,
    int x_item,
    CrosshairState x_crosshairState) 
    Draws the visual representation of a single data item, second pass. In the second pass, the renderer draws the lines and shapes for the individual points in the two series.
 public boolean equals(Object obj) 
    Tests this renderer for equality with an arbitrary object.
 public LegendItem getLegendItem(int datasetIndex,
    int series) 
    Returns a default legend item for the specified series. Subclasses should override this method to generate customised items.
 public Shape getLegendLine() 
    Returns the shape used to represent a line in the legend.
 public Paint getNegativePaint() 
    Returns the paint used to highlight negative differences.
 public int getPassCount() 
    Returns 2, the number of passes required by the renderer. The XYPlot will run through the dataset this number of times.
 public Paint getPositivePaint() 
    Returns the paint used to highlight positive differences.
 public boolean getRoundXCoordinates() 
    Returns the flag that controls whether or not the x-coordinates (in Java2D space) are rounded to integer values.
 public boolean getShapesVisible() 
    Returns a flag that controls whether or not shapes are drawn for each data value.
 public XYItemRendererState initialise(Graphics2D g2,
    Rectangle2D dataArea,
    XYPlot plot,
    XYDataset data,
    PlotRenderingInfo info) 
    Initialises the renderer and returns a state object that should be passed to subsequent calls to the drawItem() method. This method will be called before the first item is rendered, giving the renderer an opportunity to initialise any state information it wants to maintain. The renderer can do nothing if it chooses.
 public  void setLegendLine(Shape line) 
    Sets the shape used as a line in each legend item and sends a RendererChangeEvent to all registered listeners.
 public  void setNegativePaint(Paint paint) 
    Sets the paint used to highlight negative differences.
 public  void setPositivePaint(Paint paint) 
    Sets the paint used to highlight positive differences and sends a RendererChangeEvent to all registered listeners.
 public  void setRoundXCoordinates(boolean round) 
    Sets the flag that controls whether or not the x-coordinates (in Java2D space) are rounded to integer values, and sends a RendererChangeEvent to all registered listeners.
 public  void setShapesVisible(boolean flag) 
    Sets a flag that controls whether or not shapes are drawn for each data value, and sends a RendererChangeEvent to all registered listeners.