edu.mssm.crover.domain2d
Class AbstractAnnotationsToDrawings

java.lang.Object
  |
  +--edu.mssm.crover.domain2d.AbstractAnnotationsToDrawings
All Implemented Interfaces:
AnnotationsToDrawings
Direct Known Subclasses:
DiagramAnnotationsToDrawingsImpl

public abstract class AbstractAnnotationsToDrawings
extends java.lang.Object
implements AnnotationsToDrawings

Translates annotation to graphical renderings for a Diagram.

See Also:
AnnotationsToDrawings

Constructor Summary
AbstractAnnotationsToDrawings()
           
 
Method Summary
 void addParser(AnnotationParser parser)
          Register an annotation parser.
 Drawing parseAnnotation(AnnotationParser parser, BiologicalAnnotation ann)
           
 Drawing[] parseAnnotations(BiologicalAnnotations ba)
          Does the translation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAnnotationsToDrawings

public AbstractAnnotationsToDrawings()
Method Detail

parseAnnotations

public Drawing[] parseAnnotations(BiologicalAnnotations ba)
Description copied from interface: AnnotationsToDrawings
Does the translation.

Specified by:
parseAnnotations in interface AnnotationsToDrawings
Returns:
an array, possibly empty, of Drawing to be rendered on a graphical representation.

parseAnnotation

public Drawing parseAnnotation(AnnotationParser parser,
                               BiologicalAnnotation ann)

addParser

public void addParser(AnnotationParser parser)
Description copied from interface: AnnotationsToDrawings
Register an annotation parser. Each parser supports a kind of annotation and encapsultates the knowledge of how to represent this annotation graphically.

Specified by:
addParser in interface AnnotationsToDrawings


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