Documentation of 'visad.Text' Java class
Text
visad

Class Text

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


    public class Text
    extends Scalar
    Text is the class of VisAD scalar data for text strings. The null pointer is used to indicate missing. Text objects are immutable.

    See Also:
    Serialized Form
    • Constructor Detail

      • Text

        public Text(java.lang.String value)
        construct a Text object with the generic TEXT type (TextType.Generic)
    • Method Detail

      • getValue

        public java.lang.String getValue()
      • isMissing

        public boolean isMissing()
        Returns:
        flag indicating whether this Data has a missing value
      • binary

        public Data binary(Data data,
                           int op,
                           int sampling_mode,
                           int error_mode)
                    throws VisADException
        Description copied from class: DataImpl
        Pointwise binary operation between this and data. Applies to Reals, Tuples (recursively to components), and to Field ranges (Field domains implicitly resampled if necessary). Does not apply to Field domains or Sets (regarded as domains of Fields wthout ranges). Data.ADD is only op defined for Text, interpreted as concatenate. MathTypes of this and data must match, or one may match the range of the other if it is a FunctionType.
        Specified by:
        binary in interface Data
        Overrides:
        binary in class DataImpl
        Parameters:
        data - other Data operand for binary operation
        op - may be Data.ADD, Data.SUBTRACT, etc; these include all binary operations defined for Java primitive data types
        sampling_mode - may be Data.NEAREST_NEIGHBOR or Data.WEIGHTED_AVERAGE
        error_mode - may be Data.INDEPENDENT, Data.DEPENDENT or Data.NO_ERRORS;
        Returns:
        result, which takes the MathType of this unless the default Units of that MathType conflict with Units of the result, in which case a generic MathType with appropriate Units is constructed
        Throws:
        VisADException - a VisAD error occurred
      • unary

        public Data unary(int op,
                          int sampling_mode,
                          int error_mode)
                   throws VisADException
        Description copied from class: DataImpl
        Pointwise unary operation applied to this. Applies to Reals, Tuples (recursively to components), and to Field ranges (Field domains implicitly resampled if necessary). Does not apply to Field domains, Sets (regarded as domains of Fields wthout ranges) or Text.
        Specified by:
        unary in interface Data
        Overrides:
        unary in class DataImpl
        Parameters:
        op - may be Data.ABS, Data.ACOS, etc; these include all unary operations defined for Java primitive data types
        sampling_mode - may be Data.NEAREST_NEIGHBOR or Data.WEIGHTED_AVERAGE
        error_mode - may be Data.INDEPENDENT, Data.DEPENDENT or Data.NO_ERRORS;
        Returns:
        result of operation, which takes the MathType of this unless the default Units of that MathType conflict with Units of the result, in which case a generic MathType with appropriate Units is constructed
        Throws:
        VisADException - a VisAD error occurred
      • computeRanges

        public DataShadow computeRanges(ShadowType type,
                                        DataShadow shadow)
                                 throws VisADException
        Description copied from interface: Data
        Recursive version of computeRanges(), called down through Data object tree.
        Parameters:
        type - ShadowType generated for MathType of this
        shadow - DataShadow instance whose contained double[][] array and animation sampling Set are modified according to RealType values in this, and used as return value
        Returns:
        DataShadow instance containing double[][] array of RealType ranges, and an animation sampling Set
        Throws:
        VisADException - a VisAD error occurred
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class DataImpl
        Returns:
        a String representation of this
      • longString

        public java.lang.String longString(java.lang.String pre)
        Specified by:
        longString in interface Data
        Overrides:
        longString in class DataImpl
        Parameters:
        pre - String added to start of each line
        Returns:
        a longer String than returned by toString(), indented by pre (a string of blanks)
      • compareTo

        public int compareTo(java.lang.Object object)
        Compares this Text to another.
        Parameters:
        object - The other Text to compare against. It shall be a Text.
        Returns:
        A negative integer, zero, or a positive integer depending on whether this Text is considered less than, equal to, or greater than the other Text, respectively.
      • equals

        public boolean equals(java.lang.Object obj)
        Indicates if this Text is semantically identical to an object.
        Specified by:
        equals in interface ScalarIface
        Specified by:
        equals in class Scalar
        Parameters:
        obj - The object.
        Returns:
        true if and only if this Text is semantically identical to the object.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.