Documentation of 'visad.ShapeControl' Java class
ShapeControl
visad

Class ShapeControl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable


    public class ShapeControl
    extends Control
    ShapeControl is the VisAD class for controlling Shape display scalars.

    See Also:
    Serialized Form
    • Constructor Detail

    • Method Detail

      • setShapeSet

        public void setShapeSet(SimpleSet set)
                         throws VisADException,
                                java.rmi.RemoteException
        Sets the SimpleSet that defines the mapping from RealType values to indices into an array of shapes. This method must be called before the setShapes() method to avoid a subsequent NullPointerException in the running of the display.
        Parameters:
        set - 1-D set of values that defines the mapping from RealType values to indices into the array of shapes. The domain dimension shall be 1.
        Throws:
        VisADException
        java.rmi.RemoteException
      • setShape

        public void setShape(int index,
                             VisADGeometryArray shape)
                      throws VisADException,
                             java.rmi.RemoteException
        set the shape associated with index; the VisADGeometryArray class hierarchy defines various kinds of shapes
        Throws:
        VisADException
        java.rmi.RemoteException
      • setShapes

        public void setShapes(VisADGeometryArray[] shs)
                       throws VisADException,
                              java.rmi.RemoteException
        Sets the array of shapes. The array is accessed by index determined from the value-to-index mapping established by the setShapeSet() method. The VisADGeometryArray class hierarchy defines various kinds of shapes. This method must be called after the setShapeSet() method to avoid a subsequent NullPointerException in the running of the display.
        Parameters:
        shs - The array of shapes.
        Throws:
        VisADException
        java.rmi.RemoteException
      • getScale

        public float getScale()
      • getSaveString

        public java.lang.String getSaveString()
        get a string that can be used to reconstruct this control later
        Specified by:
        getSaveString in class Control
        Returns:
        String representation of this Control
      • setSaveString

        public void setSaveString(java.lang.String save)
                           throws VisADException,
                                  java.rmi.RemoteException
        reconstruct this control using the specified save string
        Specified by:
        setSaveString in class Control
        Parameters:
        save - - String representation for reconstruction
        Throws:
        VisADException - if a VisAD error occurs
        java.rmi.RemoteException - if an RMI error occurs
      • syncControl

        public void syncControl(Control rmt)
                         throws VisADException
        copy the state of a remote control to this control
        Specified by:
        syncControl in class Control
        Parameters:
        rmt - remote Control whose state is copied
        Throws:
        VisADException - if a VisAD error occurs
      • nullControl

        public void nullControl()
        Description copied from class: Control
        end this control (called by ScalarMap.nullDisplay())
        Overrides:
        nullControl in class Control
      • equals

        public boolean equals(java.lang.Object o)
        Description copied from class: Control
        Indicates whether or not this instance equals an Object
        Overrides:
        equals in class Control
        Parameters:
        o - an Object
        Returns:
        true if and only if this instance is equal to o
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class Control
        Returns:
        a copy of this Control

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.