BioLegato 0.7.5 Core API

org.biolegato.main
Interface DataCanvas


public interface DataCanvas

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

Author:
Graham Alvare, Brian Fristensky

Method Summary
 java.awt.Component display()
          Displays the main pane of the data canvas
 java.lang.String getName()
          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

display

java.awt.Component display()
Displays the main pane of the data canvas


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.

getName

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

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

BioLegato 0.7.5 Core API

Copyright © 2008-2011 University of Manitoba.