Documentation of 'visad.DataDisplayLink' Java class
DataDisplayLink
visad

Class DataDisplayLink



  • public class DataDisplayLink
    extends ReferenceActionLink
    DataDisplayLink objects define connections between DataReference objects and Display objects. It extends ReferenceActionLink which is the more general link between ThingReference (extended by DataReference) and Action (extended by Display).

    • Field Detail

      • start_time

        public long start_time
        value of System.currentTimeMillis() when doTransform() started
      • time_flag

        public boolean time_flag
        flag indicating current doTransform() has taken more than 500 ms
    • Constructor Detail

      • DataDisplayLink

        public DataDisplayLink(DataReference ref,
                               DisplayImpl local_d,
                               Display d,
                               ConstantMap[] constant_maps,
                               DataRenderer rend,
                               long jd)
                        throws VisADException,
                               java.rmi.RemoteException
        construct a DataDisplayLink linking a DataReference to a Display
        Parameters:
        ref - the DataReference to link
        local_d - if d is DisplayImpl, then d; if d is RemoteDisplay, then its adapted DisplayImpl
        d - the Display
        constant_maps - array of ConstantMaps specific to this Data
        rend - DataRenderer that creates Data depictions
        jd - - unique ID among ReferenceActionLinks attached to Action
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
    • Method Detail

      • setConstantMaps

        public void setConstantMaps(ConstantMap[] constant_maps)
                             throws VisADException,
                                    java.rmi.RemoteException
        Change ConstantMaps[] array specific to this DataDisplayLink Note this call should occur between display.disableAction() and display.enableAction() there are two ways for an application to get a DataDisplayLink: given a DisplayImpl and a DataReference: DataDisplayLink link = (DataDisplayLink) display.findReference(ref); given a DataRenderer (assuming it has only one DataReference): DataDisplayLink link = renderer.getLinks()[0];
        Parameters:
        constant_maps - array of ConstantMaps specific to this Data
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • getDisplay

        public DisplayImpl getDisplay()
        Returns:
        the local DisplayImpl for the linked Display
      • getRenderer

        public DataRenderer getRenderer()
        Returns:
        the DataRenderer that creates Data depictions
      • getSelectedMapVector

        public java.util.Vector getSelectedMapVector()
        Returns:
        a clone of Vector of ScalarMaps applying to this Data
      • addSelectedMapVector

        public void addSelectedMapVector(ScalarMap map)
        add a ScalarMap applying to this Data
        Parameters:
        map - ScalarMap to add
      • clearMaps

        public void clearMaps()
                       throws java.rmi.RemoteException,
                              VisADException
        clear Vectors of ScalarMaps applying to this Data and of ConstantMaps; also clear other instance variables
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • prepareData

        public boolean prepareData()
                            throws VisADException,
                                   java.rmi.RemoteException
        Prepare to render data (include feasibility check);
        Returns:
        false if infeasible
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • getShadow

        public ShadowType getShadow()
        Returns:
        ShadowType generated from MathType of linked Data
      • getData

        public Data getData()
                     throws VisADException,
                            java.rmi.RemoteException
        Returns:
        linked Data (note Data is cached until clearData() is called)
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • clearData

        public void clearData()
        clear cached copy of linked Data
      • getType

        public MathType getType()
                         throws VisADException,
                                java.rmi.RemoteException
        Returns:
        MathType of linked Data
        Throws:
        VisADException - a VisAD error occurred
        java.rmi.RemoteException - an RMI error occurred
      • getDefaultValues

        public float[] getDefaultValues()
        Returns:
        default values for DisplayRealTypes
      • getDataReference

        public DataReference getDataReference()
        Returns:
        linked DataReference
      • getConstantMaps

        public java.util.Vector getConstantMaps()
        Returns:
        Vector of ConstantMaps specific to this Data
      • getScalarMaps

        public java.util.Vector getScalarMaps()
        Returns:
        Vector of ScalarMaps that apply to this Data
      • equals

        public boolean equals(java.lang.Object o)
        Indicates whether or not this instance is equal to an object
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - the object in question.
        Returns:
        true if and only if this instance equals o.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.