| Package | flare.vis.data |
| Class | public class EdgeSprite |
| Inheritance | EdgeSprite DataSprite DirtySprite flash.display.Sprite |
source and target
properties for accessing the NodeSprites connected by this edge. By
default, EdgeSprites are drawn using an EdgeRenderer.
EdgeSprites are typically managed by a Data object.
| Property | Defined by | ||
|---|---|---|---|
![]() | angle : Number The angle value of this sprite's position in polar co-ordinates.
| DirtySprite | |
| arrowHeight : Number = -1 The height of the arrow head.
| EdgeSprite | ||
| arrowType : String = "none" The type of arrow to be used on the edge.
| EdgeSprite | ||
| arrowWidth : Number = -1 The width of the arrow head.
| EdgeSprite | ||
![]() | data : Object Object storing backing data values.
| DataSprite | |
| directed : Boolean = false Flag indicating if this edge is directed (true) or undirected
(false).
| EdgeSprite | ||
![]() | fillAlpha : Number The alpha channel (a value between 0 and 1) for the fill color.
| DataSprite | |
![]() | fillColor : uint The fill color for this data sprite.
| DataSprite | |
![]() | fillHue : Number The hue component of the fill color in HSV color space.
| DataSprite | |
![]() | fillSaturation : Number The saturation component of the fill color in HSV color space.
| DataSprite | |
![]() | fillValue : Number The value (brightness) component of the fill color in HSV color space.
| DataSprite | |
![]() | fixed : Boolean Fixed flag to prevent this sprite from being re-positioned.
| DataSprite | |
![]() | h : Number Auxiliary property often used as a height parameter.
| DataSprite | |
![]() | height : Number
If dirty, this sprite is re-rendered before returning the height.
| DirtySprite | |
![]() | lineAlpha : Number The alpha channel (a value between 0 and 1) for the line color.
| DataSprite | |
![]() | lineColor : uint The line color for this data sprite.
| DataSprite | |
![]() | lineHue : Number The hue component of the line color in HSV color space.
| DataSprite | |
![]() | lineSaturation : Number The saturation component of the line color in HSV color space.
| DataSprite | |
![]() | lineValue : Number The value (brightness) component of the line color in HSV color space.
| DataSprite | |
![]() | lineWidth : Number The line width for this data sprite.
| DataSprite | |
![]() | origin : Point The origin point for polar coordinates.
| DirtySprite | |
![]() | points : Array Optional array of x,y values for specifying arbitrary shapes.
| DataSprite | |
![]() | props : Object Object for attaching additional properties to this sprite.
| DataSprite | |
![]() | radius : Number The radius value of this sprite's position in polar co-ordinates.
| DirtySprite | |
![]() | renderer : IRenderer
The renderer for drawing this DataSprite.
| DataSprite | |
![]() | shape : String Name of the shape value of this data sprite.
| DataSprite | |
![]() | size : Number The size value of this data sprite (1 by default).
| DataSprite | |
| source : NodeSprite
The first, or source, node upon which this edge is incident.
| EdgeSprite | ||
| target : NodeSprite
The second, or target, node upon which this edge is incident.
| EdgeSprite | ||
![]() | u : Number Auxiliary property often used as a shape parameter.
| DataSprite | |
![]() | v : Number Auxiliary property often used as a shape parameter.
| DataSprite | |
![]() | w : Number Auxiliary property often used as a width parameter.
| DataSprite | |
![]() | width : Number
If dirty, this sprite is re-rendered before returning the width.
| DirtySprite | |
![]() | x : Number | DirtySprite | |
| x1 : Number The x-coordinate for the first end point of this edge.
| EdgeSprite | ||
| x2 : Number The x-coordinate for the second end point of this edge.
| EdgeSprite | ||
![]() | y : Number | DirtySprite | |
| y1 : Number The y-coordinate for the first end point of this edge.
| EdgeSprite | ||
| y2 : Number The y-coordinate for the second end point of this edge.
| EdgeSprite | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new EdgeSprite.
| EdgeSprite | ||
|
clear():void
Clears the edge, removing references to the edge's nodes.
| EdgeSprite | ||
![]() |
dirty():void
Marks this sprite as "dirty" and in need of re-rendering.
| DirtySprite | |
![]() |
fix(num:uint = 1):void
Increments the fixed counter.
| DataSprite | |
![]() |
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
If dirty, this sprite is re-rendered returning the bounds.
| DirtySprite | |
![]() |
getRect(targetCoordinateSpace:DisplayObject):Rectangle
If dirty, this sprite is re-rendered before returning the rect.
| DirtySprite | |
![]() |
hitTestObject(obj:DisplayObject):Boolean
If dirty, either sprite is re-rendered before hit-testing.
| DirtySprite | |
![]() |
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
If dirty, this sprite is re-rendered before hit-testing.
| DirtySprite | |
|
Given a node upon which this edge is incident, return the other
node connected by this edge.
| EdgeSprite | ||
|
render():void
Draw this sprite's graphical content.
| EdgeSprite | ||
![]() |
renderDirty(evt:Event = null):void
[static]
Frame render callback that renders all sprites on the dirty list.
| DirtySprite | |
![]() |
toString():String
| DirtySprite | |
![]() |
unfix(num:uint = 1):void
Decrements the fixed counter.
| DataSprite | |
| arrowHeight | property |
public var arrowHeight:Number = -1The height of the arrow head. The default is -1, in which case the height is automatically determined based on the arrow width or the line width.
| arrowType | property |
public var arrowType:String = "none"The type of arrow to be used on the edge. Default is Arrows.NONE
| arrowWidth | property |
public var arrowWidth:Number = -1The width of the arrow head. The default is -1, in which case the width is automatically determined based on the arrow height or the line width.
| directed | property |
public var directed:Boolean = falseFlag indicating if this edge is directed (true) or undirected (false).
| source | property |
public var source:NodeSpriteThe first, or source, node upon which this edge is incident.
| target | property |
public var target:NodeSpriteThe second, or target, node upon which this edge is incident.
| x1 | property |
public var x1:NumberThe x-coordinate for the first end point of this edge.
| x2 | property |
public var x2:NumberThe x-coordinate for the second end point of this edge.
| y1 | property |
public var y1:NumberThe y-coordinate for the first end point of this edge.
| y2 | property |
public var y2:NumberThe y-coordinate for the second end point of this edge.
| EdgeSprite | () | constructor |
public function EdgeSprite(source:NodeSprite = null, target:NodeSprite = null, directed:Boolean = false)Creates a new EdgeSprite.
Parameterssource:NodeSprite (default = null) — the source node
|
|
target:NodeSprite (default = null) — the target node
|
|
directed:Boolean (default = false) — true for a directed edge, false for undirected
|
| clear | () | method |
public function clear():voidClears the edge, removing references to the edge's nodes.
| other | () | method |
public function other(n:NodeSprite):NodeSpriteGiven a node upon which this edge is incident, return the other node connected by this edge.
Parametersn:NodeSprite — a node upon which this edge is incident
|
NodeSprite —
the other node
|
| render | () | method |
public override function render():voidDraw this sprite's graphical content. Subclasses should override this method with custom drawing code.