Class ImageExporter

    • Constructor Detail

      • ImageExporter

        public ImageExporter​(java.io.File label,
                             java.lang.String dataFile)
                      throws java.lang.Exception
        Constructor.
        Parameters:
        label - label file.
        dataFile - data file referenced by the given label
        Throws:
        java.lang.Exception - If there was an error parsing the label
      • ImageExporter

        public ImageExporter​(java.net.URL label,
                             java.lang.String dataFile)
                      throws java.lang.Exception
        Constructor.
        Parameters:
        label - label file url.
        dataFile - data file referenced by the given label
        Throws:
        java.lang.Exception - If there was an error parsing the label
      • ImageExporter

        public ImageExporter​(java.io.File label,
                             int fileAreaIndex)
                      throws java.lang.Exception
        Constructor.
        Parameters:
        label - label file.
        fileAreaIndex - The index of the File_Area_Observational element that contains the image to export.
        Throws:
        java.lang.Exception - If an error occurred parsing the label.
      • ImageExporter

        public ImageExporter​(java.net.URL label,
                             int fileAreaIndex)
                      throws java.lang.Exception
        Constructor.
        Parameters:
        label - label file.
        fileAreaIndex - The index of the File_Area_Observational element that contains the image to export.
        Throws:
        java.lang.Exception - If an error occurred parsing the label.
      • ImageExporter

        public ImageExporter​(FileAreaObservational fileArea,
                             ObjectProvider provider)
                      throws java.io.IOException
        Constructor.
        Parameters:
        fileArea - The File_Area_Observational element containing the image to export.
        provider - The ObjectProvider associated with the image to export.
        Throws:
        java.io.IOException
    • Method Detail

      • parseLabel

        protected void parseLabel​(java.io.File label,
                                  int fileAreaIndex)
                           throws java.lang.Exception
        Overrides:
        parseLabel in class ObjectExporter
        Throws:
        java.lang.Exception
      • parseLabel

        protected void parseLabel​(java.net.URL label,
                                  int fileAreaIndex)
                           throws java.lang.Exception
        Parse the label.
        Overrides:
        parseLabel in class ObjectExporter
        Parameters:
        label - The label file.
        fileAreaIndex - The index of the File_Area_Observational element that contains the image to export.
        Throws:
        java.lang.Exception - If an error occurred while parsing the label.
      • parseLabel

        protected void parseLabel​(java.io.File label,
                                  java.lang.String dataFile)
                           throws java.lang.Exception
        Parse the label.
        Parameters:
        label - The label file.
        dataFile - data file
        Throws:
        java.lang.Exception - If an error occurred while parsing the label.
      • parseLabel

        protected void parseLabel​(java.net.URL label,
                                  java.lang.String dataFile)
                           throws java.lang.Exception
        Parse the label.
        Parameters:
        label - The label file.
        dataFile - The name of the data file of the File_Area_Observational element that contains the image to export.
        Throws:
        java.lang.Exception - If an error occurred while parsing the label.
      • setDisplaySettings

        public void setDisplaySettings​(java.util.List<DisplaySettings> displaySettings)
        Set the display settings.
        Parameters:
        displaySettings - A list of DisplaySettings.
      • getDisplaySettings

        public DisplaySettings getDisplaySettings​(java.lang.String id)
        Get the display settings associated with the given identifier.
        Parameters:
        id - The identifier to search.
        Returns:
        The display settings associated with the given identifier. Returns null if none was found.