| Package | com.kapit.diagram.ui |
| Interface | public interface IDiagramObjectUI |
| Implementors | DiagramLinkUI, DiagramObjectUI, DiagramSpriteUI, TransformUI |
| Property | Defined by | ||
|---|---|---|---|
| parent : DisplayObjectContainer [read-only]
Parent property that defines the parent (container) of a Diagram UI.
| IDiagramObjectUI | ||
| source : DiagramObject
[read-only]
Source property that defines the Diagram Object to which the Diagram UI class is linked.
| IDiagramObjectUI | ||
| Method | Defined by | ||
|---|---|---|---|
|
activate(a:Boolean):void
Activates or desactivates this Diagram UI by adding or removing action and mouse listeners to the source Diagram Object View.
| IDiagramObjectUI | ||
|
clear():void
Clears the graphics that were drawn to this Graphics object.
| IDiagramObjectUI | ||
|
clearSelection():void
Clears selection by updating the selection index.
| IDiagramObjectUI | ||
|
draw():void
Draws this Diagram UI elements while respecting position, style and size properties.
| IDiagramObjectUI | ||
|
execute(k:int, event:MouseEvent = null):void
Executes a scaling, modification, dragging, transformation...
| IDiagramObjectUI | ||
|
fitToObject(p:DiagramObject = null):void
Updates position or/and size in order to fit its container or its correspondant DiagramObject.
| IDiagramObjectUI | ||
|
hitTest(p:Point):int
Determines the Diagram hit type given a point (cursor hit position) meaning determining what the cursor hits.
| IDiagramObjectUI | ||
|
libraryStylesChanged(event:SVGAssetLibraryEvent):void
Redraws this Diagram UI and its children when library styles and assets change given a SVGAssetLibraryEvent.
| IDiagramObjectUI | ||
|
update():void
| IDiagramObjectUI | ||
| parent | property |
parent:DisplayObjectContainer [read-only]Parent property that defines the parent (container) of a Diagram UI.
Implementation public function get parent():DisplayObjectContainer
| source | property |
source:DiagramObject [read-only]Source property that defines the Diagram Object to which the Diagram UI class is linked.
Implementation public function get source():DiagramObject
| activate | () | method |
public function activate(a:Boolean):voidActivates or desactivates this Diagram UI by adding or removing action and mouse listeners to the source Diagram Object View.
Parametersa:Boolean — New Activation status (True if this Diagram UI msut be activated).
|
| clear | () | method |
public function clear():voidClears the graphics that were drawn to this Graphics object.
| clearSelection | () | method |
public function clearSelection():voidClears selection by updating the selection index.
| draw | () | method |
public function draw():voidDraws this Diagram UI elements while respecting position, style and size properties.
| execute | () | method |
public function execute(k:int, event:MouseEvent = null):voidExecutes a scaling, modification, dragging, transformation... operations given a mouse event and a Diagram Hit Type defined internally by the Diagram UI classes or the DiagramHitType class.
Parametersk:int — Diagram Hit Type.
|
|
event:MouseEvent (default = null) — Detected Mouse Event.
|
| fitToObject | () | method |
public function fitToObject(p:DiagramObject = null):voidUpdates position or/and size in order to fit its container or its correspondant DiagramObject.
Parametersp:DiagramObject (default = null) — DiagramObject to fit with (not used in this class).
|
| hitTest | () | method |
public function hitTest(p:Point):int
Determines the Diagram hit type given a point (cursor hit position) meaning determining what the cursor hits. The hitTest
function returns a Diagram Hit type index defined in the DiagramHitType class or in the the Diagram UI classes.
p:Point — Hit point (cursor hit position).
|
int — Diagram Hit Type index.
|
| libraryStylesChanged | () | method |
public function libraryStylesChanged(event:SVGAssetLibraryEvent):voidRedraws this Diagram UI and its children when library styles and assets change given a SVGAssetLibraryEvent.
Parametersevent:SVGAssetLibraryEvent — SVGAssetLibraryEvent telling a change in asset library properties.
|
| update | () | method |
public function update():void