public class Symbol extends JavaScriptObject
| Modifier | Constructor and Description |
|---|---|
protected |
Symbol()
A symbol that can be draw on
Polyline |
| Modifier and Type | Method and Description |
|---|---|
Point |
getAnchor()
Gets The position of the symbol relative to the marker or polyline
|
String |
getFillColor()
Get the symbol's fill color.
|
double |
getFillOpacity()
Get the symbol's fill opacity.
|
String |
getPath()
Get the symbol's path in SVN Path Notation.
|
double |
getRotation()
Get the symbol's path in SVN Path Notation.
|
double |
getScale()
Gets the amount by which the symbol is scaled in size.
|
String |
getStrokeColor()
Gets the symbol's stroke color.
|
double |
getStrokeOpacity()
Gets the symbol's stroke opacity.
|
int |
getStrokeWeight()
Get the symbol's stroke weight.
|
static Symbol |
newInstance(String svgPath,
double scale)
A symbol that can be draw on
Polyline |
static Symbol |
newInstance(SymbolPath symbolPath,
double scale)
A symbol that can be draw on
Polyline |
void |
setAnchor(Point anchor)
Sets the position of the symbol relative to the marker or polyline.
|
void |
setFillColor(String fillColor)
Sets the symbol's fill color.
|
void |
setFillOpacity(double fillOpacity)
Sets the symbol's fill opacity.
|
void |
setPath(String path)
Set the symbol's path to a custom path expressed using SVG path
notation.
|
void |
setPath(SymbolPath symbolPath)
Set the symbol's path to a built-in symbol path.
|
void |
setRotation(double rotation)
Set the angle by which to rotate the symbol, expressed clockwise in
degrees.
|
void |
setScale(double scale)
Sets the amount by which the symbol is scaled in size.
|
void |
setStrokeColor(String strokeColor)
Sets the symbol's stroke color.
|
void |
setStrokeOpacity(double strokeOpacity)
Sets the symbol's stroke opacity.
|
void |
setStrokeWeight(int strokeWeight)
Set the symbol's stroke weight.
|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toStringprotected Symbol()
Polylinepublic static final Symbol newInstance(SymbolPath symbolPath, double scale)
PolylinesymbolPath - predefined SymbolPath pathscale - value relative to 1.public static final Symbol newInstance(String svgPath, double scale)
PolylinesvgPath - path in SVG path
notationscale - value relative to 1.public final void setAnchor(Point anchor)
(0, 0). The position is expressed in the same
coordinate system as the symbol's pathanchor - public final Point getAnchor()
public final void setPath(SymbolPath symbolPath)
symbolPath - public final void setPath(String path)
path - public final String getPath()
public final void setRotation(double rotation)
0. A symbol in an IconSequence
where fixedRotation is false is rotated
relative to the angle of the edge on which it lies.rotation - public final double getRotation()
public final void setFillColor(String fillColor)
fillColor - public final String getFillColor()
public final void setFillOpacity(double fillOpacity)
fillOpacity - public final double getFillOpacity()
public final void setScale(double scale)
scaledSize - public final double getScale()
public final void setStrokeColor(String strokeColor)
'black'
. For symbols on a polyline, this defaults to the stroke color of
the polyline.strokeColor - public final String getStrokeColor()
public final void setStrokeOpacity(double strokeOpacity)
strokeOpacity - public final double getStrokeOpacity()
public final void setStrokeWeight(int strokeWeight)
strokeWeight - public final int getStrokeWeight()
Copyright © 2011-2014 GWT Maps API V3. All Rights Reserved.