org.autoplot.dom.AnnotationController

implements the annotation

AnnotationController( org.autoplot.dom.Application dom, org.autoplot.dom.Annotation annotation, org.das2.graph.DasAnnotation dasAnnotation )


getCanvas

getCanvas( ) → Canvas

return the canvas where this annotation lives.

Returns:

an org.autoplot.dom.Canvas

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getDasAnnotation

getDasAnnotation( ) → DasAnnotation

provide direct access to the annotation

Returns:

the implementing das2 annotation

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getFontConverter

getFontConverter( org.das2.graph.DasCanvasComponent dcc ) → Converter

converts forward from relative font spec to point size, used by the annotation and axis nodes.

Parameters

dcc - the canvas component.

Returns:

the converter that converts between strings like "1em" and the font.

[search for examples] [view on GitHub] [view on old javadoc] [view source]