|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.chart.Plot | +--com.jrefinery.chart.FastScatterPlot
A fast scatter plot.
Fields inherited from interface com.jrefinery.chart.AxisConstants |
DEFAULT_AXIS_LABEL_FONT, DEFAULT_AXIS_LABEL_INSETS, DEFAULT_AXIS_LABEL_PAINT, DEFAULT_TICK_LABEL_FONT, DEFAULT_TICK_LABEL_INSETS, DEFAULT_TICK_LABEL_PAINT, DEFAULT_TICK_PAINT, DEFAULT_TICK_STROKE |
Constructor Summary | |
FastScatterPlot(float[][] data,
ValueAxis domainAxis,
ValueAxis rangeAxis)
Creates a new fast scatter plot. |
Method Summary | |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
ChartRenderingInfo info)
Draws the fast scatter plot on a Java 2D graphics device (such as the screen or a printer). |
ValueAxis |
getDomainAxis()
Returns the domain axis for the plot. |
java.lang.String |
getPlotType()
Returns a short string describing the plot type. |
ValueAxis |
getRangeAxis()
Returns the range axis for the plot. |
void |
render(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
ChartRenderingInfo info,
CrosshairInfo crosshairInfo)
Draws a representation of the data within the dataArea region. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FastScatterPlot(float[][] data, ValueAxis domainAxis, ValueAxis rangeAxis)
The data is an array of x, y values: data[0][i] = x, data[1][i] = y.
data
- the data.domainAxis
- the domain (x) axis.rangeAxis
- the range (y) axis.Method Detail |
public ValueAxis getDomainAxis()
public ValueAxis getRangeAxis()
public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D plotArea, ChartRenderingInfo info)
draw
in class Plot
g2
- the graphics device.plotArea
- the area within which the plot (including axis labels)
should be drawn.info
- collects chart drawing information (null permitted).public void render(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D dataArea, ChartRenderingInfo info, CrosshairInfo crosshairInfo)
The info
and crosshairInfo
arguments may be null
.
g2
- the graphics device.dataArea
- the region in which the data is to be drawn.info
- an optional object for collection dimension information.crosshairInfo
- an optional object for collecting crosshair info.public java.lang.String getPlotType()
getPlotType
in class Plot
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |