Documentation of 'visad.ConstantMap' Java class
ConstantMap
visad

Class ConstantMap

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


    public class ConstantMap
    extends ScalarMap
    mapping from constant to DisplayRealType
    See Also:
    Serialized Form
    • Constructor Detail

      • ConstantMap

        public ConstantMap(double constant,
                           DisplayRealType display_scalar)
                    throws VisADException
        construct a ConstantMap with a double constant
        Parameters:
        constant - - double equated to DisplayRealType
        display_scalar - - DisplayRealType set to constant (may not be Animation, SelectValue, SelectRange or IsoContour)
        Throws:
        VisADException - - a VisAD error occurred
      • ConstantMap

        public ConstantMap(Real constant,
                           DisplayRealType display_scalar)
                    throws VisADException
        construct a ConstantMap with a Real constant;
        Parameters:
        constant - - Real whose value is equated to DisplayRealType
        display_scalar - - DisplayRealType set to constant (may not be Animation, SelectValue, SelectRange or IsoContour)
        Throws:
        VisADException - - a VisAD error occurred
    • Method Detail

      • setAllowMultipleUseKludge

        public static void setAllowMultipleUseKludge(boolean k)
        allow ConstantMaps to be used in multiple calls to DisplayImpl.addReference() or addReferences() such multiple use was not checked in the early releases of VisAD, and this method allows applications to easily avoid more extensive changes
        Parameters:
        k - - true to allow multiple use
      • getAllowMultipleUseKludge

        public static boolean getAllowMultipleUseKludge()
        Returns:
        boolean indicating whether ConstantMaps may be used in multiple calls to DisplayImpl.addReference() or addReferences()
      • getConstant

        public double getConstant()
        Returns:
        constant value mapped to DisplayRealType
      • equals

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

        public int compareTo(java.lang.Object obj)
        Compares this instance to another object.
        Specified by:
        compareTo in interface java.lang.Comparable
        Overrides:
        compareTo in class ScalarMap
        Parameters:
        obj - The other object.
        Returns:
        A value that is negative, zero, or positive depending on whether this instance is considered less than, equal to, or greater than the other object, respectively.
      • clone

        public java.lang.Object clone()
        Description copied from class: ScalarMap
        Create and return a copy of this ScalarMap.
        Overrides:
        clone in class ScalarMap
        Returns:
        copy of the ScalarMap or null if a copy couldn't be created.
      • toString

        public java.lang.String toString(java.lang.String pre)
        Description copied from class: ScalarMap
        Returns a string representation of the ScalarMap with the specified prefix prepended.
        Overrides:
        toString in class ScalarMap
        Parameters:
        pre - prefix to prepend to the representation
        Returns:
        a string that "textually represents" this ScalarMap with pre prepended.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.