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

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

public class PolyStyleOptions
extends com.google.gwt.core.client.JavaScriptObject

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, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolyStyleOptions

protected PolyStyleOptions()
Method Detail

getInstance

public static PolyStyleOptions getInstance()
Creates a new PolyStyleOptions object.


getInstance

public static PolyStyleOptions getInstance(int weightInPixels)
Create a new PolyStyleOptions object.

Parameters:
weightInPixels - the width of the line to create.

newInstance

public static PolyStyleOptions newInstance(java.lang.String colorSpec)
Create a new PolyStyleOptions object.

Parameters:
colorSpec - color of the line. See setColor(String) for the format of the string.

newInstance

public static PolyStyleOptions newInstance(java.lang.String colorSpec,
                                           int weightInPixels,
                                           double opacity)
Create a PolyStyleOptions object. Used as a parameter to the Polyline constructor.

Parameters:
weightInPixels - the width of the line to create.
colorSpec - color of the line. See setColor(String) for the format of the string.

setColor

public final void setColor(java.lang.String colorSpec)
Specifies a string that contains a hexadecimal numeric HTML style, i.e. #RRGGBB.

Parameters:
colorSpec - specifies a color in hex format.

setOpacity

public final void setOpacity(double opacity)
Specifies the opacity of the polyline.

Parameters:
opacity - specifies the opacity of the polyline as a fractional value between 0 (transparent) and 1 (opaque).

setWeight

public final void setWeight(int weightInPixels)
Specifies the width of the line in pixels.

Parameters:
weightInPixels - specifies the width of the line in pixels.