com.supermap.web.actions
public class DrawCircle
继承 DrawCircle Inheritance DrawAction Inheritance MapAction Inheritance flash.events.EventDispatcher

绘圆操作.

该类用于实现通过鼠标在地图中绘制圆的操作。用户可以使用系统提供的预定义风格 PredefinedFillStyle 填充圆的风格;同时也可以继承 FillStyle 类自定义圆的填充风格。



公共属性
  属性 定义方
  Inherited map : Map
获取或设置与交互操作绑定的地图控件。
MapAction
  Inherited snap : Snap
获取或设置捕捉参数类。(SuperMap iServer 7.0及以上版本支持)
DrawAction
  Inherited style : Style
获取或设置绘制的要素样式。
DrawAction
受保护的属性
  属性 定义方
  Inherited actionStarted : Boolean = false
标识绘图操作是否已开始。
DrawAction
  Inherited _cursorClass : Class
MapAction
  Inherited _cursorID : int
MapAction
  Inherited _cursorXOffset : Number = 0
MapAction
  Inherited _cursorYOffset : Number = 0
MapAction
  Inherited drawFeature : Feature = null
最终用于显示的要素。与 tempFeature 相同,通过监听 DrawEvent.DrawEnd 事件获取。
DrawAction
  Inherited _isMouseOut : Boolean
MapAction
  Inherited tempFeature : Feature = null
用户绘制的要素。
DrawAction
  Inherited tempLayer : FeaturesLayer
临时图层,用于存储用户绘制过的要素 tempFeature。.
DrawAction
公共方法
  方法 定义方
   
初始化 DrawCircle 类的新实例。
DrawCircle
  Inherited
MapAction
  Inherited
setCursor(value:Class, xOffset:Number = 0, yOffset:Number = 0):void
定义鼠标样式的类对象。
MapAction
受保护的方法
  方法 定义方
  Inherited
endDraw(endPoint:Point2D = null):void
矢量要素绘制完成时调用该函数。在此函数中系统会派发 DrawEvent.DRAW_END 事件,用户若要获取绘制的要素 Feature 对象,通过 DrawAction 对象监听 DrawEvent.DRAW_END 事件即可。
DrawAction
  Inherited
onMouseClick(event:MouseEvent):void
MouseEvent.CLICK 事件的侦听函数。
MapAction
  Inherited
onMouseDoubleClick(event:MouseEvent):void
MouseEvent.DOUBLE_CLICK 事件的侦听函数。
MapAction
   
onMouseDown(event:MouseEvent):void
[Override] MouseEvent.MOUSE_DOWN 事件的侦听函数。
DrawCircle
   
onMouseMove(event:MouseEvent):void
[Override] MouseEvent.MOUSE_MOVE 事件的侦听函数。
DrawCircle
  Inherited
onMouseOut(event:MouseEvent):void
MouseEvent.MOUSE_OUT 事件的侦听函数。
MapAction
  Inherited
onMouseOver(event:MouseEvent):void
MouseEvent.MOUSE_OVER 事件的侦听函数。
MapAction
   
onMouseUp(event:MouseEvent):void
[Override] MouseEvent.MOUSE_UP 事件的侦听函数。
DrawCircle
  Inherited
startDraw(startPoint:Point2D = null):void
矢量要素绘制开始时调用该函数。在此函数中会派发 DrawEvent.DRAW_START 事件。
DrawAction
  Inherited
转变矢量要素绘制类型时调用该函数。
DrawAction
构造函数详细信息
DrawCircle () 构造函数
public function DrawCircle(map:Map)

初始化 DrawCircle 类的新实例。

参数
map:Map — 与绘图操作关联的地图控件。
方法详细描述
onMouseDown () 方法
override protected function onMouseDown(event:MouseEvent):void

MouseEvent.MOUSE_DOWN 事件的侦听函数。

参数

event:MouseEvent

onMouseMove () 方法  
override protected function onMouseMove(event:MouseEvent):void

MouseEvent.MOUSE_MOVE 事件的侦听函数。

参数

event:MouseEvent

onMouseUp () 方法  
override protected function onMouseUp(event:MouseEvent):void

MouseEvent.MOUSE_UP 事件的侦听函数。

参数

event:MouseEvent