|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.google.gwt.maps.client.overlay.EncodedPolyline
public class EncodedPolyline
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, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected EncodedPolyline()
| Method Detail |
|---|
public static EncodedPolyline newInstance()
public static final EncodedPolyline newInstance(java.lang.String points,
int zoomFactor,
java.lang.String levels,
int numLevels)
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).
public static final EncodedPolyline newInstance(java.lang.String points,
int zoomFactor,
java.lang.String levels,
int numLevels,
java.lang.String color,
int weight,
double opacity)
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.
#RRGGBBweight - 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.
public final void setColor(java.lang.String colorIn)
Polyline.
colorIn - a string that contains a hexadecimal numeric HTML style,
i.e. #RRGGBBpublic final void setLevels(java.lang.String levelsIn)
levelsIn - a string containing the encoded polyline zoom level groups.public final void setNumLevels(int numLevelsIn)
setLevels(String).
numLevelsIn - is the number of zoom levels contained in the string
passed to setLevels(String).public final void setOpacity(double opacityIn)
opacityIn - a number between 0 and 1.0 where 1.0 is totally opaque.public final void setPoints(java.lang.String pointsIn)
pointsIn - a string containing the encoded latitude and longitude
coordinates.public final void setWeight(int weightIn)
weightIn - the width of the line in pixels. opacity is a number
between 0 and 1.public final void setZoomFactor(int zoomFactorIn)
zoomFactorIn - the magnification between adjacent sets of zoom levels
in the encoded string passed to setLevels(String).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||