edu.mssm.crover.domain2d
Interface ResidueGlyphRenderingAttributes

All Known Subinterfaces:
ResidueModelFactory
All Known Implementing Classes:
BasicResidueGlyphRenderingAttributes, SharedResidueModelFactory, UniqueResidueModelFactory

public interface ResidueGlyphRenderingAttributes

To set and get the ResidueGlyph rendering attributes. Oddly, this is implemented by ResidueModelFactory implementations, simply because we already pass an instance to the SSR engines.


Method Summary
 boolean getDefaultResidueGlyphOutline()
          Get the suggested default outline attribute.
 int getDefaultResidueShape()
          Get the shape of residues that are not hyperlinked.
 int getLinkedResidueShape()
          Get the shape of residues that are hyperlinked.
 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.
 

Method Detail

setDefaultResidueGlyphOutline

void setDefaultResidueGlyphOutline(boolean outline)
Sets the outline attribute for future instances of ResidueGlyph.

Parameters:
outline - an outline display is suggested when true.
See Also:
for usage.

getDefaultResidueGlyphOutline

boolean getDefaultResidueGlyphOutline()
Get the suggested default outline attribute.


setLinkedResidueShape

void setLinkedResidueShape(int shape)
Sets the shape of linked residues. Hyperlinked residues will have this shape by default. * When not set, linked residues have the same shape that non linked residues. Invalid shapes are silently ignored. * @param Type of the shape, as defined in ResidueGlyph

See Also:
ResidueGlyph.CIRCLE_SHAPE, ResidueGlyph.RECT_SHAPE, *

setDefaultResidueShape

void setDefaultResidueShape(int shape)
Sets the shape of linked residues. Residues will have this shape by default, unless hyperlinked. When not set, the shape of residues defaults to circles. Invalid shapes are silently ignored.

Parameters:
shape - as defined in ResidueGlyph
See Also:
ResidueGlyph.CIRCLE_SHAPE, ResidueGlyph.RECT_SHAPE, *

getLinkedResidueShape

int getLinkedResidueShape()
Get the shape of residues that are hyperlinked.

Returns:
Shape of the residues.
See Also:
for shape definitions.

getDefaultResidueShape

int getDefaultResidueShape()
Get the shape of residues that are not hyperlinked.



Copyright © 2004 Weill Cornell Medical College. All Rights Reserved.