org.mbari.siam.moos.utils.node
Class SiamCompassPlot
java.lang.Object
com.jrefinery.chart.Plot
com.jrefinery.chart.CompassPlot
org.mbari.siam.moos.utils.node.SiamCompassPlot
- All Implemented Interfaces:
- AxisConstants, com.jrefinery.chart.event.AxisChangeListener, DatasetChangeListener, java.io.Serializable, java.lang.Cloneable
public class SiamCompassPlot
- extends CompassPlot
A general class for plotting data in the form of (x, y) pairs. XYPlot can use data from any
class that implements the XYDataset interface (in the com.jrefinery.data package org.mbari.siam.moos.utils.node).
XYPlot makes use of a renderer to draw each point on the plot. By using different renderers,
various chart types can be produced. The ChartFactory class contains static methods for
creating pre-configured charts.
- See Also:
- Serialized Form
| Fields inherited from class com.jrefinery.chart.Plot |
backgroundAlpha, backgroundImage, backgroundPaint, dataset, DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_INSETS, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, firstSeriesIndex, foregroundAlpha, insets, listeners, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, outlinePaint, outlineStroke, seriesOutlinePaint, seriesOutlineStroke, seriesPaint, seriesStroke, shapeFactory, ZERO |
|
Method Summary |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
ChartRenderingInfo info)
Draws the plot on a Java 2D graphics device (such as the screen or a printer). |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
ChartRenderingInfo info,
Dataset dataset)
|
void |
handleClick(int x,
int y,
java.awt.geom.Rectangle2D plotArea)
|
| Methods inherited from class com.jrefinery.chart.CompassPlot |
addData, addData, clone, drawBackground, drawOutline, equals, getCompassFont, getData, getDrawBorder, getLabelFont, getLabelType, getLegendItemLabels, getLegendItems, getPlotType, setBackgroundPaint, setDrawBorder, setHighlightPaint, setLabelFont, setLabelType, setOutlinePaint, setSeriesNeedle, setSeriesNeedle, setSeriesNeedle, setSeriesOutlinePaint, setSeriesOutlineStroke, setSeriesPaint, zoom |
| Methods inherited from class com.jrefinery.chart.Plot |
addChangeListener, axisChanged, datasetChanged, drawOutlineAndBackground, getBackgroundAlpha, getBackgroundPaint, getDataset, getFirstSeriesIndex, getForegroundAlpha, getInsets, getOutlinePaint, getOutlineStroke, getSeriesOutlinePaint, getSeriesOutlineStroke, getSeriesPaint, getSeriesStroke, getShape, getShape, getShapeFactory, handleClick, isSubplot, notifyListeners, removeChangeListener, setBackgroundAlpha, setBackgroundImage, setDataset, setFirstSeriesIndex, setForegroundAlpha, setInsets, setOutlineStroke, setSeriesOutlinePaint, setSeriesOutlineStroke, setSeriesPaint, setSeriesStroke, setSeriesStroke, setShapeFactory |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SiamCompassPlot
public SiamCompassPlot(SiamCompassDataset data)
- Constructs a MeterPlot with the specified axes (other attributes take default values).
draw
public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
ChartRenderingInfo info)
- Description copied from class:
CompassPlot
- Draws the plot on a Java 2D graphics device (such as the screen or a printer).
- Overrides:
draw in class CompassPlot
- Parameters:
g2 - the graphics device.plotArea - the area within which the plot should be drawn.info - collects info about the drawing.
draw
public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D plotArea,
ChartRenderingInfo info,
Dataset dataset)
handleClick
public void handleClick(int x,
int y,
java.awt.geom.Rectangle2D plotArea)
Copyright © 2003 MBARI.
The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.