|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.app.anim.TwoDSprite
A TwoDSprite is a specialised presenter for image data within the context of a SpriteWorld. It contains information also about the layer within the SpriteWorld that the image presented by the Sprite is drawn. It also contains information about visibility and Matrix transformations and GraphicsMode drawing transformations that are applied to the image data when the Sprite is drawn in the SpriteWorld.
Typically an application will provide the image data and presentation characteristics and the SWCompositor assumes the responsibility of creating the actual TwoDSprite's Sprite that is used to present this data in the internal SpriteWorld that the SWCompositor uses to render and construct its image. The TwoDSprite uses the quicktime.std.anim.Sprite class to draw the image in a quicktime.std.anim.SpriteWorld.
quicktime.app.display.Compositor,
TwoDSpriteInfo| Field Summary | |
protected java.lang.String |
label
Deprecated. The actionCommand string that is presented to the QTActionListeners of the QTButton.* @deprecated since QTJava 6.1 |
| Fields inherited from interface quicktime.app.display.Layerable |
kBackMostLayer |
| Constructor Summary | |
TwoDSprite()
Deprecated. since QTJava 6.1 |
|
TwoDSprite(ImageDataSequence images,
int frame,
Matrix matrix,
boolean visibility,
int layer)
Deprecated. since QTJava 6.1 |
|
TwoDSprite(ImageDataSequence images,
int frame,
Matrix matrix,
boolean visibility,
int layer,
GraphicsMode graphicsMode)
Deprecated. since QTJava 6.1 |
|
TwoDSprite(ImageSpec image,
Matrix matrix,
boolean visibility,
int layer)
Deprecated. since QTJava 6.1 |
|
TwoDSprite(ImageSpec image,
Matrix matrix,
boolean visibility,
int layer,
GraphicsMode graphicsMode)
Deprecated. since QTJava 6.1 |
|
TwoDSprite(Matrix matrix,
int layer,
GraphicsMode graphicsMode)
Deprecated. since QTJava 6.1 |
|
TwoDSprite(TwoDSpriteInfo spriteInfo)
Deprecated. since QTJava 6.1 |
|
| Method Summary | |
void |
createSprite(SpriteWorld sw)
Deprecated. since QTJava 6.1 |
boolean |
equals(java.lang.Object obj)
Deprecated. Returns true if the TwoDSprite represents the same Sprite object * @deprecated since QTJava 6.1 |
ImageDescription |
getDescription()
Deprecated. since QTJava 6.1 |
GraphicsMode |
getGraphicsMode()
Deprecated. since QTJava 6.1 |
EncodedImage |
getImage()
Deprecated. since QTJava 6.1 |
java.awt.Dimension |
getInitialSize()
Deprecated. since QTJava 4.0 |
java.lang.String |
getLabel()
Deprecated. since QTJava 6.1 |
int |
getLayer()
Deprecated. since QTJava 6.1 |
Matrix |
getMatrix()
Deprecated. since QTJava 6.1 |
QDDimension |
getOriginalSize()
Deprecated. since QTJava 6.1 |
SWCompositor |
getParent()
Deprecated. since QTJava 6.1 |
TwoDSpriteInfo |
getSpriteInfo()
Deprecated. since QTJava 6.1 |
boolean |
getVisible()
Deprecated. since QTJava 6.1 |
boolean |
hitTest(int flags,
QDPoint loc)
Deprecated. since QTJava 6.1 |
void |
invalidate()
Deprecated. since QTJava 6.1 |
boolean |
isValid()
Deprecated. since QTJava 6.1 |
void |
notifyComplete()
Deprecated. since QTJava 6.1 |
void |
remove()
Deprecated. since QTJava 6.1 |
protected void |
removeNotify()
Deprecated. since QTJava 6.1 |
void |
setDescription(ImageDescription idh)
Deprecated. since QTJava 6.1 |
void |
setGraphicsMode(GraphicsMode gMode)
Deprecated. since QTJava 6.1 |
void |
setImage(EncodedImage image)
Deprecated. since QTJava 6.1 |
void |
setImageData(EncodedImage im,
ImageDescription id)
Deprecated. since QTJava 6.1 |
void |
setLabel(java.lang.String label)
Deprecated. since QTJava 6.1 |
void |
setLayer(int layer)
Deprecated. since QTJava 6.1 |
void |
setMatrix(Matrix matrix)
Deprecated. since QTJava 6.1 |
boolean |
setNotifier(Notifier notifier)
Deprecated. since QTJava 6.1 |
void |
setVisible(boolean visible)
Deprecated. since QTJava 6.1 |
java.lang.String |
toString()
Deprecated. since QTJava 6.1 |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String label
| Constructor Detail |
public TwoDSprite(TwoDSpriteInfo spriteInfo)
throws QTException
spriteInfo - the image and layout information for the sprite when it is created.
public TwoDSprite()
throws QTException
public TwoDSprite(Matrix matrix,
int layer,
GraphicsMode graphicsMode)
throws QTException
matrix - the display matrix of the spritelayer - the layer of the SpriteWorld where the Sprite will be drawngraphicsMode - the GraphicsMode that is applied to the rendering of the
image data, this can be null
public TwoDSprite(ImageSpec image,
Matrix matrix,
boolean visibility,
int layer)
throws QTException
image - the image data and description that describes the image of the spritematrix - the display matrix of the spritevisibility - whether the sprite will be visible (true) or not (false) when createdlayer - the layer of the SpriteWorld where the Sprite will be drawn
public TwoDSprite(ImageSpec image,
Matrix matrix,
boolean visibility,
int layer,
GraphicsMode graphicsMode)
throws QTException
image - the image data and description that describes the image of the spritematrix - the display matrix of the spritevisibility - whether the sprite will be visible (true) or not (false) when createdlayer - the layer of the SpriteWorld where the Sprite will be drawngraphicsMode - the GraphicsMode that is applied to the rendering of the
image data, this can be null
public TwoDSprite(ImageDataSequence images,
int frame,
Matrix matrix,
boolean visibility,
int layer)
throws QTException
images - the image data and description that describes the images of the spriteframe - the frame number within the images that will be used as the current image for
the sprite when it is createdmatrix - the display matrix of the spritevisibility - whether the sprite will be visible (true) or not (false) when createdlayer - the layer of the SpriteWorld where the Sprite will be drawn
public TwoDSprite(ImageDataSequence images,
int frame,
Matrix matrix,
boolean visibility,
int layer,
GraphicsMode graphicsMode)
throws QTException
images - the image data and description that describes the images of the spriteframe - the frame number within the images that will be used as the current image for
the sprite when it is createdmatrix - the display matrix of the spritevisibility - whether the sprite will be visible (true) or not (false) when createdlayer - the layer of the SpriteWorld where the Sprite will be drawngraphicsMode - the GraphicsMode that is applied to the rendering of the
image data, this can be null| Method Detail |
public void setLabel(java.lang.String label)
label - a string that is associated with this sprite.public java.lang.String getLabel()
public boolean setNotifier(Notifier notifier)
setNotifier in interface NotifyListenernotifier - the Notifier that will notify the listener when it
has reached the state that the listener expects.
public void notifyComplete()
notifyComplete in interface NotifyListener
public void setImageData(EncodedImage im,
ImageDescription id)
throws QTException
setImageData in interface ImageSettableim - the EncodedImage image dataid - the ImageDescription that describes the format of the EncodedImage data.
QTException
public void setImage(EncodedImage image)
throws QTException
QTExceptionpublic SWCompositor getParent()
public boolean isValid()
public void remove()
throws QTException
QTExceptioncreateSprite
public TwoDSpriteInfo getSpriteInfo()
throws QTException
QTException
protected void removeNotify()
throws QTException
QTException
public void createSprite(SpriteWorld sw)
throws QTException
sw - the Sprite world that the Sprite will appear in
QTException
public Matrix getMatrix()
throws QTException
getMatrix in interface TransformableQTException
public void setMatrix(Matrix matrix)
throws QTException
setMatrix in interface TransformableQTException
public java.awt.Dimension getInitialSize()
throws QTException
QTException()
public QDDimension getOriginalSize()
throws QTException
getOriginalSize in interface TransformableQTException
public final void invalidate()
throws QTException
QTException
public boolean hitTest(int flags,
QDPoint loc)
throws QTException
flags - Specifies the control flags.loc - Specifies the test point.
QTException
public ImageDescription getDescription()
throws QTException
getDescription in interface ImageSpecQTException
public void setDescription(ImageDescription idh)
throws QTException
idh - Specifies the image description.
QTException
public EncodedImage getImage()
throws QTException
getImage in interface ImageSpecQTException
public boolean getVisible()
throws QTException
QTException
public void setVisible(boolean visible)
throws QTException
visible - Specifies the visibility.
QTException
public int getLayer()
throws QTException
getLayer in interface LayerableQTException
public void setLayer(int layer)
throws QTException
setLayer in interface Layerablelayer - Specifies the layer.
QTException
public GraphicsMode getGraphicsMode()
throws QTException
getGraphicsMode in interface CompositableQTException
public void setGraphicsMode(GraphicsMode gMode)
throws QTException
setGraphicsMode in interface CompositablegMode - Specifies the graphics mode.
QTExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||