magoffin.matt.ma2.image.awt
Class BaseAwtImageMediaHandler

java.lang.Object
  extended by magoffin.matt.ma2.support.AbstractMediaHandler
      extended by magoffin.matt.ma2.image.BaseImageMediaHandler
          extended by magoffin.matt.ma2.image.awt.BaseAwtImageMediaHandler
All Implemented Interfaces:
MediaHandler
Direct Known Subclasses:
BaseImageIOMediaHandler

public abstract class BaseAwtImageMediaHandler
extends BaseImageMediaHandler

Base implementation of MediaHandler that uses the AWT for image processing.

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

Field Summary
 
Fields inherited from class magoffin.matt.ma2.image.BaseImageMediaHandler
DEFAULT_ORIENTATION_180_VALUE, DEFAULT_ORIENTATION_90_CLOCKWISE_VALUE, DEFAULT_ORIENTATION_90_COUNTER_CLOCKWISE_VALUE, DEFAULT_ORIENTATION_METADATA_KEY, ROTATE_180, ROTATE_90_CCW, ROTATE_90_CW
 
Fields inherited from class magoffin.matt.ma2.support.AbstractMediaHandler
log, METADATA_PARAMETER_KEY
 
Constructor Summary
BaseAwtImageMediaHandler(java.lang.String mime)
          Construct with MIME type.
 
Method Summary
 java.util.Map<java.lang.String,AwtMediaEffect> getAwtMediaEffectMap()
           
 MediaEffect getEffect(java.lang.String key, java.util.Map<java.lang.String,?> effectParameters)
          Get a MediaEffect instance for a specific key.
 void setAwtMediaEffectMap(java.util.Map<java.lang.String,AwtMediaEffect> awtMediaEffectMap)
           
 
Methods inherited from class magoffin.matt.ma2.image.BaseImageMediaHandler
getOrientation180Value, getOrientation90ClockwiseValue, getOrientation90CounterClockwiseValue, getOrientationMetadataKey, handleMetadata, needToRotate, setOrientation180Value, setOrientation90ClockwiseValue, setOrientation90CounterClockwiseValue, setOrientationMetadataKey
 
Methods inherited from class magoffin.matt.ma2.support.AbstractMediaHandler
applyEffects, createMetadataList, defaultHandleRequestOriginal, getDomainObjectFactory, getFileExtension, getMediaBiz, getMediaMetadataInstance, getMime, getNoWatermarkSizes, getPreferredFileExtension, getRequestEffects, getSmetaPropertyMap, getUserBiz, needToAlter, setDomainObjectFactory, setMediaBiz, setMime, setNoWatermarkSizes, setPreferredFileExtension, setSmetaPropertyMap, setUserBiz
 
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.MediaHandler
createNewMediaItem, handleMediaRequest
 

Constructor Detail

BaseAwtImageMediaHandler

public BaseAwtImageMediaHandler(java.lang.String mime)
Construct with MIME type.

Parameters:
mime - the MIME type
Method Detail

getEffect

public MediaEffect getEffect(java.lang.String key,
                             java.util.Map<java.lang.String,?> effectParameters)
Description copied from interface: MediaHandler
Get a MediaEffect instance for a specific key.

Implementaions must define the keys they support, and define the parameters that go with it.

Specified by:
getEffect in interface MediaHandler
Overrides:
getEffect in class AbstractMediaHandler
Parameters:
key - the key of the desired effect
effectParameters - a Map of parameters (optional)
Returns:
a MediaEffect instance

getAwtMediaEffectMap

public java.util.Map<java.lang.String,AwtMediaEffect> getAwtMediaEffectMap()
Returns:
Returns the awtMediaEffectMap.

setAwtMediaEffectMap

public void setAwtMediaEffectMap(java.util.Map<java.lang.String,AwtMediaEffect> awtMediaEffectMap)
Parameters:
awtMediaEffectMap - The awtMediaEffectMap to set.