Package mgui.io.domestic.maps
Class DiscreteColourMapWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.maps.DiscreteColourMapWriter
- All Implemented Interfaces:
InterfaceIO,IconObject
- Direct Known Subclasses:
MricroLutWriter
public class DiscreteColourMapWriter extends FileWriter
Writer for discrete colour maps. Writes as comma-delimited ASCII.
- 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 DiscreteColourMapWriter() -
Method Summary
Modifier and Type Method Description javax.swing.IcongetObjectIcon()Returns theIconassociated with this object.java.util.ArrayList<java.lang.Class<?>>getSupportedObjects()Returns a list of classes for objects which are supported by this I/O interfacebooleanwrite(InterfaceIOOptions options, ProgressUpdater progress_bar)Writes this object according to the givenoptions.booleanwriteMap(DiscreteColourMap map)booleanwriteMap(DiscreteColourMap map, boolean alpha)Methods inherited from class mgui.io.FileWriter
getComplementIOType, getFailureMessage, getFile, getIOType, getLoaderComplement, getOptions, getProgressMessage, getSuccessMessage, 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
-
DiscreteColourMapWriter
public DiscreteColourMapWriter()
-
-
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:
-
writeMap
-
writeMap
-
getObjectIcon
public javax.swing.Icon getObjectIcon()Description copied from interface:IconObjectReturns theIconassociated with this object.- Specified by:
getObjectIconin interfaceIconObject- Overrides:
getObjectIconin classFileWriter- Returns:
-
getSupportedObjects
public java.util.ArrayList<java.lang.Class<?>> getSupportedObjects()Description copied from interface:InterfaceIOReturns a list of classes for objects which are supported by this I/O interface- Specified by:
getSupportedObjectsin interfaceInterfaceIO- Overrides:
getSupportedObjectsin classFileWriter- Returns:
-