Package | com.bit101.components |
Class | public class ScrollPane |
Inheritance | ScrollPane ![]() ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() |
color : int
Gets / sets the backgrond color of this panel.
|
Panel | |
![]() |
content : Sprite
Container for content added to this panel.
|
Panel | |
dragContent : Boolean | ScrollPane | ||
![]() |
enabled : Boolean
Sets/gets whether this component is enabled or not.
|
Component | |
![]() |
gridColor : uint
Sets / gets the color of the grid lines.
|
Panel | |
![]() |
gridSize : int
Sets / gets the size of the grid.
|
Panel | |
![]() |
height : Number [override]
Sets/gets the height of the component.
|
Component | |
![]() |
shadow : Boolean
Gets / sets whether or not this Panel will have an inner shadow.
|
Panel | |
![]() |
showGrid : Boolean
Sets / gets whether or not the grid will be shown.
|
Panel | |
![]() |
tag : int
Sets/gets in integer that can identify the component.
|
Component | |
![]() |
width : Number [override]
Sets/gets the width of the component.
|
Component | |
![]() |
x : Number [override] [write-only]
Overrides the setter for x to always place the component on a whole pixel.
|
Component | |
![]() |
y : Number [override] [write-only]
Overrides the setter for y to always place the component on a whole pixel.
|
Component |
Property | Defined By | ||
---|---|---|---|
![]() |
_background : Sprite | Panel | |
![]() |
_color : int = -1 | Panel | |
_corner : Shape | ScrollPane | ||
_dragContent : Boolean = true | ScrollPane | ||
![]() |
_enabled : Boolean = true | Component | |
![]() |
_gridColor : uint = 0xd0d0d0 | Panel | |
![]() |
_gridSize : int = 10 | Panel | |
![]() |
_height : Number = 0 | Component | |
_hScrollbar : HScrollBar | ScrollPane | ||
![]() |
_mask : Sprite | Panel | |
![]() |
Ronda : Class | Component | |
![]() |
_shadow : Boolean = true | Panel | |
![]() |
_showGrid : Boolean = false | Panel | |
![]() |
_tag : int = -1 | Component | |
_vScrollbar : VScrollBar | ScrollPane | ||
![]() |
_width : Number = 0 | Component |
Method | Defined By | ||
---|---|---|---|
ScrollPane(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)
Constructor
|
ScrollPane | ||
draw():void
[override]
Draws the visual ui of the component.
|
ScrollPane | ||
![]() |
initStage(stage:Stage):void
[static]
Utility method to set up usual stage align and scaling.
|
Component | |
![]() |
move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
|
Component | |
![]() |
setSize(w:Number, h:Number):void
Sets the size of the component.
|
Component | |
update():void
Updates the scrollbars when content is changed.
|
ScrollPane |
Method | Defined By | ||
---|---|---|---|
addChildren():void
[override]
Creates and adds the child display objects of this component.
|
ScrollPane | ||
![]() |
drawGrid():void
|
Panel | |
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
|
Component | |
init():void
[override]
Initializes this component.
|
ScrollPane | ||
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
|
Component | |
![]() |
onInvalidate(event:Event):void
Called one frame after invalidate is called.
|
Component | |
onMouseDown(event:MouseEvent):void
|
ScrollPane | ||
onMouseMove(event:MouseEvent):void
|
ScrollPane | ||
onMouseUp(event:MouseEvent):void
|
ScrollPane | ||
onResize(event:Event):void
|
ScrollPane | ||
onScroll(event:Event):void
Called when either scroll bar is scrolled.
|
ScrollPane |
_corner | property |
protected var _corner:Shape
_dragContent | property |
protected var _dragContent:Boolean = true
_hScrollbar | property |
protected var _hScrollbar:HScrollBar
_vScrollbar | property |
protected var _vScrollbar:VScrollBar
dragContent | property |
dragContent:Boolean
public function get dragContent():Boolean
public function set dragContent(value:Boolean):void
ScrollPane | () | Constructor |
public function ScrollPane(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)
Constructor
Parameters
parent:DisplayObjectContainer (default = null ) — The parent DisplayObjectContainer on which to add this ScrollPane.
|
|
xpos:Number (default = 0 ) — The x position to place this component.
|
|
ypos:Number (default = 0 ) — The y position to place this component.
|
addChildren | () | method |
override protected function addChildren():void
Creates and adds the child display objects of this component.
draw | () | method |
override public function draw():void
Draws the visual ui of the component.
init | () | method |
override protected function init():void
Initializes this component.
onMouseDown | () | method |
protected function onMouseDown(event:MouseEvent):void
Parameters
event:MouseEvent |
onMouseMove | () | method |
protected function onMouseMove(event:MouseEvent):void
Parameters
event:MouseEvent |
onMouseUp | () | method |
protected function onMouseUp(event:MouseEvent):void
Parameters
event:MouseEvent |
onResize | () | method |
protected function onResize(event:Event):void
Parameters
event:Event |
onScroll | () | method |
protected function onScroll(event:Event):void
Called when either scroll bar is scrolled.
Parameters
event:Event |
update | () | method |
public function update():void
Updates the scrollbars when content is changed. Needs to be done manually.