|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--edu.mssm.crover.webservices.rbde.CustomizedDiagramImpl3_0
Encapsulates all necessary diagram components for storage. Contains functionality to rebuild or repaint the diagram. Due to the transfer mechanism to support different versions of the interface/implementation, this class must NOT use private fiels or methods. The higher level of restriction is protected (everything should be available to a subclass). NB. The ServletCentral instance can be not available in a context where the CustomizedDiagram is deserialized outside of the servlet engine.
| Field Summary | |
protected ColorAnnotationsColorScheme |
cacs
|
protected ResidueColorScheme |
defaultColorScheme
|
protected Diagram |
diagram
|
protected boolean[] |
elipsOK
|
protected java.awt.Image |
image
|
protected double |
image_scale_factor
|
protected boolean |
image_time_adjusted_in_advance
|
protected long |
last_image_time
|
protected boolean |
need_rebuild_image
|
protected boolean |
need_repaint_image
|
protected java.awt.Point |
Nterm_dir
|
protected ServletCentral |
sc
|
protected AnnotatedBioSequence |
sequence
|
| Constructor Summary | |
CustomizedDiagramImpl3_0()
Default constructor. |
|
CustomizedDiagramImpl3_0(AnnotatedBioSequence sequence)
Constructor from a sequence. |
|
| Method Summary | |
protected Elipses |
adjustLoopParameters(FreeLoop fl,
Domain2D_Annotation.LayoutInfo li,
Elipses el)
|
protected Elipses |
calculateElipses(int loop_start,
int loop_end)
|
void |
dispose()
Dispose of the ressources used by this CustomizedDiagram. |
void |
flush()
Flush the ressources used by this CustomizedDiagram. |
static void |
fullGC()
Performes full Garbage collection. |
ColorAnnotationsColorScheme |
getColorAnnotationsColorScheme()
Returns ColorAnnotationsCollorScheme that encapsulates the color scheme for residue glyphs. |
ResidueColorScheme |
getDefaultColorScheme()
Returns the current default ResidueColorScheme. |
Diagram |
getDiagram()
Returns Diagram representation of the sequence diagram. |
boolean |
getElipses(int residue)
Returns the elipsable state of the residue. |
java.awt.Image |
getImage()
Returns the image rendcered for this customized diagram. |
double |
getImageScaleFactor()
Returns the the scale ratio for the image. |
long |
getImageTime()
Returns time the last image has been rebuild or repainted. |
java.awt.Point |
getNtermDirection()
Returns starting direction of the N-terminus. |
AnnotatedBioSequence |
getSequence()
Returns the AnnotatedBioSequence set by setAnnotatedBioSequence. |
protected void |
obtainServletCentral()
|
void |
postTransfer(UpgradableObject source)
Post transfer operation. |
protected void |
rebuildImage()
Potentially rebuilds an Image using the current settings. |
protected void |
repaintImage()
|
protected void |
resetAll()
Resets the state of the all variables. |
protected void |
resetTransient()
|
protected void |
scaleImage()
|
void |
setDefaultColorScheme(ResidueColorScheme colorScheme)
Sets the default color scheme of residue glyphs. |
void |
setElipses(int residue,
boolean elipsesOK)
Sets the state of the residue to be or not to be able to be included in elipsis. |
void |
setImageScaleFactor(double scale_factor)
Sets the scale ratio for the image returned by getImage(). |
protected void |
setImageTime()
|
void |
setNeedRebuildImage()
After calling this method the image returned next by getImage() will be rebuilded first. |
void |
setNeedRepaintImage()
After calling this method the image returned next by getImage() will be repainted first. |
void |
setNtermDirectionDown()
Sets the starting direction of the N-terminus to go downwords. |
void |
setNtermDirectionUp()
Sets the starting direction of the N-terminus to go upwards. |
void |
setSequence(AnnotatedBioSequence seq)
Resets AnnotatedBioSequence to seq and resets all other fields to initial empty state. |
void |
transfer(UpgradableObject destination)
Transfers the content of this CustomizedDiagram to the destination. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected AnnotatedBioSequence sequence
protected transient Diagram diagram
protected transient java.awt.Image image
protected ColorAnnotationsColorScheme cacs
protected ResidueColorScheme defaultColorScheme
protected boolean[] elipsOK
protected boolean need_rebuild_image
protected boolean need_repaint_image
protected long last_image_time
protected boolean image_time_adjusted_in_advance
protected double image_scale_factor
protected java.awt.Point Nterm_dir
protected transient ServletCentral sc
| Constructor Detail |
public CustomizedDiagramImpl3_0(AnnotatedBioSequence sequence)
public CustomizedDiagramImpl3_0()
| Method Detail |
public void transfer(UpgradableObject destination)
transfer in interface UpgradableObjectpublic void postTransfer(UpgradableObject source)
#transfer().
postTransfer in interface UpgradableObjectpublic void setSequence(AnnotatedBioSequence seq)
setSequence in interface CustomizedDiagrampublic AnnotatedBioSequence getSequence()
getSequence in interface CustomizedDiagramsetAnnotatedBioSequencepublic void setNtermDirectionUp()
setNtermDirectionUp in interface CustomizedDiagrampublic void setNtermDirectionDown()
setNtermDirectionDown in interface CustomizedDiagrampublic java.awt.Point getNtermDirection()
getNtermDirection in interface CustomizedDiagramsetNtermDirectionUp,
setNtermDirectionDownpublic ColorAnnotationsColorScheme getColorAnnotationsColorScheme()
getColorAnnotationsColorScheme in interface CustomizedDiagrampublic void setDefaultColorScheme(ResidueColorScheme colorScheme)
setDefaultColorScheme in interface CustomizedDiagrampublic ResidueColorScheme getDefaultColorScheme()
getDefaultColorScheme in interface CustomizedDiagramsetDefaultColorSchemepublic double getImageScaleFactor()
getImageScaleFactor in interface CustomizedDiagramsetImageScaleFactorpublic void setImageScaleFactor(double scale_factor)
setImageScaleFactor in interface CustomizedDiagramgetImagepublic void setNeedRebuildImage()
setNeedRebuildImage in interface CustomizedDiagrampublic void setNeedRepaintImage()
setNeedRepaintImage in interface CustomizedDiagrampublic java.awt.Image getImage()
getImage in interface CustomizedDiagramsetNeedRebuildImage()public Diagram getDiagram()
getDiagram in interface CustomizedDiagrampublic long getImageTime()
getImageTime in interface CustomizedDiagramprotected void resetTransient()
protected void obtainServletCentral()
protected void resetAll()
#resetTransient.protected void rebuildImage()
protected void repaintImage()
protected void scaleImage()
protected void setImageTime()
protected Elipses calculateElipses(int loop_start,
int loop_end)
protected Elipses adjustLoopParameters(FreeLoop fl,
Domain2D_Annotation.LayoutInfo li,
Elipses el)
public void setElipses(int residue,
boolean elipsesOK)
setElipses in interface CustomizedDiagrampublic boolean getElipses(int residue)
getElipses in interface CustomizedDiagramsetElipsespublic static void fullGC()
public void flush()
flush in interface CustomizedDiagrampublic void dispose()
dispose in interface UpgradableObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||