Package | com.bmap.overlay |
Class | public class PointFeature |
Inheritance | PointFeature ![]() ![]() ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | B_Dot : Dot [read-only] | Feature | |
data : Point | PointFeature | ||
![]() | doubleClickTime : int = 300 [static] 双击判定时间 | Feature | |
![]() | featureStyle : FeatureStyle | Feature | |
![]() | graphics : Graphics [override] [read-only] | Feature | |
![]() | group : RadioGroup [write-only]
设置所在的互斥组
| Feature | |
height : Number [override] | PointFeature | ||
![]() | isDraging : Boolean [read-only]
组件是否处于拖动过程中
| Feature | |
![]() | itemValue : String [read-only] | Feature | |
![]() | layer : INormalLayer [read-only] | Feature | |
![]() | LB_Dot : Dot [read-only] | Feature | |
![]() | L_Dot : Dot [read-only] | Feature | |
![]() | LT_Dot : Dot [read-only] | Feature | |
![]() | maxViewLevel : int = 19 在小于该级别的缩放时才显示 | Feature | |
![]() | minViewLevel : int = 3 在大于该级别的缩放时才显示 | Feature | |
![]() | offsetPoint : Point | Feature | |
![]() | offsetX : Number = 0 | Feature | |
![]() | offsetY : Number = 0 | Feature | |
![]() | RB_Dot : Dot [read-only] | Feature | |
![]() | R_Dot : Dot [read-only] | Feature | |
![]() | road : Bitmap | Feature | |
![]() | RT_Dot : Dot [read-only] | Feature | |
scaleX : Number [override] | PointFeature | ||
scaleY : Number [override] | PointFeature | ||
![]() | selected : Boolean
是否被选中
| Feature | |
![]() | snapshot : BitmapData | Feature | |
![]() | status : String [override] | AbstractStroke | |
![]() | T_Dot : Dot [read-only] | Feature | |
width : Number [override] | PointFeature |
Property | Defined By | ||
---|---|---|---|
![]() | $height : Number | AbstractFilled | |
![]() | $width : Number | AbstractFilled | |
![]() | dragDirection : String 拖动矩形框时的一个标示,2个字符,第一个字符标示x的变化方向,第二个字符标示
y的变化方向
T:拉动矩形下边的点 B :拉动矩形上面的点
L:拉动矩形右面的点 R:拉动矩形左面的点 | Feature | |
![]() | dragingDot : Dot 正在拖动的注册点 | Feature | |
![]() | dragingDotLocalX : Number = 0 鼠标按下时的横坐标 | Feature | |
![]() | dragingDotLocalY : Number = 0 鼠标按下时的纵坐标 | Feature | |
![]() | isAdd : Boolean 是否添加到舞台 | Feature | |
![]() | isClose : Boolean [override] [read-only] | AbstractFilled | |
![]() | ls : LineStyle | Feature | |
![]() | normalDotList : Array 注册点列表(外接矩形除外) | AbstractStroke | |
![]() | rb : BitmapData | Feature | |
useRect : Boolean [override] [read-only] | PointFeature | ||
useRotation : Boolean [override] [read-only] | PointFeature | ||
useTemp : Boolean [override] [read-only] | PointFeature |
Method | Defined By | ||
---|---|---|---|
点类型
| PointFeature | ||
![]() | addPoint(... point):void
添加点
| AbstractStroke | |
![]() | addPointAt(p:Point, index:int = 0):void
在指定位置添加点
| AbstractStroke | |
![]() | addPointAtLocal(tx:Number, ty:Number, index:int = -1, dimension:int = 0):void
根据坐标添加点
| AbstractStroke | |
changeShape(type:String):void
更新外形
| PointFeature | ||
![]() | changPointArray(pointArray:Object):void
一次改变线或者面中的所有点
| Feature | |
![]() | destroy():void [override] | AbstractFilled | |
draw():void [override] | PointFeature | ||
![]() | getBound():Rectangle | Feature | |
![]() | Feature | ||
getPointByLngLat(lngLat:LngLat):Point [override] | PointFeature | ||
![]() | getPointByLngLatDrawContent(lngLat:LngLat):Point | Feature | |
![]() | getStyleByLineType(value:String):Array | AbstractStroke | |
![]() | hideRect():void
隐藏外接矩形
| Feature | |
![]() | move(offsetPoint:Point):void | Feature | |
registerShape(type:String, fun:Function):void
注册外形
| PointFeature | ||
![]() | showRect():void
显示外接矩形
| Feature |
Method | Defined By | ||
---|---|---|---|
![]() | addDot(... dot):void
添加注册点(不限类型) ,同时将点的经纬度添加进去
| Feature | |
addedToStageHandler(event:Event):void [override] | PointFeature | ||
![]() | addInnerPoints():void | Feature | |
changeData():void [override] | PointFeature | ||
![]() | createNormalDot(index:int = -1):Dot
创建标准注册点
| AbstractStroke | |
![]() | dotDragingHandler(event:MouseEvent):void [override] | AbstractStroke | |
![]() | dotDragStopHandler(event:MouseEvent):void
Dot 拖动结束
| Feature | |
![]() | dotMouseDownHandler(event:MouseEvent):void
鼠标在注册点上按下时,开始拖动
| Feature | |
drawContent():void [override] | PointFeature | ||
![]() | getSource(value:Object):BitmapData | AbstractFilled | |
![]() | innerDotDraging():void
内部控制点拖动过程中执行的动作
| AbstractStroke | |
![]() | mouseDownHandler(event:MouseEvent):void | Feature | |
![]() | mouseMoveHandler(event:MouseEvent):void | Feature | |
![]() | mouseUpHandler(event:MouseEvent):void | Feature | |
![]() | refreshRectAtRender():void
渲染之后刷新外接矩形
| Feature | |
![]() | removeAllNormalDot():void
移除所有标准注册点(清空normalDotList)
| AbstractStroke | |
![]() |
移除注册点,不限类型
| Feature | |
![]() | removeInnerPoints():void | Feature | |
![]() |
移除标准注册点(normalDotList中的),外接矩形上的除外
| AbstractStroke | |
![]() | render():void [override] | AbstractFilled | |
![]() | startDraw(roadDataList:Vector.<Point>):void | Feature | |
![]() | updateRect(bound:Rectangle):void
执行更新外接矩形框
| Feature | |
![]() | updateSize():void | AbstractFilled |
data | property |
data:Point
public function get data():Point
public function set data(value:Point):void
height | property |
height:Number
[override] public function get height():Number
public function set height(value:Number):void
scaleX | property |
scaleX:Number
[override] public function get scaleX():Number
public function set scaleX(value:Number):void
scaleY | property |
scaleY:Number
[override] public function get scaleY():Number
public function set scaleY(value:Number):void
useRect | property |
useRect:Boolean
[read-only] [override] protected function get useRect():Boolean
useRotation | property |
useRotation:Boolean
[read-only] [override] protected function get useRotation():Boolean
useTemp | property |
useTemp:Boolean
[read-only] [override] protected function get useTemp():Boolean
width | property |
width:Number
[override] public function get width():Number
public function set width(value:Number):void
PointFeature | () | Constructor |
public function PointFeature(layer:INormalLayer, value:Point = null, featureStyle:PointFeatureStyle = null)
点类型
Parameterslayer:INormalLayer | |
value:Point (default = null )
| |
featureStyle:PointFeatureStyle (default = null )
|
addedToStageHandler | () | method |
override protected function addedToStageHandler(event:Event):void
Parameters
event:Event |
changeData | () | method |
override protected function changeData():void
changeShape | () | method |
public function changeShape(type:String):void
更新外形
Parameters
type:String |
draw | () | method |
override public function draw():void
drawContent | () | method |
override protected function drawContent():void
getPointByLngLat | () | method |
registerShape | () | method |
public function registerShape(type:String, fun:Function):void
注册外形
Parameters
type:String | |
fun:Function |