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

    Modifier and Type
    Method
    Description
    void
    Paints the annotations.
    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 Details

    • 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