|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--edu.mssm.crover.representation.Annotation
|
+--edu.mssm.crover.representation.Color_Annotation
Colors groups of residues according to a property. Defines a color, with a description of the property it encodes and the set of residues that share this color. The organisation by property helps filter Color_Annotation to keep only the nodes the user is interrested in. The package domain2d includes classes to represent color annotations in the different diagramatic representations it provides. When a residue is "colored" by several Color_Annotations, the actual color that will be rendered on this residue is dependant on the order of the annotations in the Annotations object. The "last" coloring should take effect. (Unfortunately, the order of annotations instances is not specified.)
| Field Summary |
| Fields inherited from class edu.mssm.crover.representation.Annotation |
origin |
| Constructor Summary | |
Color_Annotation()
Constructs an empty color annotation. |
|
| Method Summary | |
void |
clearResidue(int seq_pos)
Clear a residue from this color. |
boolean |
describesResidue(int position)
Does this annotation describes this residue ? |
java.awt.Color |
getColor()
Returns the color associated with the set of residues. |
java.lang.String |
getInfo()
Returns a consise text that describes the nature of this annotation. |
int[] |
getResidues()
Returns the positions of the residues painted with this color. |
java.lang.String |
getShortName()
Returns the shortname of this color. |
static void |
main(java.lang.String[] args)
|
void |
paintResidue(int seq_pos)
Paint a residue with this color. |
void |
setColor(java.awt.Color color)
Sets the color associated with the set of residues. |
void |
setShortName(java.lang.String name)
Sets the shortname for this color. |
java.lang.String |
toString()
|
| Methods inherited from class edu.mssm.crover.representation.Annotation |
getOrigin, setOrigin |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Color_Annotation()
| Method Detail |
public java.lang.String getShortName()
setShortName(String name)public void setShortName(java.lang.String name)
getShortName()public void setColor(java.awt.Color color)
public java.awt.Color getColor()
public java.lang.String toString()
toString in class Annotationpublic void paintResidue(int seq_pos)
clearResidue(int)public void clearResidue(int seq_pos)
paintResidue(int)public int[] getResidues()
public java.lang.String getInfo()
BiologicalAnnotation
getInfo in interface BiologicalAnnotationgetInfo in class Annotationpublic boolean describesResidue(int position)
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||