org.mbari.siam.moos.utils.node
Class SiamMeterPlot

java.lang.Object
  extended by com.jrefinery.chart.Plot
      extended by com.jrefinery.chart.MeterPlot
          extended by org.mbari.siam.moos.utils.node.SiamMeterPlot
All Implemented Interfaces:
AxisConstants, com.jrefinery.chart.event.AxisChangeListener, DatasetChangeListener

public class SiamMeterPlot
extends MeterPlot

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.


Field Summary
 
Fields inherited from class com.jrefinery.chart.MeterPlot
CRITICAL_TEXT, DEFAULT_BACKGROUND_COLOR, DEFAULT_BORDER_SIZE, DEFAULT_CIRCLE_SIZE, DEFAULT_LABEL_FONT, DEFAULT_METER_ANGLE, dialBorderColor, dialType, DIALTYPE_CHORD, DIALTYPE_CIRCLE, DIALTYPE_PIE, drawBorder, labelFont, labelType, meterAngle, meterCalcAngle, meterRange, minMeterValue, NO_LABELS, NORMAL_TEXT, tickUnit, tickUnits, VALUE_LABELS, WARNING_TEXT
 
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
 
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_STROKE
 
Constructor Summary
SiamMeterPlot(SiamMeterDataset data)
          Constructs a MeterPlot with the specified axes (other attributes take default values).
 
Method Summary
 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.MeterPlot
draw, getCriticalColor, getDialBorderColor, getDialType, getDrawBorder, getLabelFont, getLabelType, getLegendItemLabels, getMeterAngle, getMeterDataset, getNormalColor, getPlotType, getWarningColor, isCompatibleHorizontalAxis, isCompatibleVerticalAxis, setCriticalColor, setDialBorderColor, setDialType, setDrawBorder, setLabelFont, setLabelType, setMeterAngle, setNormalColor, setWarningColor, 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, setBackgroundPaint, setDataset, setFirstSeriesIndex, setForegroundAlpha, setInsets, setOutlinePaint, setOutlineStroke, setSeriesOutlinePaint, setSeriesOutlineStroke, setSeriesOutlineStroke, setSeriesPaint, setSeriesPaint, setSeriesStroke, setSeriesStroke, setShapeFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiamMeterPlot

public SiamMeterPlot(SiamMeterDataset data)
Constructs a MeterPlot with the specified axes (other attributes take default values).

Method Detail

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.