public class Symbol extends MapObject
Modifier and Type | Class and Description |
---|---|
protected static class |
Symbol.Property |
Constructor and Description |
---|
Symbol()
Creates new Symbol object
|
Symbol(Map map)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Point |
getAnchor()
Returns value of anchor property.
|
java.lang.String |
getFillColor()
Returns value of fillColor property.
|
double |
getFillOpacity()
Returns value of fillOpacity property.
|
Point |
getLabelOrigin()
Returns value of labelOrigin property.
|
java.lang.String |
getPath()
Returns value of path property.
|
double |
getRotation()
Returns value of rotation property.
|
double |
getScale()
Returns value of scale property.
|
java.lang.String |
getStrokeColor()
Returns value of strokeColor property.
|
double |
getStrokeOpacity()
Returns value of strokeOpacity property.
|
double |
getStrokeWeight()
Returns value of strokeWeight property.
|
void |
setAnchor(Point value)
Sets new value for anchor property.
|
void |
setFillColor(java.lang.String value)
Sets new value for fillColor property.
|
void |
setFillOpacity(double value)
Sets new value for fillOpacity property.
|
void |
setLabelOrigin(Point value)
Sets new value for labelOrigin property.
|
void |
setPath(StandardSymbol value)
Sets new value for path property.
|
void |
setPath(java.lang.String value)
Sets new value for path property.
|
void |
setRotation(double value)
Sets new value for rotation property.
|
void |
setScale(double value)
Sets new value for scale property.
|
void |
setStrokeColor(java.lang.String value)
Sets new value for strokeColor property.
|
void |
setStrokeOpacity(double value)
Sets new value for strokeOpacity property.
|
void |
setStrokeWeight(double value)
Sets new value for strokeWeight property.
|
addEventListener, attachObject, cacheProperties, cacheProperties, clone, createJSValue, dispose, fromJSValue, getJSObject, getMap, getProperties, invokeMethod, propertyChanged, removeEventListener, updateProperty
public Symbol()
@Deprecated public Symbol(Map map)
map
- owner Map objectpublic Point getAnchor()
Contains the position of the symbol relative to the marker or polyline. The coordinates of the symbol's path are translated left and up by the anchor's x and y coordinates respectively. By default, a symbol is anchored at (0, 0). The position is expressed in the same coordinate system as the symbol's path.
setAnchor(com.teamdev.jxmaps.Point)
public void setAnchor(Point value)
value
- new property valuegetAnchor()
public Point getLabelOrigin()
Contains the origin of the label relative to the origin of the path, if label is supplied by the marker. By default, the origin is located at (0, 0). The origin is expressed in the same coordinate system as the symbol's path. This property is unused for symbols on polylines.
setLabelOrigin(com.teamdev.jxmaps.Point)
public void setLabelOrigin(Point value)
value
- new property valuegetLabelOrigin()
public java.lang.String getFillColor()
Contains the symbol's fill color. All CSS3 colors are supported except for extended named colors. For symbol markers, this defaults to 'black'. For symbols on polylines, this defaults to the stroke color of the corresponding polyline.
setFillColor(java.lang.String)
public void setFillColor(java.lang.String value)
value
- new property valuegetFillColor()
public java.lang.String getStrokeColor()
Contains the symbol's stroke color. All CSS3 colors are supported except for extended named colors. For symbol markers, this defaults to 'black'. For symbols on a polyline, this defaults to the stroke color of the polyline.
setStrokeColor(java.lang.String)
public void setStrokeColor(java.lang.String value)
value
- new property valuegetStrokeColor()
public java.lang.String getPath()
Contains the symbol's path, which is a built-in symbol path, or a custom path expressed using SVG path notation. Required.
setPath(java.lang.String)
public void setPath(java.lang.String value)
value
- new property valuegetPath()
public void setPath(StandardSymbol value)
value
- new property valuegetPath()
public double getFillOpacity()
Contains the symbol's fill opacity. Defaults to 0.
setFillOpacity(double)
public void setFillOpacity(double value)
value
- new property valuegetFillOpacity()
public double getRotation()
Contains the angle by which to rotate the symbol, expressed clockwise in degrees. Defaults to 0. A symbol in an IconSequence where fixedRotation is false is rotated relative to the angle of the edge on which it lies.
setRotation(double)
public void setRotation(double value)
value
- new property valuegetRotation()
public double getScale()
Contains the amount by which the symbol is scaled in size. For symbol markers, this defaults to 1; after scaling, the symbol may be of any size. For symbols on a polyline, this defaults to the stroke weight of the polyline; after scaling, the symbol must lie inside a square 22 pixels in size centered at the symbol's anchor.
setScale(double)
public void setScale(double value)
value
- new property valuegetScale()
public double getStrokeOpacity()
Contains the symbol's stroke opacity. For symbol markers, this defaults to 1. For symbols on a polyline, this defaults to the stroke opacity of the polyline.
setStrokeOpacity(double)
public void setStrokeOpacity(double value)
value
- new property valuegetStrokeOpacity()
public double getStrokeWeight()
Contains the symbol's stroke weight. Defaults to the scale of the symbol.
setStrokeWeight(double)
public void setStrokeWeight(double value)
value
- new property valuegetStrokeWeight()