| Package | com.asterisq.constellation.renderers |
| Class | public class BasicEdgeRenderer |
| Inheritance | BasicEdgeRenderer EdgeRenderer mx.core.UIComponent |
| Subclasses | DefaultEdgeRenderer |
The hit area is added automatically in createChildren().
Subclasses need to ensure that DisplayObjects at higher depths don't block
mouse events from reaching the hit area. To do this, use the following
code:
setChildIndex(hitArea_sp, numChildren-1);
To change the way the edge renderer responds to user interaction, override the event handler methods.
| Property | Defined by | ||
|---|---|---|---|
| hitArea_sp : Sprite
The mouse hit area.
| BasicEdgeRenderer | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new edge renderer.
| BasicEdgeRenderer | ||
![]() |
Fetches the other node renderer in this edge renderer, given one of them.
| EdgeRenderer | |
![]() |
validateNodePositions():void
Validates this edge renderer's tail and head node renderer positions.
| EdgeRenderer | |
| Method | Defined by | ||
|---|---|---|---|
|
clickHandler(evt:MouseEvent):void
Called when a click event is received from the hit area.
| BasicEdgeRenderer | ||
|
createChildren():void
| BasicEdgeRenderer | ||
![]() |
dataChangeHandler(evt:GraphItemEvent = null):void
Called when the edge's data changes.
| EdgeRenderer | |
|
doubleClickHandler(evt:MouseEvent):void
Called when a double click event is received from the hit area.
| BasicEdgeRenderer | ||
|
mouseDownHandler(evt:MouseEvent):void
Called when a mouse down event is received from the hit area.
| BasicEdgeRenderer | ||
|
mouseOutHandler(evt:MouseEvent):void
Called when a mouse out event is received from the hit area.
| BasicEdgeRenderer | ||
|
mouseOverHandler(evt:MouseEvent):void
Called when a mouse over event is received from the hit area.
| BasicEdgeRenderer | ||
|
mouseUpHandler(evt:MouseEvent):void
Called when a mouse up event is received from the hit area.
| BasicEdgeRenderer | ||
|
redispatchMouseEvent(evt:MouseEvent):void
Redispatches the given event as though it had come from this
node renderer.
| BasicEdgeRenderer | ||
|
stageMouseUpHandler(evt:MouseEvent):void
Called when a mouse up event is received from the stage object.
| BasicEdgeRenderer | ||
| hitArea_sp | property |
protected var hitArea_sp:Sprite
The mouse hit area. Override the updateDisplayList()
and use the hit area's graphics property to set the shape of the hit
area.
| BasicEdgeRenderer | () | constructor |
public function BasicEdgeRenderer()Creates a new edge renderer.
| clickHandler | () | method |
protected function clickHandler(evt:MouseEvent):voidCalled when a click event is received from the hit area. The event is redispatched.
Parametersevt:MouseEvent |
| createChildren | () | method |
protected override function createChildren():void
| doubleClickHandler | () | method |
protected function doubleClickHandler(evt:MouseEvent):voidCalled when a double click event is received from the hit area. The event is redispatched.
Parametersevt:MouseEvent |
| mouseDownHandler | () | method |
protected function mouseDownHandler(evt:MouseEvent):voidCalled when a mouse down event is received from the hit area. The event is redispatched.
Parametersevt:MouseEvent |
| mouseOutHandler | () | method |
protected function mouseOutHandler(evt:MouseEvent):voidCalled when a mouse out event is received from the hit area. The event is redispatched.
Parametersevt:MouseEvent |
| mouseOverHandler | () | method |
protected function mouseOverHandler(evt:MouseEvent):voidCalled when a mouse over event is received from the hit area. The event is redispatched.
Parametersevt:MouseEvent |
| mouseUpHandler | () | method |
protected function mouseUpHandler(evt:MouseEvent):voidCalled when a mouse up event is received from the hit area. The event is redispatched.
Parametersevt:MouseEvent |
| redispatchMouseEvent | () | method |
protected function redispatchMouseEvent(evt:MouseEvent):void
Redispatches the given event as though it had come from this
node renderer. Make sure to call evt.stopImmediatePropagation() first.
evt:MouseEvent |
| stageMouseUpHandler | () | method |
protected function stageMouseUpHandler(evt:MouseEvent):voidCalled when a mouse up event is received from the stage object.
Parametersevt:MouseEvent |