BioLegato 0.7.3 Core API

org.biolegato.core.plugintypes
Interface DataCanvas


public interface DataCanvas

All subclasses are expected to implement a displayable canvas for BioLegato.

Author:
Graham Alvare, Brian Fristensky

Method Summary
 java.lang.String getTabName()
          Returns the name of the canvas.
 void readFile(java.lang.String format, java.io.File currentFile)
          Reads a file into the canvas
 void writeFile(java.lang.String format, java.io.File currentFile)
          Writes a file out from the canvas
 

Method Detail

readFile

void readFile(java.lang.String format,
              java.io.File currentFile)
Reads a file into the canvas

Parameters:
format - the file format to use for parsing the file.
currentFile - the file to read in.

writeFile

void writeFile(java.lang.String format,
               java.io.File currentFile)
Writes a file out from the canvas

Parameters:
format - the file format to use for writing the file.
currentFile - the file to write out.

getTabName

java.lang.String getTabName()
Returns the name of the canvas.

Returns:
the name to display for the canvas in all program text referring to it.

BioLegato 0.7.3 Core API

Copyright © 2008-2010 University of Manitoba.