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
  • Constructor Details

    • DiscreteColourMapWriter

      public DiscreteColourMapWriter()
  • Method Details

    • write

      public boolean write​(InterfaceIOOptions options, ProgressUpdater progress_bar)
      Description copied from class: FileWriter
      Writes this object according to the given options. If loaded object is of type PersistentObject, this method should also set the file writer and reference URL for the object.
      Specified by:
      write in class FileWriter
      Returns:
    • writeMap

      public boolean writeMap​(DiscreteColourMap map)
    • writeMap

      public boolean writeMap​(DiscreteColourMap map, boolean alpha)
    • getObjectIcon

      public javax.swing.Icon getObjectIcon()
      Description copied from interface: IconObject
      Returns the Icon associated with this object.
      Specified by:
      getObjectIcon in interface IconObject
      Overrides:
      getObjectIcon in class FileWriter
      Returns:
    • getSupportedObjects

      public java.util.ArrayList<java.lang.Class<?>> getSupportedObjects()
      Description copied from interface: InterfaceIO
      Returns a list of classes for objects which are supported by this I/O interface
      Specified by:
      getSupportedObjects in interface InterfaceIO
      Overrides:
      getSupportedObjects in class FileWriter
      Returns: