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 modificationConstructor 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
DisplayScheme s 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()
DisplaySchemesProcessor
public Parameters loadDefault()
public Parameters getDefaultScheme()
public void store() throws java.io.IOException
java.io.IOException
public java.util.TreeMap<java.lang.String,Parameters> getDisplaySchemes()
DisplayScheme
s that were loadedDisplayScheme
s that were loadedpublic boolean load(java.io.InputStream stream)
public boolean load(java.lang.String dispSchemeFileName)
Vector
dispSchemeFileName
- the name of the file to loadpublic boolean load(java.io.BufferedReader br)
Vector
br
- public void serializeDisplaySchemes(java.io.Writer writer) throws java.io.IOException
writer
- the writer for the outputjava.io.IOException