|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.domain2d.UniqueResidueModelFactory
The simplest implantation of ResidueModelFactory. Simply creates a new instance of a ResidueModel each time createResidueModel() is invoked.
SharedResidueModelFactory| Field Summary | |
ResidueColorScheme |
colorscheme
|
protected boolean |
outline
|
protected int |
shape
|
| Constructor Summary | |
UniqueResidueModelFactory()
|
|
| 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. |
ResidueColorScheme |
getColorScheme()
Gets the current color scheme. |
boolean |
getDefaultResidueGlyphOutline()
Get the suggested default outline attribute. |
int |
getDefaultResidueShape()
Get the shape of residues that are not hyperlinked. |
java.awt.Color |
getForegroundColor(char label,
int position)
Returns the foreground color for a given residue. |
int |
getLinkedResidueShape()
Get the shape of residues that are hyperlinked. |
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)
Returns a string that represent the residue number as an integer. |
void |
parseAnnotations(BiologicalAnnotations annotations)
Parse sequence annotations. |
void |
release(ResidueModel model)
Release the model. |
void |
setColorScheme(ResidueColorScheme rcs)
Sets the color scheme. |
void |
setDefaultResidueGlyphOutline(boolean outline)
Sets the outline attribute for future instances of ResidueGlyph. |
void |
setDefaultResidueShape(int shape)
Sets the shape of linked residues. |
void |
setLinkedResidueShape(int shape)
Sets the shape of linked residues. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public ResidueColorScheme colorscheme
protected int shape
protected boolean outline
| Constructor Detail |
public UniqueResidueModelFactory()
| Method Detail |
public void setColorScheme(ResidueColorScheme rcs)
setColorScheme in interface ResidueModelFactoryResidueModelFactory.getForegroundColor(char, int),
ResidueModelFactory.getBackgroundColor(char, int)public ResidueColorScheme getColorScheme()
public ResidueModel createResidueModel(java.lang.Object sequence,
java.lang.Object ResidueNumber,
char label)
ResidueModelFactory
createResidueModel in interface ResidueModelFactory
public java.awt.Color getBackgroundColor(char label,
int position)
ResidueModelFactory
getBackgroundColor in interface ResidueModelFactoryResidueColorScheme
public java.awt.Color getForegroundColor(char label,
int position)
ResidueModelFactory
getForegroundColor in interface ResidueModelFactoryResidueColorSchemepublic java.util.Enumeration getModels()
ResidueModelFactory
getModels in interface ResidueModelFactorypublic int getModelCount()
ResidueModelFactory
getModelCount in interface ResidueModelFactorypublic void setDefaultResidueGlyphOutline(boolean outline)
ResidueGlyphRenderingAttributes
setDefaultResidueGlyphOutline in interface ResidueGlyphRenderingAttributesoutline - an outline display is suggested when true.for usage.public boolean getDefaultResidueGlyphOutline()
ResidueGlyphRenderingAttributes
getDefaultResidueGlyphOutline in interface ResidueGlyphRenderingAttributespublic void release(ResidueModel model)
ResidueModelFactory
release in interface ResidueModelFactorypublic java.lang.String getNumbering(java.lang.Object numbering)
getNumbering in interface ResidueModelFactorypublic void parseAnnotations(BiologicalAnnotations annotations)
parseAnnotations in interface ResidueModelFactorypublic void setLinkedResidueShape(int shape)
ResidueGlyphRenderingAttributes
setLinkedResidueShape in interface ResidueGlyphRenderingAttributesResidueGlyph.CIRCLE_SHAPE,
edu.mssm.crover.domain2d.ResidueGlyph#RECTANGULAR_SHAPE,
*public void setDefaultResidueShape(int shape)
ResidueGlyphRenderingAttributes
setDefaultResidueShape in interface ResidueGlyphRenderingAttributesResidueGlyph.CIRCLE_SHAPE,
edu.mssm.crover.domain2d.ResidueGlyph#RECTANGULAR_SHAPE,
ResidueGlyph.OCTAGONAL_SHAPEpublic int getLinkedResidueShape()
ResidueGlyphRenderingAttributes
getLinkedResidueShape in interface ResidueGlyphRenderingAttributesfor shape definitions.public int getDefaultResidueShape()
ResidueGlyphRenderingAttributes
getDefaultResidueShape in interface ResidueGlyphRenderingAttributes
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||