public final class RegularContourLevels extends ContourLevels
Instances of this class are immutable.
| Modifier and Type | Field and Description |
|---|---|
protected float |
interval
The contour interval.
|
protected float |
maximum
The maximum contour level.
|
protected float |
minimum
The minimum contour level.
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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(visad.ContourControl control)
Sets a VisAD ContourControl.
|
void |
setControl(visad.ContourControl control,
float minimum,
float maximum)
Sets a VisAD ContourControl.
|
getBaseprotected final float interval
protected final float minimum
protected final float maximum
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.public float[] getLevels()
throws visad.VisADException
visad.VisADException - Invalid range extrema or VisAD failure.public float[] getLevels(float minimum,
float maximum)
throws visad.VisADException
getLevels in class ContourLevelsminimum - The minimum data value. Must be a finite value.maximum - The maximum data value. Must be a finite value.visad.VisADException - Invalid range extrema or VisAD failure.public void setControl(visad.ContourControl control)
throws visad.VisADException,
java.rmi.RemoteException
setControl in class ContourLevelscontrol - The VisAD ContourControl to be set by this
object.visad.VisADException - Invalid range extrema or VisAD failure.java.rmi.RemoteException - Java RMI failure.public void setControl(visad.ContourControl control,
float minimum,
float maximum)
throws visad.VisADException,
java.rmi.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.visad.VisADException - Invalid range extrema or VisAD failure.java.rmi.RemoteException - Java RMI failure.