Interface Renderable

All Known Implementing Classes:
ColorComposite, ColorEnhancement, ColorPointEnhancement, EarthDataPlot, EarthDataView, HybridView, SolidBackground

public interface Renderable
The renderable interface sets the methods for classes that render to images or graphics contexts.
Since:
3.1.1
Author:
Peter Hollemans
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the rendered size for this renderable.
    void
    Renders this renderable to the graphics context.
  • Method Details

    • getSize

      Dimension getSize(Graphics2D g)
      Gets the rendered size for this renderable.
      Parameters:
      g - the graphics context to be used for rendering. This is used to determine the total rendering size from font information and so on.
      Returns:
      the total rendered dimensions.
    • render

      void render(Graphics2D g)
      Renders this renderable to the graphics context.
      Parameters:
      g - the graphics context for rendering.