|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.domain2d.SharedResidueModelFactory
Factory to create residue models shared among different views. When no previous residue model was created for a sequence, at a given position, a new model is instanciated, otherwise, the previous model is returned.
| Field Summary | |
ResidueColorScheme |
colorscheme
|
protected boolean |
outline
|
| Constructor Summary | |
SharedResidueModelFactory()
|
|
| 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)
Invalid shapes are silently ignored. |
void |
setLinkedResidueShape(int shape)
Invalid shapes are silently ignored. |
void |
setShareBrushing(boolean state)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public ResidueColorScheme colorscheme
protected boolean outline
| Constructor Detail |
public SharedResidueModelFactory()
| Method Detail |
public void setShareBrushing(boolean state)
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 release(ResidueModel model)
ResidueModelFactory
release in interface ResidueModelFactorypublic java.lang.String getNumbering(java.lang.Object numbering)
getNumbering in interface ResidueModelFactorypublic void setLinkedResidueShape(int shape)
setLinkedResidueShape in interface ResidueGlyphRenderingAttributesResidueGlyph.CIRCLE_SHAPE,
edu.mssm.crover.domain2d.ResidueGlyph#RECTANGULAR_SHAPE,
*public void setDefaultResidueShape(int shape)
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 ResidueGlyphRenderingAttributespublic void parseAnnotations(BiologicalAnnotations annotations)
parseAnnotations 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 ResidueGlyphRenderingAttributes
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||