Class FileInfoXML

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    Direct Known Subclasses:
    FileInfoImageXML, FileInfoSurfaceRefXML, FileInfoSurfaceXML

    public abstract class FileInfoXML
    extends FileInfoBase
    Abstract base clase contains the information that contains the shared information for XML images and XML surfaces.

    Derived classes: FileInfoImageXML.java and FileInforSurfaceXML.java

    Version:
    0.1 Sept 19, 2002
    Author:
    Alexandra Bokinsky, Ph.D., Neva Cherniavsky, Matthew J. McAuliffe, Ph.D.
    See Also:
    FileIO, FileInfoXML, Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Use serialVersionUID for interoperability.
        See Also:
        Constant Field Values
      • imageDescription

        protected java.lang.String imageDescription
        Brief description of the image - optional XML tag.
    • Constructor Detail

      • FileInfoXML

        public FileInfoXML​(java.lang.String name,
                           java.lang.String directory,
                           int format)
        Main constructor for FileInfoXML.
        Parameters:
        name - String file name
        directory - String file directory
        format - int file format (data type)
    • Method Detail

      • displayAboutInfo

        public abstract void displayAboutInfo​(JDialogBase dlog,
                                              TransMatrix matrix)
        Displays the file information.
        Specified by:
        displayAboutInfo in class FileInfoBase
        Parameters:
        dlog - JDialogBase dialog box that is written to
        matrix - transformation matrix
      • updateFileInfos

        public abstract void updateFileInfos​(FileInfoXML fInfo)
        Used to propogate all fileInfoXML private variables to other fileinfos.
        Parameters:
        fInfo - FileInfoXML file info to be copied into
      • appendImageDescription

        public void appendImageDescription​(java.lang.String appendDescription)
        Appends a string to the image description.
        Parameters:
        appendDescription - a brief description of the image to be appended.
      • finalize

        public void finalize()
        Prepares the class for cleanup.
        Overrides:
        finalize in class FileInfoBase
      • getImageDataFileName

        public java.lang.String getImageDataFileName()
        Returns the name of the image data file (not the xml header).
        Returns:
        name of the image data file
      • getImageDescription

        public java.lang.String getImageDescription()
        Returns description of the image.
        Returns:
        a brief description of the image.
      • setImageDataFileName

        public void setImageDataFileName​(java.lang.String dataFileName)
        Sets the name of the image data file (not the xml header).
        Parameters:
        dataFileName - image data file name (not path)
      • setImageDescription

        public void setImageDescription​(java.lang.String newDescription)
        Sets the image description.
        Parameters:
        newDescription - a brief description of the image.