Interface AnnotationParser

All Known Implementing Classes:
DisulfidBridgeTranslator, LineDrawingTranslator

public interface AnnotationParser

Parses an annotation and possibly produces a Drawing representation of it. This interface can be implemented for each kind of annotation to be represented graphically.

See Also:

Method Summary
 Drawing parseAnnotation(BiologicalAnnotation ann, AnnotationsToDrawings translator)
          Parse the annotation and possibly translates it as a drawing.

Method Detail


Drawing parseAnnotation(BiologicalAnnotation ann,
                        AnnotationsToDrawings translator)
Parse the annotation and possibly translates it as a drawing.

translator - Can be used by the parser to get information required by the building of the Drawing. This information is provided by the actual implementation of the AnnotationParser.
null when no translation is desirable, or a Drawing instance that represent the annotation.

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