|
BioLegato 0.7.3 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biolegato.gdesupport.canvas.data.Dataset
public class Dataset
The internal document format for BioLegato.
This document is structured as a linked list of sequences. Each character has an offset based on its position within the list and it's position within its containing sequence. Sequences start at 0 (first character in the first sequence in the list, and end with the last character in the last sequence within the list.
| Field Summary | |
|---|---|
static java.awt.datatransfer.DataFlavor |
seqDocFlavour
A data flavour representing the Dataset data type. |
| Constructor Summary | |
|---|---|
Dataset()
Creates a new instance of Dataset |
|
Dataset(Cell[] row)
Creates a new instance of Dataset using the existing sequence list |
|
| Method Summary | |
|---|---|
void |
addListener(DatasetListener listener)
Adds a listener object to the data container. |
boolean |
addRow(int y,
Cell seq)
Adds a sequence to the data container. |
protected void |
finalize()
Finalizes the object - removes all references to itself |
Cell |
get(int y)
Retrieves a sequence object from the Dataset specified by its line number. |
int |
getRowCount()
Returns the number of lines in the document. |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavour)
Translates the Dataset to the given format |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Dictates what formats the Dataset can be converted to. |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavour)
Dictates whether a given format is supported for conversion |
void |
removeListener(DatasetListener listener)
Adds a listener object to the data container. |
void |
removeRows(int[] lineNumbers)
Removes an array of sequences from the data container. |
void |
sequenceChanged(Cell sequence,
java.lang.String key)
Called when a field in a sequence is modified. |
Cell[] |
toArray()
Converts the Dataset into a sequence array representation |
java.lang.String |
toString()
Converts the Dataset into a string representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.datatransfer.DataFlavor seqDocFlavour
| Constructor Detail |
|---|
public Dataset()
public Dataset(Cell[] row)
sequenceList - the list of sequences to initialize the SDatasetwith.| Method Detail |
|---|
public boolean addRow(int y,
Cell seq)
y - is the line number to insert the sequence.seq - is the sequence to insert.
public void removeRows(int[] lineNumbers)
lineNumbers - the line numbers to remove.public Cell get(int y)
y - the line number to retreive the sequence.
public void addListener(DatasetListener listener)
listener - the listener to add.public void removeListener(DatasetListener listener)
listener - the listener to add.
public void sequenceChanged(Cell sequence,
java.lang.String key)
sequenceChanged in interface CellListenersequence - the sequence modified.key - the key of the modified field in the sequence.public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface java.awt.datatransfer.Transferablepublic boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavour)
isDataFlavorSupported in interface java.awt.datatransfer.Transferableflavour - the flavour to test for compatability
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavour)
throws java.awt.datatransfer.UnsupportedFlavorException,
java.io.IOException
getTransferData in interface java.awt.datatransfer.Transferableflavour - the data flavour to use for translation
java.awt.datatransfer.UnsupportedFlavorException - if the SeqDatasetnnot be translated into the requested data flavour
java.io.IOException - if there is a problem with I/O during the translationpublic java.lang.String toString()
toString in class java.lang.Objectpublic Cell[] toArray()
protected void finalize()
finalize in class java.lang.Objectpublic int getRowCount()
|
BioLegato 0.7.3 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||