BioLegato 0.7.0 GDE Canvas plugin

org.biolegato.gdesupport.canvas.colourmask
Class CharacterColourMaskReader

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.biolegato.gdesupport.canvas.colourmask.ColourMaskReader
          extended by org.biolegato.gdesupport.canvas.colourmask.CharacterColourMaskReader

public class CharacterColourMaskReader
extends ColourMaskReader

Used to select colour masks.

Author:
Graham Alvare, Brian Fristensky

Constructor Summary
CharacterColourMaskReader()
          Creates a new instance of GDEColourMaskFile
 
Method Summary
 boolean accept(java.io.File f)
          Determines whether a file is of type "character colour mask"
 java.lang.String getDescription()
          Returns the description of "character colour mask"
 ColourMap[] readColourMapFile(java.io.File file)
          Reads and parses a colour mask file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterColourMaskReader

public CharacterColourMaskReader()
Creates a new instance of GDEColourMaskFile

Method Detail

readColourMapFile

public ColourMap[] readColourMapFile(java.io.File file)
Reads and parses a colour mask file.

Specified by:
readColourMapFile in class ColourMaskReader
Parameters:
file - the file to read.
Returns:
an array of colour masks defined by the file.

accept

public boolean accept(java.io.File f)
Determines whether a file is of type "character colour mask"

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - the file to test
Returns:
true if the file is of type "character colour mask"

getDescription

public java.lang.String getDescription()
Returns the description of "character colour mask"

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
the string "Character-based colour mask file"

BioLegato 0.7.0 GDE Canvas plugin

Copyright © 2008-2010 University of Manitoba.