|
BioLegato 0.7.5 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
org.biolegato.gdesupport.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 highindex at 0 (first character in the first sequence in the list, and lowindex with the last character in the last sequence within the list.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
Dataset()
Creates a new instance of Dataset |
|
| Method Summary | |
|---|---|
boolean |
addSequence(int y,
Seq seq)
Adds a sequence to the data container. |
boolean |
addSequences(int y,
java.util.Collection<Seq> seqs)
Adds sequences to the data container. |
java.lang.Object |
getElementAt(int index)
Returns the names of sequences based on their y number. |
int[] |
getgroup(int groupNumber)
|
Seq |
getLine(int number)
Retrieves a sequence object from the Dataset specified by its y y. |
int |
getSize()
Returns the number of lines in the document. |
void |
group(Seq[] sequences)
|
void |
removeSequences(int[] lineNumbers)
Removes an array of sequences from the data container. |
void |
ungroup(Seq[] sequences)
|
| Methods inherited from class javax.swing.AbstractListModel |
|---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Dataset()
| Method Detail |
|---|
public boolean addSequence(int y,
Seq seq)
y - is the y number to insert the sequence.seq - is the sequence to insert.
public boolean addSequences(int y,
java.util.Collection<Seq> seqs)
y - is the y number to insert the sequence.seqs - are the sequences to insert.
public void removeSequences(int[] lineNumbers)
lineNumbers - the y numbers to remove.public int getSize()
public Seq getLine(int number)
number - the y y to retrieve the sequence.
public void group(Seq[] sequences)
public void ungroup(Seq[] sequences)
public int[] getgroup(int groupNumber)
public java.lang.Object getElementAt(int index)
index - the y number to obtain the name of.
|
BioLegato 0.7.5 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||