|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.sgt.CartesianRenderer
gov.noaa.pmel.sgt.VectorCartesianRenderer
public class VectorCartesianRenderer
Produces a vector plot. If a second data set is specified it must have the same shape as the first.
Field Summary |
---|
Fields inherited from class gov.noaa.pmel.sgt.CartesianRenderer |
---|
cg_ |
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 . |
protected void |
drawMark(java.awt.Graphics g,
int[] xp,
int[] yp,
int npoints,
VectorAttribute attr)
Draw a mark at the requested location. |
Attribute |
getAttribute()
Get the Attribute associated with the data. |
CartesianGraph |
getCartesianGraph()
Get the associated CartesianGraph object. |
Collection |
getCollection()
Get the Collection of SGTVector objects. |
SGTData |
getDataAt(java.awt.Point pt)
Find data object. |
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)
|
void |
setVectorAttribute(VectorAttribute l)
Set the VectorAttribute . |
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 |
---|
public VectorCartesianRenderer(CartesianGraph cg)
CartesianGraph
,
Graph
public VectorCartesianRenderer(CartesianGraph cg, SGTVector vector)
VectorCartesianRenderer
. The default
VectorAttribute
will be used.
cg
- the parent CartesianGraph
data
- an SGTVector
objectCartesianGraph
,
Graph
public VectorCartesianRenderer(CartesianGraph cg, SGTVector vector, VectorAttribute attr)
VectorCartesianRenderer
.
cg
- the parent CartesianGraph
vector
- a SGTVector
attr
- the VectorAttribute
CartesianGraph
,
Graph
public VectorCartesianRenderer(CartesianGraph cg, Collection col, VectorAttribute attr)
VectorCartesianRenderer
.
cg
- the parent CartesianGraph
col
- a Collection
of SGTVector
objectsattr
- the VectorAttribute
CartesianGraph
,
Graph
Method Detail |
---|
public Attribute getAttribute()
Attribute
associated with the data.
getAttribute
in class CartesianRenderer
Attribute
protected void drawMark(java.awt.Graphics g, int[] xp, int[] yp, int npoints, VectorAttribute attr)
g
- Graphics objectxp
- horizontal coordinateyp
- vertical coordinateattr
- vector attributeVectorKey
public void draw(java.awt.Graphics g)
SGTData
. This method should not
be directly called.
draw
in class CartesianRenderer
g
- graphics contextPane.draw()
public void setVectorAttribute(VectorAttribute l)
VectorAttribute
. The line appearance is controlled by
this object.
l
- VectorAttribute
public VectorAttribute getVectorAttribute()
VectorAttribute
.
VectorAttribute
public boolean hasCollection()
Collection
of SGTVector
was using to construct this renderer.
Collection
was usedpublic Collection getCollection()
Collection
of SGTVector
objects.
Collection
public SGTVector getVector()
SGTVector
object.
SGTVector
public CartesianGraph getCartesianGraph()
CartesianGraph
object.
getCartesianGraph
in class CartesianRenderer
CartesianGraph
public void propertyChange(java.beans.PropertyChangeEvent evt)
public SGTData getDataAt(java.awt.Point pt)
CartesianRenderer
getDataAt
in class CartesianRenderer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |