|
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.GridAttribute
Sets the rendering style for grid data. ColorMap,
ContourLevels are GridAttribute properties.
GridCartesianRenderer,
ContourLevels,
Serialized Form| 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. |
java.lang.String |
getId()
Get attribute id. |
int |
getStyle()
Get grid style. |
boolean |
isAreaFill()
Tests if GridAttribute style is eigther
AREA_FILL or AREA_FILL_CONTOUR. |
boolean |
isBatch()
Is the attribute in batch mode? |
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)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove change listener. |
void |
setBatch(boolean batch)
Batch the changes to the attribute. |
void |
setBatch(boolean batch,
boolean local)
Batch the changes to the attribute and set local flag. |
void |
setColorMap(ColorMap cmap)
Set the ColorMap. |
void |
setContourLevels(ContourLevels clev)
Set the ContourLevels. |
void |
setId(java.lang.String id)
Set attribute id. |
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)
Attribute
removePropertyChangeListener in interface Attributepublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic void setId(java.lang.String id)
Attribute
setId in interface Attributepublic java.lang.String getId()
Attribute
getId in interface Attributepublic void setBatch(boolean batch)
Attribute
setBatch in interface Attribute
public void setBatch(boolean batch,
boolean local)
AttributeAttributeChangeEvent will be set local.
setBatch in interface Attributepublic boolean isBatch()
Attribute
isBatch in interface Attribute
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||