|
BioLegato 0.7.3 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
org.biolegato.gdesupport.canvas.colourmask.ColourMaskReader
org.biolegato.gdesupport.canvas.colourmask.GDEColourMaskFile
public class GDEColourMaskFile
Used to select colour masks.
| Constructor Summary | |
|---|---|
GDEColourMaskFile()
Creates a new instance of GDEColourMaskFile |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File f)
|
static java.awt.Color |
getDefaultColour(int number)
Returns a standard colour from the properties |
java.lang.String |
getDescription()
|
ColourMap[] |
readColourMapFile(java.io.File file)
Reads and parses a colour mask file. |
static int |
stringToInt(java.lang.String s)
Converts a string to an integer (note: returns 0 on failure). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GDEColourMaskFile()
| Method Detail |
|---|
public ColourMap[] readColourMapFile(java.io.File file)
readColourMapFile in class ColourMaskReaderfile - the file to read.
public boolean accept(java.io.File f)
accept in class javax.swing.filechooser.FileFilterpublic java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterpublic static java.awt.Color getDefaultColour(int number)
number - the colour number to retrieve from the pallet.
public static int stringToInt(java.lang.String s)
s - the string to convert.
|
BioLegato 0.7.3 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||