|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.visad.display.ContourLevels
ucar.visad.display.RegularContourLevels
public final class RegularContourLevels
Provides support for regular contours, which are characterized by a constant contour interval.
Instances of this class are immutable.
| Field Summary | |
|---|---|
protected float |
interval
The contour interval. |
protected float |
maximum
The maximum contour level. |
protected float |
minimum
The minimum contour level. |
| Constructor Summary | |
|---|---|
RegularContourLevels(float interval)
Constructs an instance. |
|
RegularContourLevels(float interval,
float base)
Constructs an instance. |
|
RegularContourLevels(float interval,
float base,
float minimum,
float maximum)
Constructs an instance. |
|
RegularContourLevels(float interval,
float base,
float minimum,
float maximum,
boolean dash)
Constructs an instance. |
|
| Method Summary | |
|---|---|
float[] |
getLevels()
Gets the contour levels as an array. |
float[] |
getLevels(float minimum,
float maximum)
Gets the contour levels given a data range. |
void |
setControl(ContourControl control)
Sets a VisAD ContourControl. |
void |
setControl(ContourControl control,
float minimum,
float maximum)
Sets a VisAD ContourControl. |
| Methods inherited from class ucar.visad.display.ContourLevels |
|---|
getBase |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final float interval
protected final float minimum
protected final float maximum
| Constructor Detail |
|---|
public RegularContourLevels(float interval)
interval - The contour interval.
public RegularContourLevels(float interval,
float base)
interval - The contour interval.base - The base contour.
public RegularContourLevels(float interval,
float base,
float minimum,
float maximum)
interval - The contour interval.base - The base contour. Contours below this
level will be dashed.minimum - The minimum contour. Must be a finite value.maximum - The maximum contour. Must be a finite value.
public RegularContourLevels(float interval,
float base,
float minimum,
float maximum,
boolean dash)
interval - The contour interval.base - The base contour. Contours below this
level will be dashed.minimum - The minimum contour. Must be a finite value.maximum - The maximum contour. Must be a finite value.dash - Whether or not to draw dashed lines for
contours less than the base.| Method Detail |
|---|
public float[] getLevels()
throws VisADException
VisADException - Invalid range extrema or VisAD failure.
public float[] getLevels(float minimum,
float maximum)
throws VisADException
getLevels in class ContourLevelsminimum - The minimum data value. Must be a finite value.maximum - The maximum data value. Must be a finite value.
VisADException - Invalid range extrema or VisAD failure.
public void setControl(ContourControl control)
throws VisADException,
RemoteException
setControl in class ContourLevelscontrol - The VisAD ContourControl to be set by this
object.
VisADException - Invalid range extrema or VisAD failure.
RemoteException - Java RMI failure.
public void setControl(ContourControl control,
float minimum,
float maximum)
throws VisADException,
RemoteException
setControl in class ContourLevelscontrol - The VisAD ContourControl to be set by this
object.minimum - The minimum value. Shall be a finite value.maximum - The maximum value. Shall be a finite value.
VisADException - Invalid range extrema or VisAD failure.
RemoteException - Java RMI failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||