Packagetwaver.network.ui
Classpublic class GridUI
InheritanceGridUI Inheritance NodeUI Inheritance ElementUI Inheritance mx.core.UIComponent

This grid ui draw grid element on network canvas. Grid element defines a two-dimension table. See class Grid and TWaver Flex online demo to know more about grid element.

See also

twaver.Grid


Public Properties
 PropertyDefined By
 InheritedalarmAttachment : AlarmAttachment
[read-only] Get alarm attachment of this element ui.
ElementUI
 Inheritedattachments : ICollection
[read-only] Get all attachments as a collection.
ElementUI
 InheritedbodyRect : Rectangle
[read-only] Get the element body rectangle.
ElementUI
 InheritededitAttachment : EditAttachment
[read-only] Get edit attachment.
ElementUI
 Inheritedelement : IElement
[read-only] Get the element of this element ui.
ElementUI
  grid : Grid
[read-only] Get grid element from this ui.
GridUI
 InheritedhotSpot : Point
Get hotspot point of this element ui.
ElementUI
 InheritediconsAttachment : IconsAttachment
[read-only] Get icon attachment.
ElementUI
 InheritedlabelAttachment : LabelAttachment
[read-only] Get label attachment of this element ui.
ElementUI
 Inheritednetwork : Network
[read-only] Get network component this element ui displayed on.
ElementUI
 Inheritednode : Node
[read-only] Get connected node element of this node ui.
NodeUI
 InheritedunionBounds : Rectangle
[read-only] Get the rectangle covers all graphical elements, including element body and all attachments.
ElementUI
 Inheritedvisible : Boolean
[override] [write-only]
NodeUI
Protected Properties
 PropertyDefined By
 InheritedbodyComponent : UIComponent
ElementUI
 InheritedhasDrawImage : Boolean = false
NodeUI
 InheritedinnerColor : Object
[read-only] Get element inner color.
ElementUI
 InheritedouterColor : Object
[read-only] Get element outline color.
ElementUI
Public Methods
 MethodDefined By
  
GridUI(network:Network, grid:Grid)
Grid ui constructor.
GridUI
 Inherited
Check all attachments installed on this element ui.
ElementUI
 Inherited
dispose():void
[override] Dispose all resources used by this element ui.
NodeUI
 Inherited
handlePropertyChange(e:PropertyChangeEvent):void
Called when any element property changed.
ElementUI
 Inherited
Called when selection changed.
ElementUI
 Inherited
hitsTest(point:Point, tolerance:int):Object
ElementUI
 Inherited
invalidate(checkAttachments:Boolean):void
[override] Invalidate element ui.
NodeUI
 Inherited
[override] Update all properties from network and element, redraw this element ui.
NodeUI
Protected Methods
 MethodDefined By
 Inherited
addAttachment(attachment:Attachment):void
Add attachment into this element ui.
ElementUI
 Inherited
Check, update and display alarm attachment.
ElementUI
 Inherited
Check, update and display edit attachment.
ElementUI
 Inherited
Check, update and display icon attachment.
ElementUI
 Inherited
Check, update and display label attachment.
ElementUI
 Inherited
[override]
ElementUI
 Inherited
Create element body effect filters of this element ui.
ElementUI
 Inherited
createBodyRect():Rectangle
[override] Create body bound rectangle.
NodeUI
 Inherited
Create element effect filters of this element ui.
ElementUI
 Inherited
drawBody(g:Graphics):void
[override] Draw element body.
NodeUI
 Inherited
drawContent(graphics:Graphics):void
Draw node content on grahics.
NodeUI
  
drawDefaultContent(graphics:Graphics):void
[override] Draw default node content.
GridUI
  
drawGridContent(graphics:Graphics):void
Draw grid content on network canvas.
GridUI
 Inherited
drawInnerShape(graphics:Graphics):void
Draw inner node shape on graphics.
NodeUI
 Inherited
drawOuterBorder(graphics:Graphics):void
Draw node outline border.
NodeUI
 Inherited
drawSelectBorder(graphics:Graphics):void
Draw node selection border.
NodeUI
 Inherited
drawVectorContent(graphics:Graphics):void
Draw vector image content on graphics.
NodeUI
 Inherited
getDyeColor(styleProp:String):Number
Get dye color of the specified style property.
ElementUI
 Inherited
isEditable():Boolean
Check whether this element is editable now.
ElementUI
 Inherited
measure():void
[override]
ElementUI
 Inherited
removeAttachment(attachment:Attachment):void
Remove specified attachment from this element ui.
ElementUI
 Inherited
[override] Update element measure.
NodeUI
Property Detail
gridproperty
grid:Grid  [read-only]

Get grid element from this ui.


Implementation
    public function get grid():Grid
Constructor Detail
GridUI()Constructor
public function GridUI(network:Network, grid:Grid)

Grid ui constructor. Create grid ui for specified grid element and displayed on specified network component.

Parameters
network:Network — network component this element ui displayed on
 
grid:Grid — the grid element this element ui paint for.
Method Detail
drawDefaultContent()method
override protected function drawDefaultContent(graphics:Graphics):void

Draw default node content.

Parameters

graphics:Graphics — the graphics to draw content on.

drawGridContent()method 
protected function drawGridContent(graphics:Graphics):void

Draw grid content on network canvas.

Parameters

graphics:Graphics — the graphics to draw