|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.noaa.pmel.sgt.ColorMap
public abstract class 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.
| Field Summary | |
|---|---|
protected boolean |
batch_
|
protected boolean |
local_
|
protected boolean |
modified_
|
| 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. |
protected void |
firePropertyChange(java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue)
|
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean batch_
protected boolean local_
protected boolean modified_
| 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.PropertyChangeListener
protected void firePropertyChange(java.lang.String name,
java.lang.Object oldValue,
java.lang.Object newValue)
public void setBatch(boolean batch)
public void setBatch(boolean batch,
boolean local)
AttributeChangeEvent will be set local.
public boolean isBatch()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||