edu.mssm.crover.domain2d
Class BasicResidueGlyphRenderingAttributes

java.lang.Object
  |
  +--edu.mssm.crover.domain2d.BasicResidueGlyphRenderingAttributes
All Implemented Interfaces:
ResidueGlyphRenderingAttributes

public class BasicResidueGlyphRenderingAttributes
extends java.lang.Object
implements ResidueGlyphRenderingAttributes

Basic implementation of the ResidueGlyphRenderingAttributes interface. Stores the attributes and give them back when requested.


Field Summary
protected  boolean outline
           
 
Constructor Summary
BasicResidueGlyphRenderingAttributes()
           
BasicResidueGlyphRenderingAttributes(int shape, boolean outline)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outline

protected boolean outline
Constructor Detail

BasicResidueGlyphRenderingAttributes

public BasicResidueGlyphRenderingAttributes()

BasicResidueGlyphRenderingAttributes

public BasicResidueGlyphRenderingAttributes(int shape,
                                            boolean outline)
Method Detail

setDefaultResidueGlyphOutline

public void setDefaultResidueGlyphOutline(boolean outline)
Description copied from interface: ResidueGlyphRenderingAttributes
Sets the outline attribute for future instances of ResidueGlyph.

Specified by:
setDefaultResidueGlyphOutline in interface ResidueGlyphRenderingAttributes
Parameters:
outline - an outline display is suggested when true.
See Also:
for usage.

getDefaultResidueGlyphOutline

public boolean getDefaultResidueGlyphOutline()
Description copied from interface: ResidueGlyphRenderingAttributes
Get the suggested default outline attribute.

Specified by:
getDefaultResidueGlyphOutline in interface ResidueGlyphRenderingAttributes

setLinkedResidueShape

public void setLinkedResidueShape(int shape)
Description copied from interface: ResidueGlyphRenderingAttributes
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

Specified by:
setLinkedResidueShape in interface ResidueGlyphRenderingAttributes
See Also:
ResidueGlyph.CIRCLE_SHAPE, edu.mssm.crover.domain2d.ResidueGlyph#RECTANGULAR_SHAPE, *

setDefaultResidueShape

public void setDefaultResidueShape(int shape)
Description copied from interface: ResidueGlyphRenderingAttributes
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.

Specified by:
setDefaultResidueShape in interface ResidueGlyphRenderingAttributes
See Also:
ResidueGlyph.CIRCLE_SHAPE, edu.mssm.crover.domain2d.ResidueGlyph#RECTANGULAR_SHAPE, ResidueGlyph.OCTAGONAL_SHAPE

getLinkedResidueShape

public int getLinkedResidueShape()
Description copied from interface: ResidueGlyphRenderingAttributes
Get the shape of residues that are hyperlinked.

Specified by:
getLinkedResidueShape in interface ResidueGlyphRenderingAttributes
Returns:
Shape of the residues.
See Also:
for shape definitions.

getDefaultResidueShape

public int getDefaultResidueShape()
Description copied from interface: ResidueGlyphRenderingAttributes
Get the shape of residues that are not hyperlinked.

Specified by:
getDefaultResidueShape in interface ResidueGlyphRenderingAttributes


Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.