SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | List of all members
EmpiricalRenderer Class Reference

A renderer that draws horizontal lines between points and/or draws shapes at each data point to provide an empirical style chart. More...

Inheritance diagram for EmpiricalRenderer:
[legend]
Collaboration diagram for EmpiricalRenderer:
[legend]

Public Member Functions

 EmpiricalRenderer ()
 Creates a new renderer.
 
 EmpiricalRenderer (XYToolTipGenerator toolTipGenerator, XYURLGenerator urlGenerator)
 Creates a new renderer with selected tool tip and url generators. More...
 
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. More...
 
Object clone () throws CloneNotSupportedException
 Returns a clone of the renderer. More...
 

Detailed Description

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 & Destructor Documentation

◆ EmpiricalRenderer()

EmpiricalRenderer ( XYToolTipGenerator  toolTipGenerator,
XYURLGenerator  urlGenerator 
)

Creates a new renderer with selected tool tip and url generators.

Parameters
toolTipGeneratorTool tip generator.
urlGeneratorUrl generator.

Member Function Documentation

◆ clone()

Object clone ( ) throws CloneNotSupportedException

Returns a clone of the renderer.

Returns
A clone.
Exceptions
CloneNotSupportedExceptionif the clone cannot be created.

◆ drawItem()

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
g2the graphics device.
statethe renderer state.
dataAreathe area within which the data is being drawn.
infocollects information about the drawing.
plotthe plot (can be used to obtain standard color information etc).
domainAxisthe domain axis.
rangeAxisthe range axis.
datasetthe dataset.
seriesthe series index (zero-based).
itemthe item index (zero-based).
crosshairStatecrosshair information for the plot (null permitted).
passthe pass index.

The documentation for this class was generated from the following file: