uk.ac.starlink.ttools.plot2.geom
Interface AxisAnnotation

All Known Implementing Classes:
PlaneAxisAnnotation

public interface AxisAnnotation

Defines text labelling to decorate a plot.

Since:
19 Feb 2013
Author:
Mark Taylor

Method Summary
 void drawLabels(Graphics g)
          Paints the annotations.
 Insets getPadding(boolean withScroll)
          Returns the padding insets around the edge of a plot bounds rectangle required to accommodate the labels painted by this object.
 

Method Detail

getPadding

Insets getPadding(boolean withScroll)
Returns the padding insets around the edge of a plot bounds rectangle required to accommodate the labels painted by this object.

Parameters:
withScroll - true if the padding should be large enough to accommodate labelling requirements if the surface is scrolled
Returns:
padding insets

drawLabels

void drawLabels(Graphics g)
Paints the annotations. They should fit in the padding region defined by the result of the {link #getPadding} method.

Parameters:
g - graphics context


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.