Package | twaver.network.ui |
Class | public class GridUI |
Inheritance | GridUI ![]() ![]() ![]() |
Grid
and TWaver Flex online demo
to know more about grid element.
See also
Property | Defined By | ||
---|---|---|---|
![]() | alarmAttachment : AlarmAttachment [read-only]
Get alarm attachment of this element ui. | ElementUI | |
![]() | attachments : ICollection [read-only]
Get all attachments as a collection. | ElementUI | |
![]() | bodyRect : Rectangle [read-only]
Get the element body rectangle. | ElementUI | |
![]() | editAttachment : EditAttachment [read-only]
Get edit attachment. | ElementUI | |
![]() | element : IElement [read-only]
Get the element of this element ui. | ElementUI | |
grid : Grid [read-only]
Get grid element from this ui. | GridUI | ||
![]() | hotSpot : Point
Get hotspot point of this element ui. | ElementUI | |
![]() | iconsAttachment : IconsAttachment [read-only]
Get icon attachment. | ElementUI | |
![]() | labelAttachment : LabelAttachment [read-only]
Get label attachment of this element ui. | ElementUI | |
![]() | network : Network [read-only]
Get network component this element ui displayed on. | ElementUI | |
![]() | node : Node [read-only]
Get connected node element of this node ui. | NodeUI | |
![]() | unionBounds : Rectangle [read-only]
Get the rectangle covers all graphical elements,
including element body and all attachments. | ElementUI | |
![]() | visible : Boolean [override] [write-only]
| NodeUI |
Method | Defined By | ||
---|---|---|---|
Grid ui constructor. | GridUI | ||
![]() | checkAttachments():void
Check all attachments installed on this element ui. | ElementUI | |
![]() | dispose():void [override]
Dispose all resources used by this element ui. | NodeUI | |
![]() | handlePropertyChange(e:PropertyChangeEvent):void
Called when any element property changed. | ElementUI | |
![]() |
Called when selection changed. | ElementUI | |
![]() | hitsTest(point:Point, tolerance:int):Object | ElementUI | |
![]() | invalidate(checkAttachments:Boolean):void [override]
Invalidate element ui. | NodeUI | |
![]() | updateProperties():void [override]
Update all properties from network and element,
redraw this element ui. | NodeUI |
Method | Defined By | ||
---|---|---|---|
![]() | addAttachment(attachment:Attachment):void
Add attachment into this element ui. | ElementUI | |
![]() | checkAlarmAttachment():void
Check, update and display alarm attachment. | ElementUI | |
![]() | checkEditAttachment():void
Check, update and display edit attachment. | ElementUI | |
![]() | checkIconsAttachment():void
Check, update and display icon attachment. | ElementUI | |
![]() | checkLabelAttachment():void
Check, update and display label attachment. | ElementUI | |
![]() | commitProperties():void [override]
| ElementUI | |
![]() | createBodyFilters():Array
Create element body effect filters of this element ui. | ElementUI | |
![]() | createBodyRect():Rectangle [override]
Create body bound rectangle. | NodeUI | |
![]() | createFilters():Array
Create element effect filters of this element ui. | ElementUI | |
![]() | drawBody(g:Graphics):void [override]
Draw element body. | NodeUI | |
![]() | 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 | ||
![]() | drawInnerShape(graphics:Graphics):void
Draw inner node shape on graphics. | NodeUI | |
![]() | drawOuterBorder(graphics:Graphics):void
Draw node outline border. | NodeUI | |
![]() | drawSelectBorder(graphics:Graphics):void
Draw node selection border. | NodeUI | |
![]() | drawVectorContent(graphics:Graphics):void
Draw vector image content on graphics. | NodeUI | |
![]() | getDyeColor(styleProp:String):Number
Get dye color of the specified style property. | ElementUI | |
![]() | isEditable():Boolean
Check whether this element is editable now. | ElementUI | |
![]() | measure():void [override]
| ElementUI | |
![]() | removeAttachment(attachment:Attachment):void
Remove specified attachment from this element ui. | ElementUI | |
![]() | updateMeasure():void [override]
Update element measure. | NodeUI |
grid | property |
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.
Parametersnetwork:Network — network component this element ui displayed on
| |
grid:Grid — the grid element this element ui paint for.
|
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
|