org.formaria.swing.painter
Class ImagePainter

java.lang.Object
  extended by org.formaria.swing.painter.ImagePainter

public class ImagePainter
extends java.lang.Object

Paints a background with a watermark image

Copyright (c) Formaria Ltd., 2008

License: see license.txt

$Revision: 1.2 $


Field Summary
protected  Project currentProject
           
 
Constructor Summary
ImagePainter()
           
 
Method Summary
 void paint(java.awt.Graphics2D g, javax.swing.JComponent obj, int w, int h)
          Paints a background with a watermark image.
 void paint(java.awt.Graphics2D g, java.lang.Object object, int width, int height)
           
 void setBlend(boolean b)
          Does nothing
 void setImage(java.lang.String imageName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentProject

protected Project currentProject
Constructor Detail

ImagePainter

public ImagePainter()
Method Detail

paint

public void paint(java.awt.Graphics2D g,
                  java.lang.Object object,
                  int width,
                  int height)

paint

public void paint(java.awt.Graphics2D g,
                  javax.swing.JComponent obj,
                  int w,
                  int h)
Paints a background with a watermark image.

Parameters:
obj - The object/component being painted
g - the graphics context
w - the width coordinate
h - the height coordinate

Copyright: Copyright (c) Formaria Ltd., 2008
License: see license.txt $Revision: 1.2 $


setImage

public void setImage(java.lang.String imageName)

setBlend

public void setBlend(boolean b)
Does nothing