Package mgui.io.domestic.maps
Class ContinuousColourMapLoader
java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.maps.ColourMapLoader
mgui.io.domestic.maps.ContinuousColourMapLoader
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class ContinuousColourMapLoader extends ColourMapLoader
Loads a comma-delimited continuous colour map. Each line has four values (all from [0,1]):
anchor position, red, green, blue.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.io.FileLoader
dataFile, dataURL, options
-
Constructor Summary
Constructors Constructor Description ContinuousColourMapLoader()
ContinuousColourMapLoader(java.io.File file)
-
Method Summary
Modifier and Type Method Description javax.swing.Icon
getObjectIcon()
Returns theIcon
associated with this object.boolean
load(InterfaceIOOptions options, ProgressUpdater progress_bar)
Loads data from the set of files or URLs specified byoptions
.ContinuousColourMap
loadMap()
ContinuousColourMap
loadMap(ProgressUpdater progress_bar)
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
-
Constructor Details
-
ContinuousColourMapLoader
public ContinuousColourMapLoader() -
ContinuousColourMapLoader
public ContinuousColourMapLoader(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 classColourMapLoader
progress_bar
- An optional progress updater. Can benull
.- Returns:
-
loadMap
- Overrides:
loadMap
in classColourMapLoader
- Throws:
java.io.IOException
-
loadMap
- Throws:
java.io.IOException
-
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObject
Returns theIcon
associated with this object.- Specified by:
getObjectIcon
in interfaceIconObject
- Overrides:
getObjectIcon
in classFileLoader
- Returns:
-