public abstract class ImageExporter extends ObjectExporter
Constructor and Description |
---|
ImageExporter(FileAreaObservational fileArea,
ObjectProvider provider)
Constructor.
|
ImageExporter(File label,
int fileAreaIndex)
Constructor.
|
ImageExporter(File label,
String dataFile)
Constructor.
|
ImageExporter(URL label,
int fileAreaIndex)
Constructor.
|
ImageExporter(URL label,
String dataFile)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DisplaySettings |
getDisplaySettings(String id)
Get the display settings associated with the given identifier.
|
protected void |
parseLabel(File label,
int fileAreaIndex) |
protected void |
parseLabel(File label,
String dataFile)
Parse the label.
|
protected void |
parseLabel(URL label,
int fileAreaIndex)
Parse the label.
|
protected void |
parseLabel(URL label,
String dataFile)
Parse the label.
|
void |
setDisplaySettings(List<DisplaySettings> displaySettings)
Set the display settings.
|
getObjectProvider, getObservationalFileArea, setObjectProvider, setObservationalFileArea
public ImageExporter(File label, String dataFile) throws Exception
label
- label file.dataFile
- data file referenced by the given labelException
- If there was an error parsing the labelpublic ImageExporter(URL label, String dataFile) throws Exception
label
- label file url.dataFile
- data file referenced by the given labelException
- If there was an error parsing the labelpublic ImageExporter(File label, int fileAreaIndex) throws Exception
label
- label file.fileAreaIndex
- The index of the File_Area_Observational element
that contains the image to export.Exception
- If an error occurred parsing the label.public ImageExporter(URL label, int fileAreaIndex) throws Exception
label
- label file.fileAreaIndex
- The index of the File_Area_Observational element
that contains the image to export.Exception
- If an error occurred parsing the label.public ImageExporter(FileAreaObservational fileArea, ObjectProvider provider) throws IOException
fileArea
- The File_Area_Observational element containing the
image to export.provider
- The ObjectProvider associated with the image to export.IOException
protected void parseLabel(File label, int fileAreaIndex) throws Exception
parseLabel
in class ObjectExporter
Exception
protected void parseLabel(URL label, int fileAreaIndex) throws Exception
parseLabel
in class ObjectExporter
label
- The label file.fileAreaIndex
- The index of the File_Area_Observational element
that contains the image to export.Exception
- If an error occurred while parsing the label.protected void parseLabel(File label, String dataFile) throws Exception
label
- The label file.fileAreaIndex
- The index of the File_Area_Observational element
that contains the image to export.Exception
- If an error occurred while parsing the label.protected void parseLabel(URL label, String dataFile) throws Exception
label
- The label file.dataFile
- The name of the data file of the File_Area_Observational element
that contains the image to export.Exception
- If an error occurred while parsing the label.public void setDisplaySettings(List<DisplaySettings> displaySettings)
displaySettings
- A list of DisplaySettings.public DisplaySettings getDisplaySettings(String id)
id
- The identifier to search.Copyright © 2010–2018 Planetary Data System. All rights reserved.