org.tbee.swing
Class WatermarkPainterStamp

java.lang.Object
  extended by org.tbee.swing.WatermarkPainter
      extended by org.tbee.swing.WatermarkPainterStamp
All Implemented Interfaces:
java.awt.event.HierarchyListener, java.util.EventListener

public class WatermarkPainterStamp
extends WatermarkPainter

An extension of WatermarkPainter that paints a translucent image in the bottom right corner of the component.

Version:
$Revision: 1.3 $

Constructor Summary
WatermarkPainterStamp(java.awt.Image image)
           
 
Method Summary
 void paint(java.awt.Graphics g)
          Paint onto the graphics object indicated by the parameter.
 
Methods inherited from class org.tbee.swing.WatermarkPainter
getComponent, hierarchyChanged, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatermarkPainterStamp

public WatermarkPainterStamp(java.awt.Image image)
Method Detail

paint

public void paint(java.awt.Graphics g)
Description copied from class: WatermarkPainter
Paint onto the graphics object indicated by the parameter. This method can query the component returned by getComponent for size information. The component returned is guaranteed to be non-null as setComponent will always be called with a non-null component before any painting is done.

Specified by:
paint in class WatermarkPainter
Parameters:
g - the graphics object on which to paint


Copyright © 2010 KnowledgePlaza. All Rights Reserved.