|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJavaScriptObject
com.google.maps.gwt.client.MarkerShape
public class MarkerShape
This object defines the marker shape to use in determination of a
marker's clickable region. The shape consists of two properties
—
type
and
coord
— which define the general type of marker and coordinates
specific to that type of marker.
THIS SOURCE CODE IS GENERATED, DO NOT MODIFY
Constructor Summary | |
---|---|
protected |
MarkerShape()
Protected constructor avoids default public constructor. |
Method Summary | |
---|---|
static MarkerShape |
create()
|
void |
setCoords(JsArrayNumber coords)
The format of this attribute depends on the value of the type
and follows the w3 AREA
coords
specification found at
http://www.w3.org/TR/REC-html40/struct/objects.html#adef-coords. |
void |
setType(java.lang.String type)
Describes the shape's type and can be circle
,
poly
or
rect
. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MarkerShape()
Method Detail |
---|
public static final MarkerShape create()
public final void setCoords(JsArrayNumber coords)
type
and follows the w3 AREA
coords
specification found at
http://www.w3.org/TR/REC-html40/struct/objects.html#adef-coords.
coords
attribute is an array of integers that specify the pixel position of
the shape relative to the top-left corner of the target image. The
coordinates depend on the value of
type
as follows: circle
: coords is
[x1,y1,r]
where x1,y2 are the coordinates of the center of the circle, and r is
the radius of the circle. poly
: coords is
[x1,y1,x2,y2...xn,yn]
where each x,y pair contains the coordinates of one vertex of the
polygon. rect
: coords is
[x1,y1,x2,y2]
where x1,y1 are the coordinates of the upper-left corner of the
rectangle and x2,y2 are the coordinates of the lower-right
coordinates of the rectangle.
public final void setType(java.lang.String type)
circle
,
poly
or
rect
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |