|
|||||||||
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.PolyStyleOptions
public class PolyStyleOptions
Options to pass to the Polyline
drawing routines.
Constructor Summary | |
---|---|
protected |
PolyStyleOptions()
|
Method Summary | |
---|---|
static PolyStyleOptions |
getInstance()
Creates a new PolyStyleOptions object. |
static PolyStyleOptions |
getInstance(int weightInPixels)
Create a new PolyStyleOptions object. |
static PolyStyleOptions |
newInstance(java.lang.String colorSpec)
Create a new PolyStyleOptions object. |
static PolyStyleOptions |
newInstance(java.lang.String colorSpec,
int weightInPixels,
double opacity)
Create a PolyStyleOptions object. |
void |
setColor(java.lang.String colorSpec)
Specifies a string that contains a hexadecimal numeric HTML style, i.e. |
void |
setOpacity(double opacity)
Specifies the opacity of the polyline. |
void |
setWeight(int weightInPixels)
Specifies the width of the line in pixels. |
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 PolyStyleOptions()
Method Detail |
---|
public static PolyStyleOptions getInstance()
public static PolyStyleOptions getInstance(int weightInPixels)
weightInPixels
- the width of the line to create.public static PolyStyleOptions newInstance(java.lang.String colorSpec)
colorSpec
- color of the line. See setColor(String)
for the
format of the string.public static PolyStyleOptions newInstance(java.lang.String colorSpec, int weightInPixels, double opacity)
Polyline
constructor.
weightInPixels
- the width of the line to create.colorSpec
- color of the line. See setColor(String)
for the
format of the string.public final void setColor(java.lang.String colorSpec)
colorSpec
- specifies a color in hex format.public final void setOpacity(double opacity)
opacity
- specifies the opacity of the polyline as a fractional value
between 0 (transparent) and 1 (opaque).public final void setWeight(int weightInPixels)
weightInPixels
- specifies the width of the line in pixels.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |