|
SGT Home | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--gov.noaa.pmel.sgt.GridAttribute
Sets the rendering style for grid data. ColorMap,
ContourLevels are GridAttribute properties.
GridCartesianRenderer,
ContourLevels| Field Summary | |
static int |
AREA_FILL
Area fill style. |
static int |
AREA_FILL_CONTOUR
Area fill and Contour style. |
static int |
CONTOUR
Contour line style. |
static int |
RASTER
Raster style. |
static int |
RASTER_CONTOUR
Raster and Contour style. |
| Constructor Summary | |
GridAttribute()
Default constructor. |
|
GridAttribute(ContourLevels clev)
GridAttribute constructor for CONTOUR style. |
|
GridAttribute(int style,
ColorMap cmap)
GridAttribute constructor for RASTER and
AREA_FILL styles. |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add listener to changes in GridAttribute properties. |
GridAttribute |
copy()
Copy the GridAttribute. |
ColorMap |
getColorMap()
Get the ColorMap. |
ContourLevels |
getContourLevels()
Get the ContourLevels. |
int |
getStyle()
Get grid style. |
boolean |
isAreaFill()
Tests if GridAttribute style is eigther
AREA_FILL or AREA_FILL_CONTOUR. |
boolean |
isContour()
Tests if GridAttribute style is either
CONTOUR, RASTER_CONTOUR, or AREA_FILL_CONTOUR. |
boolean |
isRaster()
Tests if GridAttribute style is either
RASTER or RASTER_CONTOUR. |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
This method gets called when a bound property is changed. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove change listener. |
void |
setColorMap(ColorMap cmap)
Set the ColorMap. |
void |
setContourLevels(ContourLevels clev)
Set the ContourLevels. |
void |
setStyle(int st)
Set the grid style. |
java.lang.String |
toString()
Get a String representation of the
GridAttribute. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int RASTER
public static final int AREA_FILL
public static final int CONTOUR
public static final int RASTER_CONTOUR
public static final int AREA_FILL_CONTOUR
| Constructor Detail |
public GridAttribute()
RASTER and
default ColorMap is null.
public GridAttribute(int style,
ColorMap cmap)
GridAttribute constructor for RASTER and
AREA_FILL styles.style - grid stylecmap - ColorMappublic GridAttribute(ContourLevels clev)
GridAttribute constructor for CONTOUR style.clev - ContourLevels| Method Detail |
public void setContourLevels(ContourLevels clev)
ContourLevels.
contourLevels.clev - ContourLevelspublic ContourLevels getContourLevels()
ContourLevels.ContourLevelspublic GridAttribute copy()
GridAttribute.GridAttributepublic void setStyle(int st)
style.st - grid stylepublic int getStyle()
public boolean isRaster()
GridAttribute style is either
RASTER or RASTER_CONTOUR.public boolean isContour()
GridAttribute style is either
CONTOUR, RASTER_CONTOUR, or AREA_FILL_CONTOUR.public boolean isAreaFill()
GridAttribute style is eigther
AREA_FILL or AREA_FILL_CONTOUR.public ColorMap getColorMap()
ColorMap.ColorMappublic void setColorMap(ColorMap cmap)
ColorMap.
colorMap.cmap - the ColorMappublic java.lang.String toString()
String representation of the
GridAttribute.toString in interface AttributetoString in class java.lang.ObjectString representationpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
GridAttribute properties.addPropertyChangeListener in interface Attributepublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
AttributeremovePropertyChangeListener in interface Attributepublic void propertyChange(java.beans.PropertyChangeEvent evt)
java.beans.PropertyChangeListenerpropertyChange in interface java.beans.PropertyChangeListenerjava.beans.PropertyChangeListenerevt - A PropertyChangeEvent object describing the event source
and the property that has changed.
|
SGT Home | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||