Class ContinuousColourMapLoader

java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.maps.ColourMapLoader
mgui.io.domestic.maps.ContinuousColourMapLoader
All Implemented Interfaces:
InterfaceIO, IconObject

public class ContinuousColourMapLoader
extends ColourMapLoader
Loads a comma-delimited continuous colour map. Each line has four values (all from [0,1]): anchor position, red, green, blue.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • ContinuousColourMapLoader

      public ContinuousColourMapLoader()
    • ContinuousColourMapLoader

      public ContinuousColourMapLoader​(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 ColourMapLoader
      progress_bar - An optional progress updater. Can be null.
      Returns:
    • loadMap

      public ContinuousColourMap loadMap() throws java.io.IOException
      Overrides:
      loadMap in class ColourMapLoader
      Throws:
      java.io.IOException
    • loadMap

      public ContinuousColourMap loadMap​(ProgressUpdater progress_bar) throws java.io.IOException
      Throws:
      java.io.IOException
    • 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 FileLoader
      Returns: