|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object magoffin.matt.ma2.image.awt.BaseAwtMediaEffect magoffin.matt.ma2.image.awt.BumpMapEffect
public class BumpMapEffect
A watermark effect for AWT based processing, that creates a 3D bump map from the watermark image.
Field Summary | |
---|---|
static java.lang.String |
BUMP_MAP_KEY
The key for this effect. |
static java.awt.Color |
DEFAULT_COLOR
Default value for the color property. |
static int |
DEFAULT_ELEVATION_SCALE
Default value for the elevationScale property. |
static float |
DEFAULT_INTENSITY
Default value for the intensity property. |
static double[] |
DEFAULT_LIGHT
Default value for the light property. |
Fields inherited from class magoffin.matt.ma2.image.awt.BaseAwtMediaEffect |
---|
log |
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 | |
---|---|
BumpMapEffect()
|
Method Summary | |
---|---|
java.awt.image.BufferedImage |
applyEffect(MediaItem item,
MediaRequest request,
java.awt.image.BufferedImage source)
Apply an effect on a BufferedImage and return the result
as a new BufferedImage . |
java.awt.Color |
getColor()
|
java.lang.Integer |
getElevationScale()
|
ImageMediaHelper |
getImageMediaHelper()
|
java.lang.Float |
getIntensity()
|
java.lang.String |
getKey()
Get the key for this effect. |
double[] |
getLight()
|
void |
setColor(java.awt.Color color)
|
void |
setElevationScale(java.lang.Integer elevationScale)
|
void |
setImageMediaHelper(ImageMediaHelper imageMediaHelper)
|
void |
setIntensity(java.lang.Float intensity)
|
void |
setLight(double[] light)
|
Methods inherited from class magoffin.matt.ma2.image.awt.BaseAwtMediaEffect |
---|
apply, getMediaBiz, setMediaBiz |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BUMP_MAP_KEY
public static final double[] DEFAULT_LIGHT
light
property.
public static final float DEFAULT_INTENSITY
intensity
property.
public static final java.awt.Color DEFAULT_COLOR
color
property.
public static final int DEFAULT_ELEVATION_SCALE
elevationScale
property.
Constructor Detail |
---|
public BumpMapEffect()
Method Detail |
---|
public java.awt.image.BufferedImage applyEffect(MediaItem item, MediaRequest request, java.awt.image.BufferedImage source)
AwtMediaEffect
BufferedImage
and return the result
as a new BufferedImage
.
If no change is made to the source BufferedImage
then
source can be returned from this method.
item
- the MediaItem the effect is being applied torequest
- the requestsource
- the source BufferedImage
BufferedImage
public java.lang.String getKey()
MediaEffect
Keys uniquely describe the implementation and
function of the effect. The implementation key should come first,
and the function key at the end. Some standard function key values are
defined in this API: MediaEffect.KEY_SCALE
for re-sizing and MediaEffect.KEY_ROTATE
for rotating.
For example, a key might look like image.awt.rotate
for
an image rotation effect based on a Java AWT implementation.
public ImageMediaHelper getImageMediaHelper()
public void setImageMediaHelper(ImageMediaHelper imageMediaHelper)
imageMediaHelper
- the imageMediaHelper to setpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the color to setpublic java.lang.Integer getElevationScale()
public void setElevationScale(java.lang.Integer elevationScale)
elevationScale
- the elevationScale to setpublic java.lang.Float getIntensity()
public void setIntensity(java.lang.Float intensity)
intensity
- the intensity to setpublic double[] getLight()
public void setLight(double[] light)
light
- the light to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |