Class anim.Effect
All Packages Class Hierarchy This Package Previous Next Index
Class anim.Effect
java.lang.Object
|
+----anim.Effect
- public class Effect
- extends Object
An abstract class that is subclassed to define an animation effects
that can be applied to displayable object.
Copyright (c) 1996-1997 Intel Corporation
- See Also:
- HorizontalFlipEffect, VerticalFlipEffect, Affine2DEffect, ScaleEffect, RotateZEffect, RotateXEffect
-
Effect()
-
-
activate(boolean)
- Sets the activation state of the effect to true (activated) or
false (not activated)
-
fxSetActive(boolean)
- not applet visible
-
fxSetLimits(int, int)
- not applet visible
-
getOutputView()
- Gets the output View for this effect.
-
isActive()
- returns the current activation state of this effect.
-
objApplyEffect(int)
- not applet visible
-
objRemoveEffect(int)
- not applet visible
-
rippleChange()
- Not applet visible.
-
setInputView(Rectangle)
- Not applet visible.
-
setOutputView()
- Not applet visible.
-
setParams()
- Not applet visible.
-
toggle()
- Toggles the activation state of this effect (if it is active,
it is deactivated and vice versa)
-
toString()
- Returns the String representation of this Effect's internal state.
Effect
public Effect()
fxSetActive
protected int fxSetActive(boolean cond)
- not applet visible
objApplyEffect
protected int objApplyEffect(int hObj)
- not applet visible
objRemoveEffect
protected int objRemoveEffect(int hObj)
- not applet visible
fxSetLimits
protected int fxSetLimits(int width,
int height)
- not applet visible
toggle
public boolean toggle()
- Toggles the activation state of this effect (if it is active,
it is deactivated and vice versa)
- Returns:
- false if the toggle failed, true otherwise
- See Also:
- isActive, activate
activate
public boolean activate(boolean cond)
- Sets the activation state of the effect to true (activated) or
false (not activated)
- Parameters:
- cond - if true, it activates the effect; deactivates otherwise.
- Returns:
- false if the activate failed, true otherwise
- See Also:
- isActive
isActive
public boolean isActive()
- returns the current activation state of this effect.
- Returns:
- true if the effect is active; false otherwise.
- See Also:
- activate
setOutputView
protected abstract boolean setOutputView()
- Not applet visible.
Sets the ouput view of an effect based on its current input view.
This is an abstract method that each effect implements based
on the way that it effects the data
- Returns:
- false if Parameters are out of range for this effect.
true otherwise
getOutputView
public Rectangle getOutputView()
- Gets the output View for this effect. This is a rectangle
that defines the output of this effect. It is in the
coordinate system of the sprite.
- Returns:
- OutputView of effect.
rippleChange
protected boolean rippleChange()
- Not applet visible.
Internal method used by all effects to ripple their changes
in input and output views downstream to other effects and the
sprite.
- Returns:
- false if rippling this change downstream
caused a downstream effect to have out of range parameters.
true otherwise
setParams
protected boolean setParams()
- Not applet visible.
Used by concrete subclasses of this class to actually set parameters
for the effect if they have changed and are within range
- Returns:
- false if setParams failed, true otherwise.
setInputView
protected boolean setInputView(Rectangle rect)
- Not applet visible.
Specifies the input rectangle for this effect. This is a rectangle
that defines the input region for this effect. The input rectangle
is on the coordinate system of the sprite.
This method then adjusts the effect's output view accordingly and
ripples changes to downstream effects and the sprite.
This method is used by an effect A that is applied
immediately before effect B to inform effect B about the
input Rectangle that is going to be presented to it
- Returns:
- false if the passed in rectangle has 0 or negative
height or width or if it
parameters for this effect or a downstream effect to be out of range.
true otherwise
toString
public String toString()
- Returns the String representation of this Effect's internal state.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index