|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Factory to create ResidueModels. Contains convenience methods to get the colors associated with a residue glyph, to obtain the models created by this factory and provides a way to customize the numbering scheme used for labeling the residue glyphs.
| Method Summary | |
ResidueModel |
createResidueModel(java.lang.Object sequence,
java.lang.Object ResidueNumber,
char label)
Create a residue model. |
java.awt.Color |
getBackgroundColor(char label,
int position)
Returns the background color for a given residue. |
java.awt.Color |
getForegroundColor(char label,
int position)
Returns the foreground color for a given residue. |
int |
getModelCount()
Returns the number of models this factory built. |
java.util.Enumeration |
getModels()
Returns the model built by this factory. |
java.lang.String |
getNumbering(java.lang.Object numbering)
Converts the numbering implementation to a string representation. |
void |
parseAnnotations(BiologicalAnnotations annotations)
Parses the annotations. |
void |
release(ResidueModel model)
Release the model. |
void |
setColorScheme(ResidueColorScheme rcs)
Sets the residue color scheme to be delegate color requests to. |
| Methods inherited from interface edu.mssm.crover.domain2d.ResidueGlyphRenderingAttributes |
getDefaultResidueGlyphOutline, getDefaultResidueShape, getLinkedResidueShape, setDefaultResidueGlyphOutline, setDefaultResidueShape, setLinkedResidueShape |
| Method Detail |
public ResidueModel createResidueModel(java.lang.Object sequence,
java.lang.Object ResidueNumber,
char label)
public java.awt.Color getBackgroundColor(char label,
int position)
ResidueColorScheme
public java.awt.Color getForegroundColor(char label,
int position)
ResidueColorSchemepublic void setColorScheme(ResidueColorScheme rcs)
getForegroundColor(char, int),
getBackgroundColor(char, int)public java.util.Enumeration getModels()
public int getModelCount()
public void release(ResidueModel model)
public java.lang.String getNumbering(java.lang.Object numbering)
public void parseAnnotations(BiologicalAnnotations annotations)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||