Class ContourScalarMap

All Implemented Interfaces:
Comparable, Propertied

public class ContourScalarMap extends IsoContourScalarMap
Provides support for adapting ScalarMap-s for 2-D contour lines.

Instances of this class have the following, bound, JavaBean properties:

Name Type Access Default Description
contourLevels ContourLevels set/get empty-set of levels The contour levels of this instance
labeling boolean set/get false Whether or not contour-line labeling is enabled
Version:
$Revision: 1.8 $
Author:
Steven R. Emmerson
  • Field Details

  • Constructor Details

  • Method Details

    • setLabeling

      public final void setLabeling(boolean on) throws VisADException, RemoteException
      Sets the labeling of contour lines. This method fires a PropertyChangeEvent for LABELING with this instance as the source and the old and new values appropriately set. The event is fired synchronously -- so watch out for deadlock.
      Parameters:
      on - Whether or not the contour lines should be labeled.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • isLabeling

      public final boolean isLabeling()
      Indicates whether or not contour-line labeling is enabled.
      Returns:
      true if and only if the contour lines are labeled.
    • setRange

      public void setRange(float min, float max) throws RemoteException, VisADException
      Sets the range of data to be contoured.
      Parameters:
      min - The minimum, possible data value to be considered
      max - The maximum, possible data value to be considered
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
    • setContourLevels

      public final void setContourLevels(ContourLevels contourLevels) throws RemoteException, VisADException
      Sets the contour values. This method fires a PropertyChangeEvent for CONTOUR_LEVELS with this instance as the source and the old and new values appropriately set. The firing is done synchronously -- so watch out for deadlock.
      Parameters:
      contourLevels - The contour values.
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.
      See Also:
    • getContourLevels

      public final ContourLevels getContourLevels()
      Returns the contour levels.
      Returns:
      The Contour levels. The initial value is an empty set of levels.
    • setControl

      protected void setControl() throws VisADException, RemoteException
      Sets the control of the underlying ScalarMap. This is a template method.
      Specified by:
      setControl in class ScalarMapAdapter
      Throws:
      VisADException - VisAD failure.
      RemoteException - Java RMI failure.