flash.display
Class Sprite
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
flash.events.EventDispatcher
flash.display.DisplayObject
flash.display.InteractiveObject
flash.display.DisplayObjectContainer
flash.display.Sprite
public final class Sprite
- extends DisplayObjectContainer
| Fields inherited from class flash.display.InteractiveObject |
CLICK, DOUBLECLICK, FOCUSIN, FOCUSOUT, KEYDOWN, KEYFOCUSCHANGE, KEYUP, MOUSEDOWN, MOUSEFOCUSCHANGE, MOUSEMOVE, MOUSEOUT, MOUSEOVER, MOUSEUP, MOUSEWHEEL, ROLLOUT, ROLLOVER, TABCENABLEDCHANGE, TABCHILDRENCHANGE, TABINDEXCHANGE |
|
Constructor Summary |
protected |
Sprite()
|
| Methods inherited from class flash.display.DisplayObjectContainer |
addChild, addChildAt, areInaccessibleObjectsUnderPoint, contains, getChildAt, getChildByName, getChildIndex, getNumChildren, getObjectsUnderPoint, isMouseChildren, isTabChildren, removeChild, removeChildAt, setChildIndex, setMouseChildren, setTabChildren, swapChildren, swapChildrenAt |
| Methods inherited from class flash.display.DisplayObject |
getAlpha, getBlendMode, getBounds, getCacheAsBitmap, getFilters, getHeight, getLoaderInfo, getMask, getMouseX, getMouseY, getName, getParent, getRect, getRoot, getRotation, getScale9Grid, getScaleX, getScaleY, getScrollRect, getStage, getTransform, getWidth, getX, getY, globalToLocal, hitTestObject, hitTestPoint, localToGlobal, setAlpha, setBlendMode, setCacheAsBitmap, setFilters, setHeight, setMask, setName, setRotation, setScale9Grid, setScaleX, setScaleY, setScrollRect, setTransform, setTransform, setVisible, setWidth, setX, setY, visible |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Sprite
protected Sprite()
getRootSprite
public static Sprite getRootSprite()
create
public static Sprite create()
isButtonMode
public boolean isButtonMode()
- Specifies the button mode of this sprite.
- Returns:
setButtonMode
public void setButtonMode(boolean mode)
getDropTarget
public DisplayObject getDropTarget()
- Specifies the display object over which the sprite is being dragged, or
on which the sprite was dropped.
- Returns:
getGraphics
public Graphics getGraphics()
- Specifies the Graphics object that belongs to this sprite where vector
drawing commands can occur.
- Returns:
getHitArea
public Sprite getHitArea()
- Designates another sprite to serve as the hit area for a sprite.
- Returns:
setHitArea
public void setHitArea(Sprite hitArea)
isUseHandCursor
public boolean isUseHandCursor()
setUseHandCursor
public void setUseHandCursor(boolean b)
startDrag
public void startDrag(boolean lockCenter,
Rectangle bounds)
- Lets the user drag the specified sprite.
- Parameters:
lockCenter - bounds -
stopDrag
public void stopDrag()
- Ends the startDrag() method.
Copyright © 2013. All Rights Reserved.