SSJ
V. 2.2.

umontreal.iro.lecuyer.charts
Class EmpiricalRenderer

java.lang.Object
  extended by XYLineAndShapeRenderer
      extended by umontreal.iro.lecuyer.charts.EmpiricalRenderer
All Implemented Interfaces:
Cloneable

public class EmpiricalRenderer
extends XYLineAndShapeRenderer
implements Cloneable

A renderer that draws horizontal lines between points and/or draws shapes at each data point to provide an empirical style chart. This renderer is designed for use with the {XYPlot} class.


Constructor Summary
EmpiricalRenderer()
          Creates a new renderer.
EmpiricalRenderer(XYToolTipGenerator toolTipGenerator, XYURLGenerator urlGenerator)
          Creates a new renderer with selected tool tip and url generators.
 
Method Summary
 Object clone()
          Returns a clone of the renderer.
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmpiricalRenderer

public EmpiricalRenderer()
Creates a new renderer.


EmpiricalRenderer

public EmpiricalRenderer(XYToolTipGenerator toolTipGenerator,
                         XYURLGenerator urlGenerator)
Creates a new renderer with selected tool tip and url generators.

Parameters:
toolTipGenerator - Tool tip generator.
urlGenerator - Url generator.
Method Detail

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)
Draws the visual representation of a single data item.

Parameters:
g2 - the graphics device.
state - the renderer state.
dataArea - the area within which the data is being drawn.
info - collects information about the drawing.
plot - the plot (can be used to obtain standard color information etc).
domainAxis - the domain axis.
rangeAxis - the range axis.
dataset - the dataset.
series - the series index (zero-based).
item - the item index (zero-based).
crosshairState - crosshair information for the plot (null permitted).
pass - the pass index.

clone

public Object clone()
             throws CloneNotSupportedException
Returns a clone of the renderer.

Returns:
A clone.
Throws:
CloneNotSupportedException - if the clone cannot be created.

SSJ
V. 2.2.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.