com.sygem.swing.renderers
Class WatermarkBackgroundRenderer

java.lang.Object
  extended bycom.sygem.swing.renderers.WatermarkBackgroundRenderer
All Implemented Interfaces:
BackgroundRenderer

public class WatermarkBackgroundRenderer
extends java.lang.Object
implements BackgroundRenderer

BackgroundRenderer that places an image at the bottom-right of the category.

Version:
1.0

Constructor Summary
WatermarkBackgroundRenderer(java.awt.Image image, int opacity)
          Creates the background renderer, specifying the image to display, and how opaque the image should be.
 
Method Summary
 void renderBackground(java.awt.Component c, java.awt.Graphics2D g)
          Draws an image (which may be partially transparent) at the bottom-right corner of the passed in graphics context.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatermarkBackgroundRenderer

public WatermarkBackgroundRenderer(java.awt.Image image,
                                   int opacity)
Creates the background renderer, specifying the image to display, and how opaque the image should be. The opacity ranges from 100 (fully opaque) to 0 (fully transparent).

Parameters:
image - The image to display
opacity - The opacity of the image
Method Detail

renderBackground

public void renderBackground(java.awt.Component c,
                             java.awt.Graphics2D g)
Draws an image (which may be partially transparent) at the bottom-right corner of the passed in graphics context.

Specified by:
renderBackground in interface BackgroundRenderer
Parameters:
c - The Category that is being rendered
g - The Graphics2D context to draw to


Copyright © 2004 SyGem Software. All Rights Reserved.