Package ca.cgjennings.ui.anim
Class AbstractFilteredComposer
- java.lang.Object
-
- ca.cgjennings.ui.anim.AbstractFilteredComposer
-
- All Implemented Interfaces:
FrameComposer
- Direct Known Subclasses:
TimeShiftedComposer
public abstract class AbstractFilteredComposer extends java.lang.Object implements FrameComposer
This is an abstract base class for composition filters: compositions which modify the behaviour of other compositions.- Since:
- 3.0
- Author:
- Chris Jennings
-
-
Constructor Summary
Constructors Constructor Description AbstractFilteredComposer(Animation animation)
Creates a filter for an animation.AbstractFilteredComposer(FrameComposer composer)
Creates a filter for an existing composition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FrameComposer
getComposer()
Returns the filtered composer.void
setComposer(FrameComposer composer)
Sets the composer to be filtered.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ca.cgjennings.ui.anim.FrameComposer
composeFrame
-
-
-
-
Constructor Detail
-
AbstractFilteredComposer
public AbstractFilteredComposer(FrameComposer composer)
Creates a filter for an existing composition.- Parameters:
composer
- the composition to filter- Throws:
java.lang.NullPointerException
- if the composer isnull
-
AbstractFilteredComposer
public AbstractFilteredComposer(Animation animation)
Creates a filter for an animation. This will create a filter for the composition set on the animation and then replace the animation's composition with this filter.- Parameters:
animation
- the animation whose composer should be filtered- Throws:
java.lang.NullPointerException
- if the animation isnull
-
-
Method Detail
-
getComposer
public FrameComposer getComposer()
Returns the filtered composer.- Returns:
- the composer being immediately filtered by this composer
-
setComposer
public void setComposer(FrameComposer composer)
Sets the composer to be filtered.- Parameters:
composer
- the composer to which filtering will be applied- Throws:
java.lang.NullPointerException
- if the composer isnull
-
-