Packagecom.bmap.overlay
Classpublic class PointFeature
InheritancePointFeature Inheritance AbstractFilled Inheritance AbstractStroke Inheritance Feature Inheritance flash.display.Sprite

概述:地图中点的绘制,可以使用bitmap绘制也可以是graphics绘制 使用AzriMap中的方法



Public Properties
 PropertyDefined By
 InheritedB_Dot : Dot
[read-only]
Feature
  data : Point
PointFeature
 InheriteddoubleClickTime : int = 300
[static] 双击判定时间
Feature
 InheritedfeatureStyle : FeatureStyle
Feature
 Inheritedgraphics : Graphics
[override] [read-only]
Feature
 Inheritedgroup : RadioGroup
[write-only] 设置所在的互斥组
Feature
  height : Number
[override]
PointFeature
 InheritedisDraging : Boolean
[read-only] 组件是否处于拖动过程中
Feature
 InheriteditemValue : String
[read-only]
Feature
 Inheritedlayer : INormalLayer
[read-only]
Feature
 InheritedLB_Dot : Dot
[read-only]
Feature
 InheritedL_Dot : Dot
[read-only]
Feature
 InheritedLT_Dot : Dot
[read-only]
Feature
 InheritedmaxViewLevel : int = 19
在小于该级别的缩放时才显示
Feature
 InheritedminViewLevel : int = 3
在大于该级别的缩放时才显示
Feature
 InheritedoffsetPoint : Point
Feature
 InheritedoffsetX : Number = 0
Feature
 InheritedoffsetY : Number = 0
Feature
 InheritedRB_Dot : Dot
[read-only]
Feature
 InheritedR_Dot : Dot
[read-only]
Feature
 Inheritedroad : Bitmap
Feature
 InheritedRT_Dot : Dot
[read-only]
Feature
  scaleX : Number
[override]
PointFeature
  scaleY : Number
[override]
PointFeature
 Inheritedselected : Boolean
是否被选中
Feature
 Inheritedsnapshot : BitmapData
Feature
 Inheritedstatus : String
[override]
AbstractStroke
 InheritedT_Dot : Dot
[read-only]
Feature
  width : Number
[override]
PointFeature
Protected Properties
 PropertyDefined By
 Inherited$height : Number
AbstractFilled
 Inherited$width : Number
AbstractFilled
 InheriteddragDirection : String
拖动矩形框时的一个标示,2个字符,第一个字符标示x的变化方向,第二个字符标示 y的变化方向 T:拉动矩形下边的点 B :拉动矩形上面的点 L:拉动矩形右面的点 R:拉动矩形左面的点
Feature
 InheriteddragingDot : Dot
正在拖动的注册点
Feature
 InheriteddragingDotLocalX : Number = 0
鼠标按下时的横坐标
Feature
 InheriteddragingDotLocalY : Number = 0
鼠标按下时的纵坐标
Feature
 InheritedisAdd : Boolean
是否添加到舞台
Feature
 InheritedisClose : Boolean
[override] [read-only]
AbstractFilled
 Inheritedls : LineStyle
Feature
 InheritednormalDotList : Array
注册点列表(外接矩形除外)
AbstractStroke
 Inheritedrb : BitmapData
Feature
  useRect : Boolean
[override] [read-only]
PointFeature
  useRotation : Boolean
[override] [read-only]
PointFeature
  useTemp : Boolean
[override] [read-only]
PointFeature
Public Methods
 MethodDefined By
  
PointFeature(layer:INormalLayer, value:Point = null, featureStyle:PointFeatureStyle = null)
点类型
PointFeature
 Inherited
addPoint(... point):void
添加点
AbstractStroke
 Inherited
addPointAt(p:Point, index:int = 0):void
在指定位置添加点
AbstractStroke
 Inherited
addPointAtLocal(tx:Number, ty:Number, index:int = -1, dimension:int = 0):void
根据坐标添加点
AbstractStroke
  
changeShape(type:String):void
更新外形
PointFeature
 Inherited
changPointArray(pointArray:Object):void
一次改变线或者面中的所有点
Feature
 Inherited
destroy():void
[override]
AbstractFilled
  
draw():void
[override]
PointFeature
 Inherited
getBound():Rectangle
Feature
 Inherited
Feature
  
getPointByLngLat(lngLat:LngLat):Point
[override]
PointFeature
 Inherited
Feature
 Inherited
getStyleByLineType(value:String):Array
AbstractStroke
 Inherited
hideRect():void
隐藏外接矩形
Feature
 Inherited
move(offsetPoint:Point):void
Feature
  
registerShape(type:String, fun:Function):void
注册外形
PointFeature
 Inherited
showRect():void
显示外接矩形
Feature
Protected Methods
 MethodDefined By
 Inherited
addDot(... dot):void
添加注册点(不限类型) ,同时将点的经纬度添加进去
Feature
  
addedToStageHandler(event:Event):void
[override]
PointFeature
 Inherited
Feature
  
changeData():void
[override]
PointFeature
 Inherited
createNormalDot(index:int = -1):Dot
创建标准注册点
AbstractStroke
 Inherited
dotDragingHandler(event:MouseEvent):void
[override]
AbstractStroke
 Inherited
dotDragStopHandler(event:MouseEvent):void
Dot 拖动结束
Feature
 Inherited
dotMouseDownHandler(event:MouseEvent):void
鼠标在注册点上按下时,开始拖动
Feature
  
[override]
PointFeature
 Inherited
getSource(value:Object):BitmapData
AbstractFilled
 Inherited
内部控制点拖动过程中执行的动作
AbstractStroke
 Inherited
mouseDownHandler(event:MouseEvent):void
Feature
 Inherited
mouseMoveHandler(event:MouseEvent):void
Feature
 Inherited
mouseUpHandler(event:MouseEvent):void
Feature
 Inherited
渲染之后刷新外接矩形
Feature
 Inherited
移除所有标准注册点(清空normalDotList)
AbstractStroke
 Inherited
移除注册点,不限类型
Feature
 Inherited
Feature
 Inherited
移除标准注册点(normalDotList中的),外接矩形上的除外
AbstractStroke
 Inherited
render():void
[override]
AbstractFilled
 Inherited
startDraw(roadDataList:Vector.<Point>):void
Feature
 Inherited
updateRect(bound:Rectangle):void
执行更新外接矩形框
Feature
 Inherited
updateSize():void
AbstractFilled
Events
 Event Summary Defined By
 Inherited绘制完成时触发Feature
 Inherited绘制开始时触发Feature
Property Detail
dataproperty
data:Point


Implementation
    public function get data():Point
    public function set data(value:Point):void
heightproperty 
height:Number[override]


Implementation
    public function get height():Number
    public function set height(value:Number):void
scaleXproperty 
scaleX:Number[override]


Implementation
    public function get scaleX():Number
    public function set scaleX(value:Number):void
scaleYproperty 
scaleY:Number[override]


Implementation
    public function get scaleY():Number
    public function set scaleY(value:Number):void
useRectproperty 
useRect:Boolean  [read-only] [override]


Implementation
    protected function get useRect():Boolean
useRotationproperty 
useRotation:Boolean  [read-only] [override]


Implementation
    protected function get useRotation():Boolean
useTempproperty 
useTemp:Boolean  [read-only] [override]


Implementation
    protected function get useTemp():Boolean
widthproperty 
width:Number[override]


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
PointFeature()Constructor
public function PointFeature(layer:INormalLayer, value:Point = null, featureStyle:PointFeatureStyle = null)

点类型

Parameters
layer:INormalLayer
 
value:Point (default = null)
 
featureStyle:PointFeatureStyle (default = null)
Method Detail
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 
override public function getPointByLngLat(lngLat:LngLat):Point

Parameters

lngLat:LngLat

Returns
Point
registerShape()method 
public function registerShape(type:String, fun:Function):void

注册外形

Parameters

type:String
 
fun:Function