Package jspecview.application
Class DisplaySchemesProcessor
java.lang.Object
jspecview.application.DisplaySchemesProcessor
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- Author:
- Debbie-Ann Facey, Khari A. Bryan, Prof Robert J. Lancashire
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list ofDisplayScheme
s that were loadedboolean
load
(BufferedReader br) Loads the display schemes into memory and stores them in aVector
boolean
load
(InputStream stream) boolean
Loads the display schemes into memory and stores them in aVector
Load a default DisplayScheme if xml file not foundvoid
serializeDisplaySchemes
(Writer writer) Serializes the display schemes to the given writervoid
store()
Saves the display schemes to file in XML format
-
Constructor Details
-
DisplaySchemesProcessor
public DisplaySchemesProcessor()Initialises theDisplaySchemesProcessor
-
-
Method Details
-
loadDefault
Load a default DisplayScheme if xml file not found- Returns:
- boolean
-
getDefaultScheme
-
store
Saves the display schemes to file in XML format- Throws:
Exception
-
getDisplaySchemes
Returns the list ofDisplayScheme
s that were loaded- Returns:
- the list of
DisplayScheme
s that were loaded
-
load
-
load
Loads the display schemes into memory and stores them in aVector
- Parameters:
dispSchemeFileName
- the name of the file to load- Returns:
- true if loaded successfully
-
load
Loads the display schemes into memory and stores them in aVector
- Parameters:
br
-- Returns:
- true if loaded successfully
- Throws:
Exception
-
serializeDisplaySchemes
Serializes the display schemes to the given writer- Parameters:
writer
- the writer for the output- Throws:
Exception
-