|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.chart.plot.Plot | +--org.jfree.chart.plot.FastScatterPlot
A fast scatter plot.
Field Summary |
Fields inherited from class org.jfree.chart.plot.Plot |
DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, ZERO |
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. |
Range |
getHorizontalDataRange(ValueAxis axis)
Returns the range of data values to be plotted along the horizontal axis. |
ValueAxis |
getHorizontalValueAxis()
Get the value axis. |
java.lang.String |
getPlotType()
Returns a short string describing the plot type. |
ValueAxis |
getRangeAxis()
Returns the range axis for the plot. |
Range |
getVerticalDataRange(ValueAxis axis)
Returns the range for the data to be plotted against the vertical axis. |
ValueAxis |
getVerticalValueAxis()
Returns the vertical axis. |
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, 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
public Range getHorizontalDataRange(ValueAxis axis)
getHorizontalDataRange
in interface HorizontalValuePlot
axis
- the axis.
public ValueAxis getHorizontalValueAxis()
getHorizontalValueAxis
in interface HorizontalValuePlot
public Range getVerticalDataRange(ValueAxis axis)
getVerticalDataRange
in interface VerticalValuePlot
axis
- the axis.
public ValueAxis getVerticalValueAxis()
getVerticalValueAxis
in interface VerticalValuePlot
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |