Module platform

Interface Drawable

All Known Subinterfaces:
Block
All Known Implementing Classes:
BlockContainer, ColorBlock, CompositeTitle, DateTitle, EmptyBlock, ImageTitle, JFreeChart, LabelBlock, LegendGraphic, LegendItemBlockContainer, LegendTitle, PaintScaleLegend, ShortTextTitle, TextTitle, Title

public interface Drawable
An interface for an object that can draw itself within an area on a Graphics2D.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Draws the object.
  • Method Details

    • draw

      void draw(Graphics2D g2, Rectangle2D area)
      Draws the object.
      Parameters:
      g2 - the graphics device.
      area - the area inside which the object should be drawn.