com.google.gwt.maps.client.overlays
Class PolygonOptions

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.overlays.PolygonOptions

public class PolygonOptions
extends JavaScriptObject


Constructor Summary
protected PolygonOptions()
           
 
Method Summary
 boolean getClickable()
          gets Indicates whether this Polyline handles click events.
 boolean getEditable()
          Whether the user can edit this shape by dragging the control points shown at the vertices and on each segment.
 String getFillColor()
          The fill color.
 double getFillOpacity()
          The fill opacity between 0.0 and 1.0
 boolean getGeodesic()
          gets When true, render each edge as a geodesic (a segment of a "great circle").
 MapWidget getMap()
          Gets Map on which to display Polyline.
 MapWidget getMapWidget()
          Deprecated. 
 JsArray<LatLng> getPaths_JsArray()
           
 MVCArray<LatLng> getPaths_MVCArray()
           
 JsArray<JsArray<LatLng>> getPathss_JsArray()
           
 MVCArray<MVCArray<LatLng>> getPathss_MVCArray()
           
 String getStrokeColor()
          gets The stroke color.
 double getStrokeOpacity()
          gets The stroke opacity between 0.0 and 1.0
 int getStrokeWeight()
          gets The stroke width in pixels.
 boolean getVisible()
          Whether this polygon is visible on the map.
 int getZindex()
          gets The zIndex compared to other polys.
static PolygonOptions newInstance()
           
 void setClickable(boolean clickable)
          sets Indicates whether this Polyline handles click events.
 void setEditable(boolean isEditable)
          If set to true, the user can edit this shape by dragging the control points shown at the vertices and on each segment.
 void setFillColor(String fillColor)
          The fill color.
 void setFillOpacity(double fillOpacity)
          The fill opacity between 0.0 and 1.0
 void setGeodesic(boolean geodesic)
          sets When true, render each edge as a geodesic (a segment of a "great circle").
 void setMap(MapWidget mapWidget)
          Renders the Polygone on the map
 void setPaths(JsArray<LatLng> paths)
          The ordered sequence of coordinates that designates a closed loop.
 void setPaths(MVCArray<LatLng> paths)
          The ordered sequence of coordinates that designates a closed loop.
 void setPathss(JsArray<JsArray<LatLng>> paths)
          The ordered sequence of coordinates that designates a closed loop.
 void setPathss(MVCArray<MVCArray<LatLng>> paths)
          The ordered sequence of coordinates that designates a closed loop.
 void setStrokeColor(String strokeColor)
          sets The stroke color.
 void setStrokeOpacity(double strokeOpacity)
          sets The stroke opacity between 0.0 and 1.0
 void setStrokeWeight(int strokeWeight)
          sets The stroke width in pixels.
 void setVisible(boolean visible)
          Whether this polygon is visible on the map.
 void setZindex(int zIndex)
          sets The zIndex compared to other polys.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolygonOptions

protected PolygonOptions()
Method Detail

newInstance

public static final PolygonOptions newInstance()

setVisible

public final void setVisible(boolean visible)
Whether this polygon is visible on the map. Defaults to true

Parameters:
visible -

getVisible

public final boolean getVisible()
Whether this polygon is visible on the map. Defaults to true .


setEditable

public final void setEditable(boolean isEditable)
If set to true, the user can edit this shape by dragging the control points shown at the vertices and on each segment. Defaults to false.

Parameters:
isEditable -

getEditable

public final boolean getEditable()
Whether the user can edit this shape by dragging the control points shown at the vertices and on each segment.


setClickable

public final void setClickable(boolean clickable)
sets Indicates whether this Polyline handles click events. Defaults to true.

Parameters:
clickable -

getClickable

public final boolean getClickable()
gets Indicates whether this Polyline handles click events. Defaults to true.


setFillColor

public final void setFillColor(String fillColor)
The fill color. All CSS3 colors are supported except for extended named colors.

Parameters:
fillColor -

getFillColor

public final String getFillColor()
The fill color. All CSS3 colors are supported except for extended named colors.


setFillOpacity

public final void setFillOpacity(double fillOpacity)
The fill opacity between 0.0 and 1.0

Parameters:
fillOpacity -

getFillOpacity

public final double getFillOpacity()
The fill opacity between 0.0 and 1.0


setGeodesic

public final void setGeodesic(boolean geodesic)
sets When true, render each edge as a geodesic (a segment of a "great circle"). A geodesic is the shortest path between two points along the surface of the Earth. When false, render each edge as a straight line on screen. Defaults to false.

Parameters:
geodesic -

getGeodesic

public final boolean getGeodesic()
gets When true, render each edge as a geodesic (a segment of a "great circle"). A geodesic is the shortest path between two points along the surface of the Earth. When false, render each edge as a straight line on screen. Defaults to false.


setMap

public final void setMap(MapWidget mapWidget)
Renders the Polygone on the map

Parameters:
mapWidget -

getMap

public final MapWidget getMap()
Gets Map on which to display Polyline.


getMapWidget

@Deprecated
public final MapWidget getMapWidget()
Deprecated. 

Gets Map on which to display Polyline.
See getMap()


setPaths

public final void setPaths(MVCArray<LatLng> paths)
The ordered sequence of coordinates that designates a closed loop. Unlike polygons, a polygon may consist of one or more paths. As a result, the paths property may specify one or more arrays of LatLng coordinates. Simple polygons may be defined using a single array of LatLngs. More complex polygons may specify an array of arrays. Any simple arrays are convered into MVCArrays. Inserting or removing LatLngs from the MVCArray will automatically update the polygon on the map.

Parameters:
paths -

getPaths_MVCArray

public final MVCArray<LatLng> getPaths_MVCArray()

setPathss

public final void setPathss(MVCArray<MVCArray<LatLng>> paths)
The ordered sequence of coordinates that designates a closed loop. Unlike polygons, a polygon may consist of one or more paths. As a result, the paths property may specify one or more arrays of LatLng coordinates. Simple polygons may be defined using a single array of LatLngs. More complex polygons may specify an array of arrays. Any simple arrays are convered into MVCArrays. Inserting or removing LatLngs from the MVCArray will automatically update the polygon on the map.

Parameters:
paths -

getPathss_MVCArray

public final MVCArray<MVCArray<LatLng>> getPathss_MVCArray()

setPaths

public final void setPaths(JsArray<LatLng> paths)
The ordered sequence of coordinates that designates a closed loop. Unlike polygons, a polygon may consist of one or more paths. As a result, the paths property may specify one or more arrays of LatLng coordinates. Simple polygons may be defined using a single array of LatLngs. More complex polygons may specify an array of arrays. Any simple arrays are convered into MVCArrays. Inserting or removing LatLngs from the MVCArray will automatically update the polygon on the map.

Parameters:
paths -

getPaths_JsArray

public final JsArray<LatLng> getPaths_JsArray()

setPathss

public final void setPathss(JsArray<JsArray<LatLng>> paths)
The ordered sequence of coordinates that designates a closed loop. Unlike polygons, a polygon may consist of one or more paths. As a result, the paths property may specify one or more arrays of LatLng coordinates. Simple polygons may be defined using a single array of LatLngs. More complex polygons may specify an array of arrays. Any simple arrays are convered into MVCArrays. Inserting or removing LatLngs from the MVCArray will automatically update the polygon on the map.

Parameters:
paths -

getPathss_JsArray

public final JsArray<JsArray<LatLng>> getPathss_JsArray()

setStrokeColor

public final void setStrokeColor(String strokeColor)
sets The stroke color. All CSS3 colors are supported except for extended named colors.

Parameters:
strokeColor -

getStrokeColor

public final String getStrokeColor()
gets The stroke color. All CSS3 colors are supported except for extended named colors.


setStrokeOpacity

public final void setStrokeOpacity(double strokeOpacity)
sets The stroke opacity between 0.0 and 1.0

Parameters:
strokeOpacity -

getStrokeOpacity

public final double getStrokeOpacity()
gets The stroke opacity between 0.0 and 1.0


setStrokeWeight

public final void setStrokeWeight(int strokeWeight)
sets The stroke width in pixels.

Parameters:
strokeWeight -

getStrokeWeight

public final int getStrokeWeight()
gets The stroke width in pixels.


setZindex

public final void setZindex(int zIndex)
sets The zIndex compared to other polys.

Parameters:
zIndex -

getZindex

public final int getZindex()
gets The zIndex compared to other polys.



Copyright © 2011-2013 GWT Maps API V3. All Rights Reserved.