org.jvnet.substance.painter.text
Class SubstanceTextPainter.ImageBackgroundPaintingCallback

java.lang.Object
  extended by org.jvnet.substance.painter.text.SubstanceTextPainter.ImageBackgroundPaintingCallback
All Implemented Interfaces:
SubstanceTextPainter.BackgroundPaintingCallback
Enclosing interface:
SubstanceTextPainter

public static class SubstanceTextPainter.ImageBackgroundPaintingCallback
extends java.lang.Object
implements SubstanceTextPainter.BackgroundPaintingCallback

Background painting callback that draws an image at the specified location.

Author:
Kirill Grouchnikov

Constructor Summary
SubstanceTextPainter.ImageBackgroundPaintingCallback(java.awt.image.BufferedImage backgroundImage, java.awt.Point backgroundImageAnchor, float alpha)
          Creates a new background painting callback.
 
Method Summary
 void paintBackground(java.awt.Graphics g)
          Performs custom background painting on the specified surface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstanceTextPainter.ImageBackgroundPaintingCallback

public SubstanceTextPainter.ImageBackgroundPaintingCallback(java.awt.image.BufferedImage backgroundImage,
                                                            java.awt.Point backgroundImageAnchor,
                                                            float alpha)
Creates a new background painting callback.

Parameters:
backgroundImage - Image to paint.
backgroundImageAnchor - Image anchor.
alpha - Alpha channel.
Method Detail

paintBackground

public void paintBackground(java.awt.Graphics g)
Description copied from interface: SubstanceTextPainter.BackgroundPaintingCallback
Performs custom background painting on the specified surface.

Specified by:
paintBackground in interface SubstanceTextPainter.BackgroundPaintingCallback
Parameters:
g - Graphic context.