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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void drawLabels​(java.awt.Graphics g)
      Paints the annotations.
      java.awt.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

        java.awt.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​(java.awt.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