Interface BackgroundPainterStrategy

All Known Implementing Classes:
BufferedImageBackgroundPainterStrategy, ColorBackgroundPainterStrategy, ImageBackgroundPainterStrategy, VolatileImageBackgroundPainterStrategy

public interface BackgroundPainterStrategy
Interface for classes that paint the background of an RTextAreaBase. The Strategy pattern is used for this object because the background can be painted as a solid color, as an image, and possibly other ways (gradients, animated images, etc.). When a method to change the background of an RTextAreaBase instance is called (such as setBackground, setBackgroundImage or setBackgroundObject), the correct strategy is then created and used to paint its background.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    paint(Graphics g, Rectangle bounds)
    Paints the background.
  • Method Details

    • paint

      void paint(Graphics g, Rectangle bounds)
      Paints the background.
      Parameters:
      g - The graphics context.
      bounds - The bounds of the object whose background we're painting.