Class CaretAreaColourLoader

All Implemented Interfaces:
InterfaceIO, IconObject

public class CaretAreaColourLoader
extends DiscreteColourMapLoader
A hack to read Caret area colour files. This should really be done using an XML parser, but I haven't the patience :P
Author:
Andrew Reid
  • Field Details

    • nameMap

      protected NameMap nameMap
  • Constructor Details

    • CaretAreaColourLoader

      public CaretAreaColourLoader()
    • CaretAreaColourLoader

      public CaretAreaColourLoader​(java.io.File file)
  • Method Details

    • load

      public boolean load​(InterfaceIOOptions options, ProgressUpdater progress_bar)
      Description copied from class: FileLoader
      Loads data from the set of files or URLs specified by options. Loading is controlled by the specifications of options. If loaded object is of type PersistentObject, 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 class DiscreteColourMapLoader
      progress_bar - An optional progress updater. Can be null.
      Returns:
    • loadMap

      public DiscreteColourMap loadMap​(NameMap nameMap) throws java.io.IOException
      Throws:
      java.io.IOException