|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.sgt.GridAttribute
public class GridAttribute
Sets the rendering style for grid data. ColorMap
,
ContourLevels
are GridAttribute
properties.
GridCartesianRenderer
,
ContourLevels
,
Serialized FormField 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 . |
protected void |
firePropertyChange(java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue)
|
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 |
---|
clone, equals, finalize, 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)
propertyChange
in interface java.beans.PropertyChangeListener
public void setId(java.lang.String id)
Attribute
setId
in interface Attribute
public java.lang.String getId()
Attribute
getId
in interface Attribute
protected void firePropertyChange(java.lang.String name, java.lang.Object oldValue, java.lang.Object newValue)
public void setBatch(boolean batch)
Attribute
setBatch
in interface Attribute
public void setBatch(boolean batch, boolean local)
Attribute
AttributeChangeEvent
will be set local.
setBatch
in interface Attribute
public boolean isBatch()
Attribute
isBatch
in interface Attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |