com.charliemouse.cambozola.watermark

Class Watermark

public class Watermark extends Object

com/charliemouse/cambozola/Watermark.java Copyright (C) Andy Wilcock, 2001. Available from http://www.charliemouse.com Cambozola is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Cambozola is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Cambozola; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Field Summary
static intH_CENTER
static intH_LEFT
static intH_RIGHT
static booleanINVISIBLE
static booleanVISIBLE
static intV_BOTTOM
static intV_MIDDLE
static intV_TOP
Constructor Summary
Watermark(Image img, int horiz, int vert, int indentx, int indenty)
Watermark(Image img, int horiz, int vert, int indentx, int indenty, String url)
Watermark(Image img, int horiz, int vert, int indentx, int indenty, String url, boolean visible)
Method Summary
URLgetURL()
booleanhitsPoint(Point p)
booleanisClickable()
booleanisVisible()
voidpaint(Graphics g)
voidrecalculateLocation(Dimension d)

Field Detail

H_CENTER

public static final int H_CENTER

H_LEFT

public static final int H_LEFT

H_RIGHT

public static final int H_RIGHT

INVISIBLE

public static final boolean INVISIBLE

VISIBLE

public static final boolean VISIBLE

V_BOTTOM

public static final int V_BOTTOM

V_MIDDLE

public static final int V_MIDDLE

V_TOP

public static final int V_TOP

Constructor Detail

Watermark

public Watermark(Image img, int horiz, int vert, int indentx, int indenty)

Watermark

public Watermark(Image img, int horiz, int vert, int indentx, int indenty, String url)

Watermark

public Watermark(Image img, int horiz, int vert, int indentx, int indenty, String url, boolean visible)

Method Detail

getURL

public URL getURL()

hitsPoint

public boolean hitsPoint(Point p)

isClickable

public boolean isClickable()

isVisible

public boolean isVisible()

paint

public void paint(Graphics g)

recalculateLocation

public void recalculateLocation(Dimension d)