Documentation of 'visad.AnimationSetControl' Java class
AnimationSetControl
visad

Class AnimationSetControl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    AnimationSetControlJ2D


    public class AnimationSetControl
    extends Control
    AnimationSetControl is the VisAD class for sampling Animation steps.

    See Also:
    Serialized Form
    • Constructor Detail

      • AnimationSetControl

        public AnimationSetControl(DisplayImpl d,
                                   AnimationControl p)
        construct an AnimationSetControl for the given DisplayImpl and AnimationControl
        Parameters:
        d - - DisplayImpl this AnimationSetControl is associated with
        p - - parent AnimationControl of this AnimationSetControl
    • Method Detail

      • getSet

        public Set getSet()
        Returns:
        Set of RealType values for animation steps, in RealType mapped to Animation
      • clipCurrent

        public int clipCurrent(int current)
                        throws VisADException
        Parameters:
        current - value to clip
        Returns:
        value of current clipped to limits defined by this AnimationSetControl
        Throws:
        VisADException - if a VisAD error occurs
      • getValue

        public double getValue(int current)
                        throws VisADException
        Parameters:
        current - index of current step
        Returns:
        current step converted to value of RealType mapped to Animation
        Throws:
        VisADException - if a VisAD error occurs
      • getIndex

        public int getIndex(double value)
                     throws VisADException
        Parameters:
        value - - RealType value
        Returns:
        animation step ordinal corresponding to value of RealType mapped to Animation
        Throws:
        VisADException - if a VisAD error occurs
      • setSet

        public void setSet(Set s)
                    throws VisADException,
                           java.rmi.RemoteException
        set Set of Animation value
        Parameters:
        s - - Set of RealType values for Animation steps
        Throws:
        VisADException - if a VisAD error occurs
        java.rmi.RemoteException - if an RMI error occurs
      • setSet

        public void setSet(Set s,
                           boolean noChange)
                    throws VisADException,
                           java.rmi.RemoteException
        set Set of Animation value
        Parameters:
        s - - Set of RealType values for Animation steps
        noChange - = true to not trigger changeControl (used by ScalarMap.setRange())
        Throws:
        VisADException - if a VisAD error occurs
        java.rmi.RemoteException - if an RMI error occurs
      • getSaveString

        public java.lang.String getSaveString()
        Specified by:
        getSaveString in class Control
        Returns:
        String representation of this AnimationSetControl
      • setSaveString

        public void setSaveString(java.lang.String save)
                           throws VisADException,
                                  java.rmi.RemoteException
        reconstruct this AnimationSetControl 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
      • 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 - - Object tested for equality with this
        Returns:
        true if o is identical with this

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.