edu.mssm.crover.domain2d
Interface LoopTemplate

All Known Implementing Classes:
AbstractLoopTemplate, AlgorithmicLoopTemplate, MultiPointLoopTemplate

public interface LoopTemplate

Templates of control points for loops.


Method Summary
 void adapt(int numglyph, double dist)
          Adapts the template to accomodate numglyphs glyphs separated by a distance dist.
 Point2D[] getAdapted()
          Adapted control points.
 Point2D[] getControls()
          Original control points.
 Point2D[] getGlyphPositions()
          Returns the positions of the glyphs when laid out on the adaptated curve.
 Point2D getP0()
          Returns the first control point.
 Point2D getPn()
          Returns the last control point.
 Point2D getSpacer()
          The spacer that this template match.
 int glyphsNotDisplayed()
          Returns the number of glyphs that cannot fit on the adpated template.
 void setPossibleEllipses(int number)
          Sets the maximum number of ellipsis for this template.
 void setSpacer(Point2D newspacer)
          Instructs the template to adapt to a new spacer.
 

Method Detail

getControls

Point2D[] getControls()
Original control points. P0 is at (0,0), Pn is at spacer


getAdapted

Point2D[] getAdapted()
Adapted control points. These control point positions are calculated so that the Pn-P0 is still equal to the spacer while the template now accomodates a certain number of residues.


getSpacer

Point2D getSpacer()
The spacer that this template match. It is equal to Pn-P0.


setSpacer

void setSpacer(Point2D newspacer)
Instructs the template to adapt to a new spacer. The details of the adaptation are left to the implementation.


getP0

Point2D getP0()
Returns the first control point.


getPn

Point2D getPn()
Returns the last control point.


adapt

void adapt(int numglyph,
           double dist)
Adapts the template to accomodate numglyphs glyphs separated by a distance dist.


getGlyphPositions

Point2D[] getGlyphPositions()
Returns the positions of the glyphs when laid out on the adaptated curve.


glyphsNotDisplayed

int glyphsNotDisplayed()
Returns the number of glyphs that cannot fit on the adpated template. Negative values indicate that more residues could fit on the curve that actually do.


setPossibleEllipses

void setPossibleEllipses(int number)
Sets the maximum number of ellipsis for this template. The template adjusts the length of the glyph position array according to the maximum number of ellipsis you provide.



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