DhImage.addHotSpot

Overview | Methods | This Package | All Packages

DhImage.addHotSpot

Adds a DhHotSpot object to this image.

Syntax

final public void addHotSpot( DhHotSpot hs )

final public void addHotSpot( int nShape, int[] coords, String strUrl )

final public void addHotSpot( int nShape, int[] coords, EventHandler h )

Parameters

hs

The new DhHotSpot to add to this image.

nShape

The shape of the hotspot as a constant from DhHotSpotShapes.

coords

An integer array containing coordinates appropriate to the shape specified in nShape. For details, see DhHotSpot.

strUrl

The String Uniform Resource Locator (URL) to navigate to when the hotspot is clicked.

h

The EventHandler to trigger when the hotspot is clicked.

See Also   removeHotSpot