|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object magoffin.matt.ma2.support.AbstractMediaHandler magoffin.matt.ma2.image.BaseImageMediaHandler magoffin.matt.ma2.image.awt.BaseAwtImageMediaHandler
public abstract class BaseAwtImageMediaHandler
Base implementation of MediaHandler
that uses the AWT
for image processing.
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 |
---|
public BaseAwtImageMediaHandler(java.lang.String mime)
mime
- the MIME typeMethod Detail |
---|
public MediaEffect getEffect(java.lang.String key, java.util.Map<java.lang.String,?> effectParameters)
MediaHandler
Implementaions must define the keys they support, and define the parameters that go with it.
getEffect
in interface MediaHandler
getEffect
in class AbstractMediaHandler
key
- the key of the desired effecteffectParameters
- a Map of parameters (optional)
public java.util.Map<java.lang.String,AwtMediaEffect> getAwtMediaEffectMap()
public void setAwtMediaEffectMap(java.util.Map<java.lang.String,AwtMediaEffect> awtMediaEffectMap)
awtMediaEffectMap
- The awtMediaEffectMap to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |