Package | net.systemeD.halcyon |
Class | public class WayUI |
Inheritance | WayUI ![]() |
Property | Defined by | ||
---|---|---|---|
centroid_x : Number X coord of the centre of the area
| WayUI | ||
centroid_y : Number Y coord of the centre of the area
| WayUI | ||
drawExcept : Number vertex to draw exclusively, or not at all (used by DragWayNode)
| WayUI | ||
drawOnly : Number "
| WayUI | ||
heading : Array Angle at each node
| WayUI | ||
![]() | interactive : Boolean = true Does object respond to clicks?
| EntityUI | |
nameformat : TextFormat | WayUI | ||
![]() | paint : MapPaint
Reference to parent MapPaint
| EntityUI | |
patharea : Number Area of the way
| WayUI | ||
pathlength : Number Total length of way
| WayUI | ||
![]() | purgable : Boolean = true Can it be deleted when offscreen?
| EntityUI |
Method | Defined by | ||
---|---|---|---|
WayUI | |||
![]() |
applyStateClasses(tags:Object):Object
applies the state classes (eg :hover, :area) for this entityUI to the given list of 'real' tags.
| EntityUI | |
doRedraw():Boolean
Go through the complex process of drawing this way, including applying styles, casings, fills, fonts...
| WayUI | ||
WayUI | |||
WayUI | |||
![]() |
invalidateStyleList():void
| EntityUI | |
![]() |
protectSprites():void
| EntityUI | |
recalculate():void
Calculate pathlength, patharea, centroid_x, centroid_y, heading[].
| WayUI | ||
![]() |
redraw():Boolean
Request redraw
| EntityUI | |
redrawMultis():void
Redraw other ways that are the "outer" part of a multipolygon of which we are the "inner"
| WayUI | ||
removeEventListeners():void
| WayUI | ||
![]() |
removeListenSprite():void
| EntityUI | |
![]() |
removeSprites():void
Remove all sprites associated with this entity, and clear hitzone.
| EntityUI | |
resumeRedraw(event:EntityEvent):void
Continue redrawing as normal.
| WayUI | ||
![]() |
setHighlight(settings:Object):void
| EntityUI | |
setHighlightOnNodes(settings:Object):void
Mark every node in this way as highlighted, and redraw it.
| WayUI | ||
![]() |
setStateClass(stateType:String, isOn:*):Boolean
Sets a state class (eg :hover, :dupe) for this entityUI.
| EntityUI | |
solidLines(g:Graphics, inners:Array):void
Draw solid polyline
| WayUI | ||
suspendRedraw(event:EntityEvent):void
Don't redraw until further notice.
| WayUI | ||
![]() |
toString():String
| EntityUI | |
![]() |
unprotectSprites():void
| EntityUI | |
updateHighlights():void
| WayUI |
Method | Defined by | ||
---|---|---|---|
![]() |
addToLayer(s:DisplayObject, spritetype:uint, sublayer:int = -1):void
Add object (stroke/fill/roadname) to layer sprite
| EntityUI | |
![]() |
attachRelationListeners():void
| EntityUI | |
![]() |
mouseEvent(event:MouseEvent):void
| EntityUI | |
![]() |
offsetSprites(x:Number, y:Number):void
| EntityUI | |
relationAdded(event:RelationMemberEvent):void
| WayUI | ||
relationRemoved(event:RelationMemberEvent):void
| WayUI | ||
relationTagChanged(event:TagEvent):void
| WayUI | ||
![]() |
removeGenericEventListeners():void
Remove the default event listeners.
| EntityUI | |
![]() |
removeRelationListeners():void
| EntityUI | |
![]() |
setListenSprite():void
| EntityUI | |
![]() |
statusChanged(event:EntityEvent):void
| EntityUI | |
![]() |
tagChanged(event:TagEvent):void
| EntityUI |
centroid_x | property |
public var centroid_x:Number
X coord of the centre of the area
centroid_y | property |
public var centroid_y:Number
Y coord of the centre of the area
drawExcept | property |
public var drawExcept:Number
vertex to draw exclusively, or not at all (used by DragWayNode)
drawOnly | property |
public var drawOnly:Number
"
heading | property |
public var heading:Array
Angle at each node
nameformat | property |
public var nameformat:TextFormat
patharea | property |
public var patharea:Number
Area of the way
pathlength | property |
public var pathlength:Number
Total length of way
WayUI | () | constructor |
doRedraw | () | method |
public override function doRedraw():Boolean
Go through the complex process of drawing this way, including applying styles, casings, fills, fonts...
ReturnsBoolean |
getNodeAt | () | method |
hitTest | () | method |
recalculate | () | method |
public function recalculate():void
Calculate pathlength, patharea, centroid_x, centroid_y, heading[]. this could be made scale-independent - would speed up redraw
redrawMultis | () | method |
public function redrawMultis():void
Redraw other ways that are the "outer" part of a multipolygon of which we are the "inner"
relationAdded | () | method |
protected override function relationAdded(event:RelationMemberEvent):void
Parameters
event:RelationMemberEvent |
relationRemoved | () | method |
protected override function relationRemoved(event:RelationMemberEvent):void
Parameters
event:RelationMemberEvent |
relationTagChanged | () | method |
removeEventListeners | () | method |
public function removeEventListeners():void
resumeRedraw | () | method |
public override function resumeRedraw(event:EntityEvent):void
Continue redrawing as normal.
Parametersevent:EntityEvent |
setHighlightOnNodes | () | method |
public function setHighlightOnNodes(settings:Object):void
Mark every node in this way as highlighted, and redraw it.
Parameterssettings:Object — Style state that it applies to. |
See also
solidLines | () | method |
public function solidLines(g:Graphics, inners:Array):void
Draw solid polyline
Parametersg:Graphics |
|
inners:Array |
suspendRedraw | () | method |
public override function suspendRedraw(event:EntityEvent):void
Don't redraw until further notice.
Parametersevent:EntityEvent |
updateHighlights | () | method |
public function updateHighlights():void