com.google.gwt.maps.client.overlay
Class EncodedPolyline

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.overlay.EncodedPolyline

public final class EncodedPolyline
extends com.google.gwt.core.client.JavaScriptObject

Represents a polyline entity encoded as a string used to create a polygon. See Polygon.fromEncoded(EncodedPolyline[]) and Polyline Encoding documentation for more details.


Constructor Summary
protected EncodedPolyline()
           
 
Method Summary
static EncodedPolyline newInstance()
          Create a new encoded polyline.
static EncodedPolyline newInstance(java.lang.String points, int zoomFactor, java.lang.String levels, int numLevels)
          Create a new encoded polyline.
static EncodedPolyline newInstance(java.lang.String points, int zoomFactor, java.lang.String levels, int numLevels, java.lang.String color, int weight, double opacity)
          Create a new encoded polyline.
 void setColor(java.lang.String colorIn)
          Sets the color of the Polyline.
 void setLevels(java.lang.String levelsIn)
          Sets the zoom level groups for this polyline.
 void setNumLevels(int numLevelsIn)
          Set the number of zoom levels in the string passed to setLevels(String).
 void setOpacity(double opacityIn)
          Sets the opacity of the polyline.
 void setPoints(java.lang.String pointsIn)
          Set the list of encoded latitude and longitude coordinates.
 void setWeight(int weightIn)
          Sets the weight of the polyline.
 void setZoomFactor(int zoomFactorIn)
          Sets the magnification between adjacent sets of zoom levels in the encoded levels string.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EncodedPolyline

protected EncodedPolyline()
Method Detail

newInstance

public static EncodedPolyline newInstance()
Create a new encoded polyline. See Encoded Polylines Documentation for more details.


newInstance

public static EncodedPolyline newInstance(java.lang.String points,
                                          int zoomFactor,
                                          java.lang.String levels,
                                          int numLevels)
Create a new encoded polyline. See Encoded Polylines Documentation for more details.

Parameters:
points - a string containing the encoded latitude and longitude coordinates.
zoomFactor - the magnification between adjacent sets of zoom levels in the encoded string passed in the levels argument.
levels - a string containing the encoded polyline zoom level groups.
numLevels - is the number of zoom levels contained in the string passed to setLevels(String).
Returns:
a new encoded polyline object.

newInstance

public static EncodedPolyline newInstance(java.lang.String points,
                                          int zoomFactor,
                                          java.lang.String levels,
                                          int numLevels,
                                          java.lang.String color,
                                          int weight,
                                          double opacity)
Create a new encoded polyline. See Encoded Polylines Documentation for more details.

Parameters:
points - a string containing the encoded latitude and longitude coordinates.
zoomFactor - the magnification between adjacent sets of zoom levels in the encoded string passed in the levels argument.
levels - a string containing the encoded polyline zoom level groups.
numLevels - a string containing the encoded polyline zoom level groups.
color - a string that contains a hexadecimal numeric HTML style, i.e. #RRGGBB
weight - the width of the line in pixels. opacity is a number between 0 and 1.
opacity - a number between 0 and 1.0 where 1.0 is totally opaque.
Returns:
a new encoded polyline object.

setColor

public void setColor(java.lang.String colorIn)
Sets the color of the Polyline.

Parameters:
colorIn - a string that contains a hexadecimal numeric HTML style, i.e. #RRGGBB

setLevels

public void setLevels(java.lang.String levelsIn)
Sets the zoom level groups for this polyline. See Encoded Polylines Documentation for more details.

Parameters:
levelsIn - a string containing the encoded polyline zoom level groups.

setNumLevels

public void setNumLevels(int numLevelsIn)
Set the number of zoom levels in the string passed to setLevels(String).

Parameters:
numLevelsIn - is the number of zoom levels contained in the string passed to setLevels(String).

setOpacity

public void setOpacity(double opacityIn)
Sets the opacity of the polyline.

Parameters:
opacityIn - a number between 0 and 1.0 where 1.0 is totally opaque.

setPoints

public void setPoints(java.lang.String pointsIn)
Set the list of encoded latitude and longitude coordinates. See Encoded Polylines Documentation for more details.

Parameters:
pointsIn - a string containing the encoded latitude and longitude coordinates.

setWeight

public void setWeight(int weightIn)
Sets the weight of the polyline.

Parameters:
weightIn - the width of the line in pixels. opacity is a number between 0 and 1.

setZoomFactor

public void setZoomFactor(int zoomFactorIn)
Sets the magnification between adjacent sets of zoom levels in the encoded levels string.

Parameters:
zoomFactorIn - the magnification between adjacent sets of zoom levels in the encoded string passed to setLevels(String).