|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--gov.noaa.pmel.sgt.contour.Contour
Contour constructs a set of ContourLine objects based on
the ContourLevels, SGTGrid, and mask
supplied. Used by
GridCartesianRenderer for GridAttribute
types of CONTOUR.
ContourLine,
ContourLevels,
GridCartesianRenderer,
GridAttribute,
ContourLineAttribute,
DefaultContourLineAttribute| Constructor Summary | |
Contour(CartesianGraph cg,
SGTGrid grid,
ContourLevels conLevels)
Construct a Contour object using a
ContourLevels object. |
|
Contour(CartesianGraph cg,
SGTGrid grid,
double[] levels)
Construct a Contour object using an array of levels to define
the ContourLevels. |
|
Contour(CartesianGraph cg,
SGTGrid grid,
Range2D range)
Construct a Contour object using a range to define
the ContourLevels. |
|
| Method Summary | |
java.util.Enumeration |
elements()
Return the Enumeration of a Vector
containing the ContourLine objects. |
void |
generateContourLabels(java.awt.Graphics g)
Given the computed ContourLines and the
ContourLineAttribute generate the contour labels. |
void |
generateContourLines()
Given the current ContourLevels, mask, and
SGTGrid generate the ContourLines. |
ContourLevels |
getContourLevels()
Get a reference to the ContourLevels object. |
SGTGrid |
getMask()
Get the mask. |
void |
propertyChange(java.beans.PropertyChangeEvent event)
Reponds to changes in the ContourLevels object. |
void |
setMask(SGTGrid mask)
Set a SGTGrid object to be used to mask the data
grid. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Contour(CartesianGraph cg,
SGTGrid grid,
Range2D range)
Contour object using a range to define
the ContourLevels.
public Contour(CartesianGraph cg,
SGTGrid grid,
double[] levels)
Contour object using an array of levels to define
the ContourLevels.
public Contour(CartesianGraph cg,
SGTGrid grid,
ContourLevels conLevels)
Contour object using a
ContourLevels object.
| Method Detail |
public ContourLevels getContourLevels()
ContourLevels object.
public void setMask(SGTGrid mask)
SGTGrid object to be used to mask the data
grid. The Z values are used to determine the masking, values of
NaN and non-zero are set as MISSING.
public SGTGrid getMask()
public java.util.Enumeration elements()
Enumeration of a Vector
containing the ContourLine objects.
public void propertyChange(java.beans.PropertyChangeEvent event)
ContourLevels object.
propertyChange in interface java.beans.PropertyChangeListenerpublic void generateContourLines()
ContourLevels, mask, and
SGTGrid generate the ContourLines.
public void generateContourLabels(java.awt.Graphics g)
ContourLines and the
ContourLineAttribute generate the contour labels.
Must be only invoked after generateConourLines().
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||