Package mgui.io.foreign.caret
Class CaretAreaColourLoader
java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.maps.ColourMapLoader
mgui.io.domestic.maps.DiscreteColourMapLoader
mgui.io.foreign.caret.CaretAreaColourLoader
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class CaretAreaColourLoader extends DiscreteColourMapLoader
A hack to read Caret area colour files. This should really be done using an XML parser,
but I haven't the patience :P
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.io.domestic.maps.DiscreteColourMapLoader
map
Fields inherited from class mgui.io.FileLoader
dataFile, dataURL, options
-
Constructor Summary
Constructors Constructor Description CaretAreaColourLoader()
CaretAreaColourLoader(java.io.File file)
-
Method Summary
Modifier and Type Method Description boolean
load(InterfaceIOOptions options, ProgressUpdater progress_bar)
Loads data from the set of files or URLs specified byoptions
.DiscreteColourMap
loadMap(NameMap nameMap)
Methods inherited from class mgui.io.domestic.maps.DiscreteColourMapLoader
getObjectIcon, loadAsContinuousMap, loadMap, loadMap
Methods inherited from class mgui.io.domestic.maps.ColourMapLoader
getSupportedObjects, loadMap, loadObject
Methods inherited from class mgui.io.FileLoader
getComplementIOType, getFailureMessage, getFile, getIOType, getOptions, getProgressMessage, getSuccessMessage, getTitle, getWriterComplement, load, load, loadObject, loadObject, loadObject, setFile, setOptions, setURL, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
nameMap
-
-
Constructor Details
-
CaretAreaColourLoader
public CaretAreaColourLoader() -
CaretAreaColourLoader
public CaretAreaColourLoader(java.io.File file)
-
-
Method Details
-
load
Description copied from class:FileLoader
Loads data from the set of files or URLs specified byoptions
. Loading is controlled by the specifications ofoptions
. If loaded object is of typePersistentObject
, this method should also set the file loader and reference URL for the object.This method should also set the URL reference and writer and loader attributes to match this one and its complement.
- Overrides:
load
in classDiscreteColourMapLoader
progress_bar
- An optional progress updater. Can benull
.- Returns:
-
loadMap
- Throws:
java.io.IOException
-