|
BioLegato 0.7.3 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.String,java.lang.Object>
org.biolegato.gdesupport.canvas.data.Cell
public class Cell
This class is used to contain all sequence related functions and data.
This class uses hashtables to pass and store parameters of the sequence. The hashtable has many intrinsic parameters; however accepts any number of additional parameters. The current values used by all known BioLegato plugins and classes are:
| Key | Intrinsic | Default setting | Description |
|---|---|---|---|
| accession | No | N/A> | The accession of the sequence |
| comments | No | N/A> | Comments about the sequence |
| creation-date | No | N/A> | The date the sequence was first synthesized |
| creator | No | N/A> | The creator of the sequence |
| direction | Yes | From 5' to 3' | The direction of the sequence (from 3' to 5' or from 5' to 3') |
| description | No | N/A> | A description of the sequence |
| GI | No | N/A> | The GI number of the sequence |
| modified | Yes | N/A> | Used to indicate the sequence was modified |
| name | Yes | New sequence | The sequence's name |
| sequence | Yes | blank | The raw sequence |
| strandedness | Yes | Single | The strandedness of a sequence |
| topology | Yes | Linear | The sequence topology |
| type | Yes | DNA> | The type of data the sequence is |
| Nested Class Summary | |
|---|---|
static class |
Cell.CharacterClass
Used for typing characters within a sequence. |
static class |
Cell.Direction
Used for typing/storing sequence direction. |
static class |
Cell.Strandedness
Used for typing/storing sequence strandedness. |
static class |
Cell.Topology
Used for typing/storing sequence topology. |
static class |
Cell.Type
This enum is used for typing/storing sequence types. |
| Constructor Summary | |
|---|---|
Cell()
Constructs new instances of Cell objects. |
|
Cell(java.util.Map<java.lang.String,java.lang.Object> data)
Constructs new instances of sequence. |
|
Cell(java.lang.String string)
Constructs new instances of Cell objects. |
|
| Method Summary | |
|---|---|
void |
addListener(CellListener listener)
Adds a sequence listener to keep track of sequence modifications. |
Cell.CharacterClass |
charType(char test)
|
java.lang.Object |
clone()
Clones the current sequence object. |
java.lang.Object |
get(java.lang.Object key)
Obtains a value for a field of the sequence. |
static java.lang.Object |
getDefault(java.lang.String key)
This function obtains the default value of a field for a Cell. |
boolean |
insertField(java.lang.String field,
int column,
java.lang.String string)
Inserts a string into field within the sequence. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Changes a value of a field in the sequence. |
void |
removeListener(CellListener listener)
Removes a sequence listener from keeping track of sequence modifications. |
java.lang.String |
toString()
Creates a string representation of the Cell and its fields |
| Methods inherited from class java.util.Hashtable |
|---|
clear, contains, containsKey, containsValue, elements, entrySet, equals, hashCode, isEmpty, keys, keySet, putAll, rehash, remove, size, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Cell()
public Cell(java.lang.String string)
string - the string to use for the "sequence" field in the sequence data.public Cell(java.util.Map<java.lang.String,java.lang.Object> data)
data - the map of values to use for the sequence.| Method Detail |
|---|
public void addListener(CellListener listener)
listener - the sequence listener to add.public void removeListener(CellListener listener)
listener - the listener to remove.public java.lang.Object get(java.lang.Object key)
get in interface java.util.Map<java.lang.String,java.lang.Object>get in class java.util.Hashtable<java.lang.String,java.lang.Object>key - the field name for the sequence data
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
put in interface java.util.Map<java.lang.String,java.lang.Object>put in class java.util.Hashtable<java.lang.String,java.lang.Object>key - the name of the field in the sequence.value - the new value of the field.
public boolean insertField(java.lang.String field,
int column,
java.lang.String string)
field - the field to alter.column - the column number to do the insertion at.string - the text to insert.
public static java.lang.Object getDefault(java.lang.String key)
key - the name of the field.
public java.lang.String toString()
toString in class java.util.Hashtable<java.lang.String,java.lang.Object>public java.lang.Object clone()
clone in class java.util.Hashtable<java.lang.String,java.lang.Object>public Cell.CharacterClass charType(char test)
|
BioLegato 0.7.3 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||