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

    • CaretAreaColourWriter

      public CaretAreaColourWriter()
  • Method Details

    • write

      public boolean write​(InterfaceIOOptions options, ProgressUpdater progressBar)
      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:
    • writeColourMap

      public boolean writeColourMap​(DiscreteColourMap colour_map)
      Writes colour_map to 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: