FileDocCategorySizeDatePackage
RoundHrefButtonArea.javaAPI DocSun JDK 1.5.0 Example3036Sat Jan 08 15:09:03 GMT 2005None

RoundHrefButtonArea

public class RoundHrefButtonArea extends HrefButtonArea
An improved, round, "Fetch a URL" ImageArea class. This class extends the HrefButtonArea Class to make the 3D button a rounded ellipse. All of the same feedback and operational charactistics as the HrefButtonArea apply.
author
Jim Graham
version
1.13, 07/26/04

Fields Summary
RoundButtonFilter
roundfilter
The filter used to create the 3D look for the button when it is up.
Constructors Summary
Methods Summary
public booleaninside(int x, int y)
Test if the coordinate is inside the round region. Use the test provided by the filter that creates the 3D look for consistency.

	return roundfilter.inside(x - X, y - Y);
    
public voidmakeImages()
Construct the 3D look images that this area uses to draw the button.

	roundfilter = new RoundButtonFilter(false, parent.hlpercent,
					    border, W, H);
	upImage = parent.getHighlight(X, Y, W, H, roundfilter);
	downImage = parent.getHighlight(X, Y, W, H,
					new RoundButtonFilter(true,
							      parent.hlpercent,
							      border, W, H));