|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.std.anim.Sprite
The Sprite class implements the corresponding data structure of the Movie Toolbox.
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary | |
Sprite(SpriteWorld itsSpriteWorld,
ImageDescription idh,
EncodedImage imageData,
Matrix matrix,
boolean visible,
int layer)
This constructor creates a new Sprite object for a specified sprite world. |
Method Summary | |
GraphicsMode |
getGraphicsMode()
This method gets the graphics mode property of this sprite. |
RawEncodedImage |
getImageData()
This method gets the image data property of this sprite. |
int |
getImageDataSize()
This method gets the size of the image data that a sprite is currently displaying. |
ImageDescription |
getImageDescription()
This method gets the image description property of this sprite. |
java.awt.Dimension |
getInitialSize()
Deprecated. since QTJava 4.0 |
int |
getLayer()
This method gets the layer property of this sprite. |
Matrix |
getMatrix()
This method gets the matrix property of this sprite. |
QDDimension |
getOriginalSize()
This method returns the original width and height of the image currently being presented by the sprite. |
SpriteWorld |
getSpriteWorld()
Return the sprite world that this sprite belongs too |
boolean |
getVisible()
This method gets the visibility property of this sprite. |
boolean |
hitTest(int flags,
QDPoint loc)
This method tests if a point is inside a sprite. |
void |
invalidate()
This method invalidates the portion of the sprite's sprite world which is occupied by the sprite. |
void |
remove()
This will remove the sprite from the SpriteWorld it is contained in and destroy its internal structures. |
void |
setGraphicsMode(GraphicsMode gMode)
This method sets the graphics mode property of this sprite. |
void |
setImageData(EncodedImage data)
This method sets the image data property of this sprite. |
boolean |
setImageDataIfDifferent(EncodedImage data)
This method sets the image data property of this sprite. |
void |
setImageDataSize(int size)
This method sets the size of the image data that the sprite is currently displaying. |
void |
setImageDescription(ImageDescription idh)
This method sets the image description property of this sprite. |
void |
setLayer(int layer)
This method sets the layer property of this sprite. |
void |
setMatrix(Matrix matrix)
This method sets the matrix property of this sprite. |
void |
setVisible(boolean visible)
This method sets the visibility property of this sprite. |
Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Sprite(SpriteWorld itsSpriteWorld, ImageDescription idh, EncodedImage imageData, Matrix matrix, boolean visible, int layer) throws QTException
itsSpriteWorld
- Specifies the sprite world.idh
- an ImageDescription object that describes the image.imageData
- Contains the sprite's image data.matrix
- A Matrix object describing the sprite's matrix.visible
- True if the sprite is visible.layer
- The sprite's layer.Method Detail |
public SpriteWorld getSpriteWorld()
public void invalidate()
public boolean hitTest(int flags, QDPoint loc) throws StdQTException
flags
- Specifies the control flags.loc
- Specifies the test point.public Matrix getMatrix() throws StdQTException
public void setMatrix(Matrix matrix) throws StdQTException
matrix
- Specifies the matrix.public ImageDescription getImageDescription() throws StdQTException
public java.awt.Dimension getInitialSize() throws StdQTException
public QDDimension getOriginalSize() throws StdQTException
public void setImageDescription(ImageDescription idh) throws StdQTException
idh
- Specifies the image description.public RawEncodedImage getImageData() throws StdQTException
public void setImageData(EncodedImage data) throws StdQTException
data
- Specifies the image data.public boolean setImageDataIfDifferent(EncodedImage data) throws StdQTException
This method can be useful to use if the SpriteWorld the Sprite is a member of
should be redrawn after changing the image data of a Sprite.
QuickTime::SetSpriteProperty ()
data
- Specifies the image data.public boolean getVisible() throws StdQTException
public void setVisible(boolean visible) throws StdQTException
visible
- Specifies the visibility.public int getLayer() throws StdQTException
public void setLayer(int layer) throws StdQTException
layer
- Specifies the layer.public GraphicsMode getGraphicsMode() throws StdQTException
public void setGraphicsMode(GraphicsMode gMode) throws StdQTException
gMode
- Specifies the graphics mode.public int getImageDataSize() throws StdQTException
public void setImageDataSize(int size) throws StdQTException
size
- the size of the image datapublic void remove()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |