magoffin.matt.ma2.image.awt
Class BaseAwtMediaEffect

java.lang.Object
  extended by magoffin.matt.ma2.image.awt.BaseAwtMediaEffect
All Implemented Interfaces:
AwtMediaEffect, MediaEffect
Direct Known Subclasses:
BumpMapEffect, CompositeEffect, RotateEffect, ScaleEffect

public abstract class BaseAwtMediaEffect
extends java.lang.Object
implements AwtMediaEffect

Base implementation of AwtMediaEffect.

The configurable properties of this class are:

mediaBiz
The MediaBiz implementation to use.

Version:
$Revision: 43 $ $Date: 2007-10-21 11:10:01 +1300 (Sun, 21 Oct 2007) $
Author:
Matt Magoffin (spamsqr@msqr.us)

Field Summary
protected  org.apache.log4j.Logger log
          A class logger.
 
Fields inherited from interface magoffin.matt.ma2.image.awt.AwtMediaEffect
INPUT_BUFFERED_IMAGE_KEY
 
Fields inherited from interface magoffin.matt.ma2.MediaEffect
KEY_ROTATE, KEY_SCALE, KEY_WATERMARK, MEDIA_REQUEST_PARAM_ROTATE_DEGREES, MEDIA_REQUEST_PARAM_WATERMARK_RESOURCE
 
Constructor Summary
BaseAwtMediaEffect()
           
 
Method Summary
 void apply(MediaItem item, MediaRequest request, MediaResponse response)
          Apply the effect.
 MediaBiz getMediaBiz()
           
 void setMediaBiz(MediaBiz mediaBiz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface magoffin.matt.ma2.image.awt.AwtMediaEffect
applyEffect
 
Methods inherited from interface magoffin.matt.ma2.MediaEffect
getKey
 

Field Detail

log

protected final org.apache.log4j.Logger log
A class logger.

Constructor Detail

BaseAwtMediaEffect

public BaseAwtMediaEffect()
Method Detail

apply

public void apply(MediaItem item,
                  MediaRequest request,
                  MediaResponse response)
Description copied from interface: MediaEffect
Apply the effect.

MediaHandler and MediaEffect implementations can utilize the MediaRequest.getParameters() map to keep track of request processing state during processing. Different implementations of MediaHandler will support different implementations of MediaEffects.

Specified by:
apply in interface MediaEffect
Parameters:
item - the item being processed
request - the current request
response - the current response

getMediaBiz

public MediaBiz getMediaBiz()
Returns:
Returns the mediaBiz.

setMediaBiz

public void setMediaBiz(MediaBiz mediaBiz)
Parameters:
mediaBiz - The mediaBiz to set.