|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.domain2d.ColorAnnotationsColorScheme
Colors residues according to the sequence annotations. When no annotations are available, the choice of the colors defaults to another ResidueColorScheme.
| Constructor Summary | |
ColorAnnotationsColorScheme(ResidueColorScheme defaultCS)
|
|
| Method Summary | |
void |
addResidues(int[] positions,
java.awt.Color color)
Cache the specified residue positions and color. |
java.awt.Color |
findColor(int position)
|
java.awt.Color |
getBackgroundColor(char label,
int position)
Returns the background color. |
java.awt.Color |
getForegroundColor(char label,
int position)
Returns the foreground color. |
java.lang.String |
getInformation()
Returns a descriptive text about this ColorScheme. |
java.lang.String |
getShortName()
Returns a shortname for this ColorScheme. |
void |
parseAnnotations(BiologicalAnnotations annotations)
Compiles the coloring from the annotations. |
void |
removeAllResidues()
Cleans the residue/color association cache. |
void |
setDefaultScheme(ResidueColorScheme defaultCS)
Sets the default color scheme. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ColorAnnotationsColorScheme(ResidueColorScheme defaultCS)
| Method Detail |
public void setDefaultScheme(ResidueColorScheme defaultCS)
public java.awt.Color getForegroundColor(char label,
int position)
getForegroundColor in interface ResidueColorScheme
public java.awt.Color getBackgroundColor(char label,
int position)
getBackgroundColor in interface ResidueColorSchemepublic java.lang.String getShortName()
ResidueColorScheme
getShortName in interface ResidueColorSchemepublic java.lang.String getInformation()
ResidueColorScheme
getInformation in interface ResidueColorSchemepublic void parseAnnotations(BiologicalAnnotations annotations)
public void addResidues(int[] positions,
java.awt.Color color)
public void removeAllResidues()
public java.awt.Color findColor(int position)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||