Package | ardisia.components.miniViewport |
Class | public class MiniViewport |
Inheritance | MiniViewport spark.components.supportClasses.SkinnableComponent |
Elements with virtualized layouts will not work properly with this component. This includes lists that use virtualized vertical layouts, and any text component that uses TLF because TLF virtualizes textlines.
To use with lists, do not use virtualization in the layout.
View the technical documentation on the Ardisia Labs website for more information.
DESIGN NOTES
Property | Defined By | ||
---|---|---|---|
viewport : IViewport
The scrollable viewport to map. | MiniViewport |
Method | Defined By | ||
---|---|---|---|
dispose():void
Remove the component from the display list and prepare for GC. | MiniViewport | ||
update():void
Update the bitmap representation of the viewport. | MiniViewport |
Method | Defined By | ||
---|---|---|---|
eventHandler(event:Event):void
Handles events on the component. | MiniViewport | ||
updateViewportScroll(offsetX:Number = 0, offsetY:Number = 0):void
Updates the scrolled values for the viewport depending on the
position of the mouse over this control. | MiniViewport |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the user updates the viewport's scroll positions via mouse interaction using this component. | MiniViewport | |||
Dispatched when the user finishes dragging the visibleRectPart skin part. | MiniViewport | |||
Dispatched when the user is dragging the visibleRectPart skin part. | MiniViewport | |||
Dispatched when the user starts dragging the visibleRectPart skin part. | MiniViewport |
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.
Skin State | Description | Defined By | ||
---|---|---|---|---|
disabled | MiniViewport | |||
normal | MiniViewport |
viewport | property |
viewport:IViewport
The scrollable viewport to map.
The default value is null
.
public function get viewport():IViewport
public function set viewport(value:IViewport):void
dispose | () | method |
public function dispose():void
Remove the component from the display list and prepare for GC.
eventHandler | () | method |
protected function eventHandler(event:Event):void
Handles events on the component.
Parameters
event:Event — the Event that triggered the handler
|
update | () | method |
public function update():void
Update the bitmap representation of the viewport.
updateViewportScroll | () | method |
protected function updateViewportScroll(offsetX:Number = 0, offsetY:Number = 0):void
Updates the scrolled values for the viewport depending on the position of the mouse over this control.
Parameters
offsetX:Number (default = 0 ) — the offset to apply in the x coordinate
| |
offsetY:Number (default = 0 ) — the offset to apply in the y coordinate
|
changeScroll | Event |
ardisia.components.miniViewport.events.MiniViewportEvent
ardisia.components.miniViewport.events.MiniViewportEvent
Dispatched when the user updates the viewport's scroll positions via mouse interaction using this component.
dragEnd | Event |
ardisia.components.miniViewport.events.MiniViewportEvent
ardisia.components.miniViewport.events.MiniViewportEvent
Dispatched when the user finishes dragging the visibleRectPart skin part.
dragging | Event |
ardisia.components.miniViewport.events.MiniViewportEvent
ardisia.components.miniViewport.events.MiniViewportEvent
Dispatched when the user is dragging the visibleRectPart skin part.
dragStart | Event |
ardisia.components.miniViewport.events.MiniViewportEvent
ardisia.components.miniViewport.events.MiniViewportEvent
Dispatched when the user starts dragging the visibleRectPart skin part.