|
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
- ColorMap
public GridAttribute(ContourLevels clev)
GridAttribute
constructor for CONTOUR
style.clev
- ContourLevels
Method Detail |
public void setContourLevels(ContourLevels clev)
ContourLevels
.
contourLevels
.clev
- ContourLevels
public ContourLevels getContourLevels()
ContourLevels
.ContourLevels
public GridAttribute copy()
GridAttribute
.GridAttribute
public 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
.ColorMap
public void setColorMap(ColorMap cmap)
ColorMap
.
colorMap
.cmap
- the ColorMap
public java.lang.String toString()
String
representation of the
GridAttribute
.toString
in interface Attribute
toString
in class java.lang.Object
String
representationpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
GridAttribute
properties.addPropertyChangeListener
in interface Attribute
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Attribute
removePropertyChangeListener
in interface Attribute
public void propertyChange(java.beans.PropertyChangeEvent evt)
java.beans.PropertyChangeListener
propertyChange
in interface java.beans.PropertyChangeListener
java.beans.PropertyChangeListener
evt
- 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 |