Package mgui.io.foreign.caret
Class CaretAreaColourWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.foreign.caret.CaretAreaColourWriter
- All Implemented Interfaces:
InterfaceIO,IconObject
public class CaretAreaColourWriter extends FileWriter
Writes a
DiscreteColourMap to a Caret area colour file, which associates colours (RGB) with names.
See http://brainvis.wustl.edu/CaretHelpAccount/caret5_help/file_formats/file_formats.html#areaColor
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.io.FileWriter
dataFile, dataURL, failure_message, options, success_message -
Constructor Summary
Constructors Constructor Description CaretAreaColourWriter() -
Method Summary
Modifier and Type Method Description booleanwrite(InterfaceIOOptions options, ProgressUpdater progressBar)Writes this object according to the givenoptions.booleanwriteColourMap(DiscreteColourMap colour_map)Writescolour_mapto file.Methods inherited from class mgui.io.FileWriter
getComplementIOType, getFailureMessage, getFile, getIOType, getLoaderComplement, getObjectIcon, getOptions, getProgressMessage, getSuccessMessage, getSupportedObjects, getTitle, getURL, setFile, setOptions, setURL, toString, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
CaretAreaColourWriter
public CaretAreaColourWriter()
-
-
Method Details
-
write
Description copied from class:FileWriterWrites this object according to the givenoptions. If loaded object is of typePersistentObject, this method should also set the file writer and reference URL for the object.- Specified by:
writein classFileWriter- Returns:
-
writeColourMap
Writescolour_mapto file. The map should have an associated name map; otherwise its indices will be used as names.- Parameters:
colour_map- The colour map to write- Returns:
-