quicktime.app.image
Class QTFilter

java.lang.Object
  |
  +--quicktime.app.image.QTEffect
        |
        +--quicktime.app.image.QTFilter
All Implemented Interfaces:
Drawable, Listener, QTDrawable, Redrawable, Transformable
Direct Known Subclasses:
QTTransition

Deprecated. since QTJava 6.1

public class QTFilter
extends QTEffect

QTFilters are visual effects that are applied to a single source image. They inherit much of the characteristics of the QTEffect class.


Field Summary
 
Fields inherited from interface quicktime.app.image.Redrawable
kMultiFrame, kSingleFrame
 
Constructor Summary
QTFilter()
          Deprecated. since QTJava 6.1
QTFilter(java.awt.Dimension d)
          Deprecated. since QTJava 4.0
QTFilter(int isSingleFrame)
          Deprecated. since QTJava 6.1
QTFilter(int isSingleFrame, java.awt.Dimension d)
          Deprecated. since QTJava 4.0
QTFilter(int isSingleFrame, QDDimension d)
          Deprecated. since QTJava 6.1
QTFilter(QDDimension d)
          Deprecated. since QTJava 6.1
 
Method Summary
 QDDimension getOriginalSize()
          Deprecated. since QTJava 6.1
 ImageSpec getSourceImage()
          Deprecated. Returns the currently set source image of the QTFilter * @deprecated since QTJava 6.1
 void setEffect(AtomContainer effectParams)
          Deprecated. since QTJava 6.1
 void setSourceImage(ImageSpec image)
          Deprecated. since QTJava 6.1
protected  boolean setUpSequence()
          Deprecated. since QTJava 6.1
 
Methods inherited from class quicktime.app.image.QTEffect
addedTo, checkForEffect, getClip, getCurrentFrame, getDescription, getDisplayBounds, getDSequence, getEffect, getFrames, getGraphicsMode, getGWorld, getImage, getInitialSize, getMatrix, isRedrawing, isSingleFrame, redraw, removedFrom, setClip, setDisplayBounds, setGraphicsMode, setGWorld, setLocation, setMatrix, setRedrawing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QTFilter

public QTFilter()
         throws QTException
Deprecated. since QTJava 6.1

Creates a QTFilter which is a singleFrame filter and an initialSize of 0, 0.


QTFilter

public QTFilter(java.awt.Dimension d)
         throws QTException
Deprecated. since QTJava 4.0

Creates a QTFilter which is a singleFrame filter and specified initialSize.

Parameters:
d - the initSize of the effect.

QTFilter

public QTFilter(QDDimension d)
         throws QTException
Deprecated. since QTJava 6.1

Creates a QTFilter which is a singleFrame filter and specified initialSize.

Parameters:
d - the initSize of the effect.

QTFilter

public QTFilter(int isSingleFrame)
         throws QTException
Deprecated. since QTJava 6.1

Creates a QTFilter of specified frame setting and an initialSize of 0, 0.


QTFilter

public QTFilter(int isSingleFrame,
                java.awt.Dimension d)
         throws QTException
Deprecated. since QTJava 4.0

Creates a QTFilter of specified frame setting and initSize.

Parameters:
d - the initSize of the effect.

QTFilter

public QTFilter(int isSingleFrame,
                QDDimension d)
         throws QTException
Deprecated. since QTJava 6.1

Creates a QTFilter of specified frame setting and initSize.

Parameters:
d - the initSize of the effect.
Method Detail

setEffect

public void setEffect(AtomContainer effectParams)
               throws QTException
Deprecated. since QTJava 6.1

This method will take the incoming parameters and use this as the control parameters for the effect. The container will be locked for the duration of the effect object's life or until another effect is set.

Overrides:
setEffect in class QTEffect
Parameters:
effectParams - the parameters that determine the effect that is run
QTException

getOriginalSize

public QDDimension getOriginalSize()
                            throws QTException
Deprecated. since QTJava 6.1

This method returns the original size before the transformations specified in the returned matrix are applied. If the original size was not specified in the Constructor then the original size of the current sourceImage is returned. If the original size was specified then it is returned.

Specified by:
getOriginalSize in interface Transformable
Overrides:
getOriginalSize in class QTEffect
Returns:
a QDDimension
QTException

setSourceImage

public void setSourceImage(ImageSpec image)
                    throws QTException
Deprecated. since QTJava 6.1

This sets the QT source of the QTFilter, which is the image that the current filter will be applied to when doEffect is called.

Parameters:
image - the image to use as the source of the filter
QTException

getSourceImage

public ImageSpec getSourceImage()
Deprecated. 
Returns the currently set source image of the QTFilter * @deprecated since QTJava 6.1


setUpSequence

protected boolean setUpSequence()
                         throws QTException
Deprecated. since QTJava 6.1

This method is called by a number of other methods to create the DSequence that is used to render the QTEffect. When called the method will create a new DSequence if the required state has been established to enable the creation of the DSequence.

Overrides:
setUpSequence in class QTEffect
Returns:
true if a new DSequence was created, otherwise false.
QTException