|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--quicktime.app.anim.TwoDSprite
|
+--quicktime.app.ui.UIElement
This class handles all the tasks of updating and redrawing the TwoDSprite. It takes care of redrawing the Dynamic images that are in the sprite. This class also sets the size and location of the TwoDSprite.
| Field Summary | |
protected ImageSpec |
currentImage
Deprecated. The image used when the UIElement is active* @deprecated since QTJava 6.1 |
protected ImageSpec |
deactiveImage
Deprecated. The image used when the UIElement is deactive* @deprecated since QTJava 6.1 |
| Fields inherited from class quicktime.app.anim.TwoDSprite |
label |
| Fields inherited from interface quicktime.app.display.Layerable |
kBackMostLayer |
| Constructor Summary | |
protected |
UIElement(ImageSpec currentImage,
ImageSpec deactiveImage,
Matrix matrix,
int layer,
GraphicsMode mode)
Deprecated. since QTJava 6.1 |
| Method Summary | |
Invalidator |
addedToCompositor(SWCompositor c,
TwoDSprite s)
Deprecated. Returns an object that invalidates a sprite. |
QDRect |
getBounds()
Deprecated. since QTJava 6.1 |
boolean |
isActive()
Deprecated. since QTJava 6.1 |
void |
removedFromCompositor(SWCompositor c)
Deprecated. When a dynamic image class is removed from a SWCompositor this method is called to allow the class to cleanup any of the invalidation processes it had established in the addedToCompositor call. |
void |
setActive(boolean active)
Deprecated. since QTJava 6.1 |
protected void |
setCurrentImage(ImageSpec newCurrentImage)
Deprecated. since QTJava 6.1 |
void |
setLocation(int tx,
int ty)
Deprecated. since QTJava 6.1 |
void |
setSize(QDDimension size)
Deprecated. since QTJava 6.1 |
| Methods inherited from class quicktime.app.anim.TwoDSprite |
createSprite, equals, getDescription, getGraphicsMode, getImage, getInitialSize, getLabel, getLayer, getMatrix, getOriginalSize, getParent, getSpriteInfo, getVisible, hitTest, invalidate, isValid, notifyComplete, remove, removeNotify, setDescription, setGraphicsMode, setImage, setImageData, setLabel, setLayer, setMatrix, setNotifier, setVisible, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface quicktime.app.image.Compositable |
getGraphicsMode, setGraphicsMode |
| Methods inherited from interface quicktime.app.image.ImageSpec |
getDescription, getImage |
| Field Detail |
protected ImageSpec deactiveImage
protected ImageSpec currentImage
| Constructor Detail |
protected UIElement(ImageSpec currentImage,
ImageSpec deactiveImage,
Matrix matrix,
int layer,
GraphicsMode mode)
throws QTException
currentImage - this will be the currentImage that is presented by the UIElement. It may NOT be nulldeactiveImage - this is the image that will be used if the UIElement is deactiveated. It may be nullmatrix - describes the location and display characteristics of the UIElementlayer - the back to front layer of the UIElement when added to the Compositormode - if specified, a GraphicsMode that is used to render the UIElement| Method Detail |
public void setLocation(int tx,
int ty)
throws QTException
tx - the x coordinatety - the y coordinate
QTException
public void setSize(QDDimension size)
throws QTException
size - the Dimension size in pixel values
QTException
public QDRect getBounds()
throws QTException
QTException
protected void setCurrentImage(ImageSpec newCurrentImage)
throws QTException
newCurrentImage - the current image thats set to be displayed by the TwoDSprite. If null
the UIElement is deactivated.
QTException
public void setActive(boolean active)
throws QTException
active - true will set the state to active
QTExceptionpublic boolean isActive()
public Invalidator addedToCompositor(SWCompositor c,
TwoDSprite s)
throws QTException
DynamicImageThe Invalidators provided with objects that implement the DynamicImage interface will execute at the scale and period of the Compositor when they are created.
addedToCompositor in interface DynamicImagec - the Compositor in which the DynamicImage is a members - the TwoDSprite that is presenting the DynamicImage's image in
the Compositor. This is the sprite that must be invalidated.
QTExceptionSWCompositor
public void removedFromCompositor(SWCompositor c)
throws QTException
DynamicImage
removedFromCompositor in interface DynamicImagec - the SWCompositor it is being removed from
QTExceptionSWCompositor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||