Class lime.ui.Scroller
Extends
lime.Sprite.
Defined in: scroller.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
lime.ui.Scroller.Direction
Directions of the scroller.
|
| <static> |
lime.ui.Scroller.FRICTION
How fast to slow down
|
| <static> |
lime.ui.Scroller.OFFSET
Offset that can be dragged over the edge
|
| <static> |
lime.ui.Scroller.OFFSET_LAG
Factor to slow down if over the edge
|
- Fields borrowed from class lime.Sprite:
- fill_, getCanvasContextName_, id, supportedRenderers
- Fields borrowed from class lime.Node:
- customEvent_, eventHandlers_, inTree_, transitionsAdd_, transitionsClear_
| Method Attributes | Method Name and Description |
|---|---|
|
Cancel all current movement events.
|
|
| <private> |
Capture the scrolling velocity to get some throwing
motion after release.
|
| <private> |
downHandler_(e)
Handle down events
|
|
Returns the direction of the scroller (horizontal/vertical)
|
|
|
Measure the contents of the scroller and set
up high and low limits.
|
|
| <private> |
moveHandler_(e)
Handle move events.
|
|
scrollTo(offset, opt_duration)
Scroll to specific offset in pixels
|
|
|
setDirection(direction)
Set the direction of the scroller (horizontal/vertical)
|
|
| <private> |
upHandler_(e)
Handle release(up) events.
|
- Methods borrowed from class lime.Sprite:
- getFill, getStroke, setFill, setStroke
- Methods borrowed from class lime.Node:
- addDependency, addEventListener, addTransition, calcRelativeQuality, clearTransition, createDomElement, getAnchorPoint, getAutoResize, getBoundingBox, getChildAt, getChildIndex, getDeepestDomElement, getDeepestParentWithDom, getDirector, getDirty, getFrame, getHidden, getMask, getNumberOfChildren, getOpacity, getParent, getParentStack_, getPosition, getQuality, getRelativeQuality, getRotation, getScale, getScene, getSize, hitTest, localToNode, localToParent, localToScreen, measureContents, needsDomElement, parentToLocal, releaseDependencies, removeAllChildren, removeChildAt, removeDependency, removeDomElement, removeEventListener, runAction, screenToLocal, setAutoResize, setChildIndex, setDirty, setHidden, setMask, setOpacity, setPosition, setQuality, setRenderer, setRotation, setScale, setSize, setupDependencies, update, updateDomElement, updateLayout, wasAddedToTree, wasRemovedFromTree
Field Detail
<static>
lime.ui.Scroller.Direction
Directions of the scroller.
<static>
{number}
lime.ui.Scroller.FRICTION
How fast to slow down
<static>
{number}
lime.ui.Scroller.OFFSET
Offset that can be dragged over the edge
<static>
{number}
lime.ui.Scroller.OFFSET_LAG
Factor to slow down if over the edge
Method Detail
appendChild()
cancelEvents()
Cancel all current movement events.
<private>
captureVelocity_()
Capture the scrolling velocity to get some throwing
motion after release.
<private>
downHandler_(e)
Handle down events
- Parameters:
- {lime.events.Event} e
- Event.
{lime.ui.Scroller.Direction}
getDirection()
Returns the direction of the scroller (horizontal/vertical)
- Returns:
- {lime.ui.Scroller.Direction} Scroll direction.
measureLimits()
Measure the contents of the scroller and set
up high and low limits.
<private>
moveHandler_(e)
Handle move events.
- Parameters:
- {lime.events.Event} e
- Event.
removeChild()
scrollTo(offset, opt_duration)
Scroll to specific offset in pixels
- Parameters:
- {number} offset
- Offset in pixels.
- {number=} opt_duration
- Animation duration.
setAnchorPoint()
{lime.ui.Scroller}
setDirection(direction)
Set the direction of the scroller (horizontal/vertical)
- Parameters:
- {lime.ui.Scroller.Direction} direction
- Direction.
- Returns:
- {lime.ui.Scroller} object itself.
<private>
upHandler_(e)
Handle release(up) events.
- Parameters:
- {lime.events.Event} e
- Event.