gov.noaa.pmel.sgt
Class PointCartesianRenderer

java.lang.Object
  extended by gov.noaa.pmel.sgt.CartesianRenderer
      extended by gov.noaa.pmel.sgt.PointCartesianRenderer
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class PointCartesianRenderer
extends CartesianRenderer

Produces a point plot with optional coloring from a second data set. If a second data set is specified it must have the same shape as the first.

Since:
2.0
Version:
$Revision$, $Date$
Author:
Donald Denbo

Field Summary
 
Fields inherited from class gov.noaa.pmel.sgt.CartesianRenderer
cg_
 
Constructor Summary
PointCartesianRenderer(CartesianGraph cg)
          Default constructor.
PointCartesianRenderer(CartesianGraph cg, Collection col, PointAttribute attr)
          Construct a PointCartesianRenderer.
PointCartesianRenderer(CartesianGraph cg, SGTPoint point)
          Construct a PointCartesianRenderer.
PointCartesianRenderer(CartesianGraph cg, SGTPoint point, PointAttribute attr)
          Construct a PointCartesianRenderer.
 
Method Summary
 void draw(java.awt.Graphics g)
          Render the SGTData object.
 Attribute getAttribute()
          Get the Attribute associated with the data.
 CartesianGraph getCartesianGraph()
          Get the associated CartesianGraph object.
 Collection getCollection()
          Get the Collection of points.
 SGTData getDataAt(java.awt.Point pt)
          Find data object.
 SGTPoint getPoint()
           
 PointAttribute getPointAttribute()
          Get the Point attribute object.
 boolean hasCollection()
          Is point data as a collection?
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void setPointAttribute(PointAttribute l)
          Set the Point attribute object.
 
Methods inherited from class gov.noaa.pmel.sgt.CartesianRenderer
getDataAt, getPane, getRenderer, modified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointCartesianRenderer

public PointCartesianRenderer(CartesianGraph cg)
Default constructor.

See Also:
CartesianGraph, Graph

PointCartesianRenderer

public PointCartesianRenderer(CartesianGraph cg,
                              SGTPoint point)
Construct a PointCartesianRenderer. The default PointAttribute will be used.

Parameters:
cg - the parent CartesianGraph
data - an SGTPoint object
See Also:
CartesianGraph, Graph

PointCartesianRenderer

public PointCartesianRenderer(CartesianGraph cg,
                              SGTPoint point,
                              PointAttribute attr)
Construct a PointCartesianRenderer.

Parameters:
cg - the parent CartesianGraph
data - an SGTPoint object
Point - the PointAttribute
See Also:
CartesianGraph, Graph

PointCartesianRenderer

public PointCartesianRenderer(CartesianGraph cg,
                              Collection col,
                              PointAttribute attr)
Construct a PointCartesianRenderer.

Parameters:
cg - the parent CartesianGraph
col - a Collection of SGTPoint objects
point - the PointAttribute
See Also:
CartesianGraph, Graph
Method Detail

getAttribute

public Attribute getAttribute()
Get the Attribute associated with the data.

Specified by:
getAttribute in class CartesianRenderer
Returns:
the Attribute

draw

public void draw(java.awt.Graphics g)
Description copied from class: CartesianRenderer
Render the SGTData object. This method should never be called directly.

Specified by:
draw in class CartesianRenderer
See Also:
Pane.draw()

setPointAttribute

public void setPointAttribute(PointAttribute l)
Set the Point attribute object. The Point appearance is controlled by this object.

Parameters:
l - Point attribute

getPointAttribute

public PointAttribute getPointAttribute()
Get the Point attribute object.

Returns:
Point attribute

hasCollection

public boolean hasCollection()
Is point data as a collection?


getCollection

public Collection getCollection()
Get the Collection of points.


getPoint

public SGTPoint getPoint()

getCartesianGraph

public CartesianGraph getCartesianGraph()
Get the associated CartesianGraph object.

Specified by:
getCartesianGraph in class CartesianRenderer
Returns:
CartesianGraph

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)

getDataAt

public SGTData getDataAt(java.awt.Point pt)
Description copied from class: CartesianRenderer
Find data object.

Specified by:
getDataAt in class CartesianRenderer
Since:
3.0