gov.noaa.pmel.sgt
Class VectorCartesianRenderer

java.lang.Object
  |
  +--gov.noaa.pmel.sgt.CartesianRenderer
        |
        +--gov.noaa.pmel.sgt.VectorCartesianRenderer
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener

public class VectorCartesianRenderer
extends CartesianRenderer

Produces a vector plot. If a second data set is specified it must have the same shape as the first.

Since:
2.1
Version:
$Revision: 1.11 $, $Date: 2001/12/11 21:31:42 $
Author:
Donald Denbo

Constructor Summary
VectorCartesianRenderer(CartesianGraph cg)
          Default constructor.
VectorCartesianRenderer(CartesianGraph cg, Collection col, VectorAttribute attr)
          Construct a VectorCartesianRenderer.
VectorCartesianRenderer(CartesianGraph cg, SGTVector vector)
          Construct a VectorCartesianRenderer.
VectorCartesianRenderer(CartesianGraph cg, SGTVector vector, VectorAttribute attr)
          Construct a VectorCartesianRenderer.
 
Method Summary
 void draw(java.awt.Graphics g)
          Render the SGTData.
 Attribute getAttribute()
          Get the Attribute associated with the data.
 CartesianGraph getCartesianGraph()
          Get the associated CartesianGraph object.
 Collection getCollection()
          Get the Collection of SGTVector objects.
 SGTVector getVector()
          Get the SGTVector object.
 VectorAttribute getVectorAttribute()
          Get the VectorAttribute.
 boolean hasCollection()
          Test if a Collection of SGTVector was using to construct this renderer.
 void propertyChange(java.beans.PropertyChangeEvent evt)
          This method gets called when a bound property is changed.
 void setVectorAttribute(VectorAttribute l)
          Set the VectorAttribute.
 
Methods inherited from class gov.noaa.pmel.sgt.CartesianRenderer
getPane, getRenderer, modified
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VectorCartesianRenderer

public VectorCartesianRenderer(CartesianGraph cg)
Default constructor.
See Also:
CartesianGraph, Graph

VectorCartesianRenderer

public VectorCartesianRenderer(CartesianGraph cg,
                               SGTVector vector)
Construct a VectorCartesianRenderer. The default VectorAttribute will be used.
Parameters:
cg - the parent CartesianGraph
data - an SGTVector object
See Also:
CartesianGraph, Graph

VectorCartesianRenderer

public VectorCartesianRenderer(CartesianGraph cg,
                               SGTVector vector,
                               VectorAttribute attr)
Construct a VectorCartesianRenderer.
Parameters:
cg - the parent CartesianGraph
vector - a SGTVector
attr - the VectorAttribute
See Also:
CartesianGraph, Graph

VectorCartesianRenderer

public VectorCartesianRenderer(CartesianGraph cg,
                               Collection col,
                               VectorAttribute attr)
Construct a VectorCartesianRenderer.
Parameters:
cg - the parent CartesianGraph
col - a Collection of SGTVector objects
attr - the VectorAttribute
See Also:
CartesianGraph, Graph
Method Detail

getAttribute

public Attribute getAttribute()
Get the Attribute associated with the data.
Overrides:
getAttribute in class CartesianRenderer
Following copied from class: gov.noaa.pmel.sgt.CartesianRenderer
Returns:
the Attribute

draw

public void draw(java.awt.Graphics g)
Render the SGTData. This method should not be directly called.
Overrides:
draw in class CartesianRenderer
Parameters:
g - graphics context
See Also:
Pane.draw()

setVectorAttribute

public void setVectorAttribute(VectorAttribute l)
Set the VectorAttribute. The line appearance is controlled by this object.
Parameters:
l - VectorAttribute

getVectorAttribute

public VectorAttribute getVectorAttribute()
Get the VectorAttribute.
Returns:
VectorAttribute

hasCollection

public boolean hasCollection()
Test if a Collection of SGTVector was using to construct this renderer.
Returns:
true if Collection was used

getCollection

public Collection getCollection()
Get the Collection of SGTVector objects.
Returns:
Collection

getVector

public SGTVector getVector()
Get the SGTVector object.
Returns:
SGTVector

getCartesianGraph

public CartesianGraph getCartesianGraph()
Get the associated CartesianGraph object.
Overrides:
getCartesianGraph in class CartesianRenderer
Returns:
CartesianGraph

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Description copied from interface: java.beans.PropertyChangeListener
This method gets called when a bound property is changed.
Following copied from interface: java.beans.PropertyChangeListener
Parameters:
evt - A PropertyChangeEvent object describing the event source and the property that has changed.


Send comments about the Scientific Graphics toolkit to dwd@pmel.noaa.gov. For more information about Java Development in the EPIC Group see the EPIC Software Page
Generated on December 13 2001