Package org.fife.ui.rtextarea
Interface BackgroundPainterStrategy
-
- All Known Implementing Classes:
BufferedImageBackgroundPainterStrategy
,ColorBackgroundPainterStrategy
,ImageBackgroundPainterStrategy
,VolatileImageBackgroundPainterStrategy
public interface BackgroundPainterStrategy
Interface for classes that paint the background of anRTextAreaBase
. 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 anRTextAreaBase
instance is called (such assetBackground
,setBackgroundImage
orsetBackgroundObject
), the correct strategy is then created and used to paint its background.- Version:
- 0.1
- See Also:
ImageBackgroundPainterStrategy
,ColorBackgroundPainterStrategy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
paint(java.awt.Graphics g, java.awt.Rectangle bounds)
Paints the background.
-