SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.charts.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 umontreal.ssj.charts.EmpiricalRenderer:

Public Member Functions

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

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.

Definition at line 53 of file EmpiricalRenderer.java.

Constructor & Destructor Documentation

◆ EmpiricalRenderer() [1/2]

umontreal.ssj.charts.EmpiricalRenderer.EmpiricalRenderer ( )

Creates a new renderer.

Definition at line 58 of file EmpiricalRenderer.java.

◆ EmpiricalRenderer() [2/2]

umontreal.ssj.charts.EmpiricalRenderer.EmpiricalRenderer ( XYToolTipGenerator toolTipGenerator,
XYURLGenerator urlGenerator )

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

Parameters
toolTipGeneratorTool tip generator.
urlGeneratorUrl generator.

Definition at line 68 of file EmpiricalRenderer.java.

Member Function Documentation

◆ clone()

Object umontreal.ssj.charts.EmpiricalRenderer.clone ( ) throws CloneNotSupportedException

Returns a clone of the renderer.

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

Definition at line 215 of file EmpiricalRenderer.java.

◆ drawItem()

void umontreal.ssj.charts.EmpiricalRenderer.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.

Definition at line 93 of file EmpiricalRenderer.java.


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