edu.mssm.crover.domain2d
Interface AnnotationParser
- All Known Implementing Classes:
- DisulfidBridgeTranslator
- 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:
AnnotationsToDrawings
parseAnnotation
public Drawing parseAnnotation(BiologicalAnnotation ann,
AnnotationsToDrawings translator)
- Parse the annotation and possibly translates it
as a drawing.
- Parameters:
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.
- Returns:
- null when no translation is desirable,
or a Drawing instance that represent the annotation.
Copyright @ 2003 Mount Sinai School of Medicine. All Rights Reserved.