| Package | com.esri.ags.symbol |
| Class | public class Symbol |
| Inheritance | Symbol flash.events.EventDispatcher |
| Subclasses | CompositeSymbol, FillSymbol, InfoSymbol, LineSymbol, MarkerSymbol, TextSymbol |
| Method | Defined by | ||
|---|---|---|---|
|
Symbol()
Creates a new Symbol.
| Symbol | ||
|
clear(sprite:Sprite):void
Clears the graphics that were drawn to the sprite object.
| Symbol | ||
|
destroy(sprite:Sprite):void
Removes all the graphics that were drawn to the sprite object and resets its properties.
| Symbol | ||
|
Draw the graphics on the sprite object.
| Symbol | ||
| Method | Defined by | ||
|---|---|---|---|
|
dispatchEventChange():void
Helper function to dispatch a change event.
| Symbol | ||
|
removeAllChildren(sprite:Sprite):void
Removes all children from the sprite object.
| Symbol | ||
|
Converts the x-coordinate of map point to a screen point.
| Symbol | ||
|
Converts the y-coordinate of map point to a screen point.
| Symbol | ||
| Symbol | () | constructor |
public function Symbol()Creates a new Symbol.
| clear | () | method |
public function clear(sprite:Sprite):voidClears the graphics that were drawn to the sprite object.
Parameterssprite:Sprite — The sprite to be cleared.
|
| destroy | () | method |
public function destroy(sprite:Sprite):voidRemoves all the graphics that were drawn to the sprite object and resets its properties.
Parameterssprite:Sprite — The sprite to be destroyed.
|
| dispatchEventChange | () | method |
protected function dispatchEventChange():voidHelper function to dispatch a change event. The change event causes the graphic to redraw.
| draw | () | method |
public function draw(sprite:Sprite, geometry:Geometry, attributes:Object, map:Map):voidDraw the graphics on the sprite object.
Parameterssprite:Sprite — The Sprite object on which the symbol is drawn.
|
|
geometry:Geometry — The Geometry of the associated graphic.
|
|
attributes:Object — The Attributes of the associated graphic.
|
|
map:Map — The Map to set the location of the sprite object.
|
| removeAllChildren | () | method |
protected function removeAllChildren(sprite:Sprite):voidRemoves all children from the sprite object.
Parameterssprite:Sprite — The sprite object whose children have to be removed.
|
| toScreenX | () | method |
protected function toScreenX(map:Map, mapX:Number):NumberConverts the x-coordinate of map point to a screen point.
Parametersmap:Map — The Map.
|
|
mapX:Number — The x-coordinate of the map point to convert.
|
Number — The x-coordinate in screen coordinates.
|
| toScreenY | () | method |
protected function toScreenY(map:Map, mapY:Number):NumberConverts the y-coordinate of map point to a screen point.
Parametersmap:Map — The Map.
|
|
mapY:Number — The y-coordinate of the map point to convert.
|
Number — The y-coordinate in screen coordinates.
|