|
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.ContourLevels
Contains levels and line styles for contour graphics.
Constructor Summary | |
ContourLevels()
|
Method Summary | |
void |
addLevel(double val)
Add a contour level with default ContourLineAttribute . |
void |
addLevel(double val,
ContourLineAttribute l)
Add a contour level with a specified ContourLineAttribute . |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add listener to changes in ColorMap properties. |
ContourLevels |
copy()
Create a deep copy. |
ContourLineAttribute |
getContourLineAttribute(double val)
Get the ContourLineAttribute for a value. |
ContourLineAttribute |
getContourLineAttribute(int indx)
Get the ContourLineAttribute for an index. |
static ContourLevels |
getDefault(double[] array)
Construct a default ContourLevels object from a double[]. |
static ContourLevels |
getDefault(Range2D range)
Construct a default ContourLevels object from a
Range2D . |
DefaultContourLineAttribute |
getDefaultContourLineAttribute()
Get the DefaultContourLineAtrribute |
DefaultContourLineAttribute |
getDefaultContourLineAttribute(double val)
Get the DefaultContourLineAttribute for value. |
DefaultContourLineAttribute |
getDefaultContourLineAttribute(int indx)
Get the DefaultContourLineAttribute for index. |
int |
getIndex(double val)
Get the index of a level by value |
int |
getIndex(java.lang.Double dval)
Get the index of a level by value |
double |
getLevel(int indx)
Get the value of level by index. |
int |
getMaximumIndex()
Get the maximum level index. |
Range2D |
getRange()
Get the range of levels |
java.util.Enumeration |
levelElements()
Get the contour level elements. |
void |
removeLevel(double val)
Remove a level by value. |
void |
removeLevel(int indx)
Remove a level by index. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
setContourLineAttribute(double val,
ContourLineAttribute l)
Set a the ContourLineAttribute for a value. |
void |
setContourLineAttribute(int indx,
ContourLineAttribute l)
Set a the ContourLineAttribute for an index. |
void |
setDefaultContourLineAttribute(DefaultContourLineAttribute attr)
Set the DefaultContourLineAttribute |
int |
size()
Get the number of levels. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContourLevels()
Method Detail |
public static ContourLevels getDefault(double[] array)
ContourLevels
object from a double[].public static ContourLevels getDefault(Range2D range)
ContourLevels
object from a
Range2D
.public ContourLevels copy()
public java.util.Enumeration levelElements()
public void setContourLineAttribute(double val, ContourLineAttribute l) throws ContourLevelNotFoundException
ContourLineAttribute
for a value.public void setContourLineAttribute(int indx, ContourLineAttribute l) throws ContourLevelNotFoundException
ContourLineAttribute
for an index.public ContourLineAttribute getContourLineAttribute(double val) throws ContourLevelNotFoundException
ContourLineAttribute
for a value.public ContourLineAttribute getContourLineAttribute(int indx) throws ContourLevelNotFoundException
ContourLineAttribute
for an index.public DefaultContourLineAttribute getDefaultContourLineAttribute()
DefaultContourLineAtrribute
public DefaultContourLineAttribute getDefaultContourLineAttribute(int indx) throws ContourLevelNotFoundException
DefaultContourLineAttribute
for index.public DefaultContourLineAttribute getDefaultContourLineAttribute(double val) throws ContourLevelNotFoundException
DefaultContourLineAttribute
for value.public void setDefaultContourLineAttribute(DefaultContourLineAttribute attr)
DefaultContourLineAttribute
public void addLevel(double val)
ContourLineAttribute
.public void addLevel(double val, ContourLineAttribute l)
ContourLineAttribute
.public double getLevel(int indx) throws ContourLevelNotFoundException
public void removeLevel(double val) throws ContourLevelNotFoundException
public void removeLevel(int indx) throws ContourLevelNotFoundException
public int getIndex(java.lang.Double dval)
public int getIndex(double val)
public int getMaximumIndex()
public Range2D getRange()
public int size()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
ColorMap
properties.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |