public class DisplaySchemesProcessor
extends java.lang.Object
DisplaySchemesProcessor loads and saves the display schemes of
Jspecview. The Schemes are loaded from an XML file and saved in a TreeMap.
Also saves the schemes out to XML file after modification| Constructor and Description |
|---|
DisplaySchemesProcessor()
Initialises the
DisplaySchemesProcessor |
| Modifier and Type | Method and Description |
|---|---|
Parameters |
getDefaultScheme() |
java.util.TreeMap<java.lang.String,Parameters> |
getDisplaySchemes()
Returns the list of
DisplaySchemes that were loaded |
boolean |
load(java.io.BufferedReader br)
Loads the display schemes into memory and stores them in a
Vector |
boolean |
load(java.io.InputStream stream) |
boolean |
load(java.lang.String dispSchemeFileName)
Loads the display schemes into memory and stores them in a
Vector |
Parameters |
loadDefault()
Load a default DisplayScheme if xml file not found
|
void |
serializeDisplaySchemes(java.io.Writer writer)
Serializes the display schemes to the given writer
|
void |
store()
Saves the display schemes to file in XML format
|
public DisplaySchemesProcessor()
DisplaySchemesProcessorpublic Parameters loadDefault()
public Parameters getDefaultScheme()
public void store()
throws java.io.IOException
java.io.IOExceptionpublic java.util.TreeMap<java.lang.String,Parameters> getDisplaySchemes()
DisplaySchemes that were loadedDisplaySchemes that were loadedpublic boolean load(java.io.InputStream stream)
public boolean load(java.lang.String dispSchemeFileName)
VectordispSchemeFileName - the name of the file to loadpublic boolean load(java.io.BufferedReader br)
Vectorbr - public void serializeDisplaySchemes(java.io.Writer writer)
throws java.io.IOException
writer - the writer for the outputjava.io.IOException