flash.display
Class Sprite

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by flash.events.EventDispatcher
          extended by flash.display.DisplayObject
              extended by flash.display.InteractiveObject
                  extended by flash.display.DisplayObjectContainer
                      extended by flash.display.Sprite

public final class Sprite
extends DisplayObjectContainer


Field Summary
 
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
 
Fields inherited from class flash.display.DisplayObject
ADDED, ADDED_TO_STAGE, ENTERFRAME, REMOVED, REMOVED_FROM_STAGE, RENDER
 
Fields inherited from class flash.events.EventDispatcher
ACTIVATE, DEACTIVATE
 
Constructor Summary
protected Sprite()
           
 
Method Summary
static Sprite create()
           
 DisplayObject getDropTarget()
          Specifies the display object over which the sprite is being dragged, or on which the sprite was dropped.
 Graphics getGraphics()
          Specifies the Graphics object that belongs to this sprite where vector drawing commands can occur.
 Sprite getHitArea()
          Designates another sprite to serve as the hit area for a sprite.
static Sprite getRootSprite()
           
 boolean isButtonMode()
          Specifies the button mode of this sprite.
 boolean isUseHandCursor()
           
 void setButtonMode(boolean mode)
           
 void setHitArea(Sprite hitArea)
           
 void setUseHandCursor(boolean b)
           
 void startDrag(boolean lockCenter, Rectangle bounds)
          Lets the user drag the specified sprite.
 void stopDrag()
          Ends the startDrag() method.
 
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.InteractiveObject
getDoubleClickEnabled, getMouseEnabled, getTabEnabled, getTabIndex, setMouseEnabled, setTabEnabled, setTabIndex
 
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 flash.events.EventDispatcher
addEventListener, dispatchEvent, hasEventListener, removeEventListener, willTrigger
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sprite

protected Sprite()
Method Detail

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 © 2011. All Rights Reserved.