BioLegato 0.7.5 GDE plugin

org.biolegato.gdesupport.files
Class CharacterColourMaskReader

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.biolegato.gdesupport.files.CharacterColourMaskReader

public class CharacterColourMaskReader
extends javax.swing.filechooser.FileFilter

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"
static ColourMask readColourMaskFile(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

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"

readColourMaskFile

public static ColourMask readColourMaskFile(java.io.File file)
                                     throws java.io.IOException
Reads and parses a colour mask file.

Parameters:
file - the file to read.
Returns:
an array of colour masks defined by the file.
Throws:
java.io.IOException

BioLegato 0.7.5 GDE plugin

Copyright © 2008-2011 University of Manitoba.