|
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.ColorMap
ColorMap provides a mapping from an index or
value to a Color. Several methods of mapping an
index or value to a Color are summarized below.
IndexedColorMapColor is determined from an array,
the index computed from a Transform.
TransformColorMapColor components
are computed from Transforms.
CLIndexedColorMapColor is determined from and array,
the index computed from a ContourLevels object.
CLTransformColorMapColor components
are computed from Transforms, using
the index computed from a ContourLevels
object divided by the maximum index value.
| Constructor Summary | |
ColorMap()
|
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add listener to changes in ColorMap properties. |
abstract ColorMap |
copy()
|
abstract boolean |
equals(ColorMap cm)
Test for equality of color maps. |
abstract java.awt.Color |
getColor(double val)
Get a Color. |
abstract Range2D |
getRange()
Get the current user range for the Transforms or
ContourLevel. |
boolean |
isBatch()
Is the attribute in batch mode? |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove listener. |
void |
setBatch(boolean batch)
Batch the changes to the ColorMap. |
void |
setBatch(boolean batch,
boolean local)
Batch the changes to the ColorMap and set local flag. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ColorMap()
| Method Detail |
public abstract ColorMap copy()
public abstract java.awt.Color getColor(double val)
Color.
val - Value
public abstract Range2D getRange()
Transforms or
ContourLevel.
public abstract boolean equals(ColorMap cm)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
ColorMap properties.
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpublic void setBatch(boolean batch)
public void setBatch(boolean batch,
boolean local)
AttributeChangeEvent will be set local.
public boolean isBatch()
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||