MGDigitizeCircleObserver.onDigitizedCircle   Go to object model Go to parent topic

Syntax

public abstract void onDigitizedCircle(MGMap map, String units, 
MGPoint center, double radius)

Description

The circle-digitizing observer event method.

This event is fired when the user has finished digitizing a circle. It is initiated by a call to digitizeCircle.

This topic describes this event for Plug-In and Java Edition only. For ActiveX Control, see onDigitizedCircle.

Applies To

Plug-In and Java Edition only

Parameters

map - The map object for which the event occurred.

units - A string containing the units in which the radius is provided, one of the following codes: M (meters), KM (kilometers), FT (feet), or MI (miles)

center - An MGPoint object for the longitude/latitude center of the digitized circle.

radius - The radius of the digitized circle.

Error Codes

-1 (busy)

Example

To handle this event from the Plug-In or Java Edition, a Java object that implements the MGDigitizeCircleObserver interface must be passed to the digitizeCircle method. The observer Java object should include the following:

<class_definition> implements MGDigitizeCircleObserver
{
// ...
public void onDigitizedCircle(MGMap map, 
 String units, 
 MGPoint center, 
							 double radius)
{
// event handling code here...
}
// ...
}

The simplest way to include the observer object in a Web page is to implement it as an applet. See Advanced Examples for a fully functional observer object that supports all of the observer interfaces by forwarding the events back to JavaScript functions that have identical semantics to the ActiveX Control event handlers.

See Also

digitizeCircle