org.apache.batik.ext.awt.image.renderable
public class DisplacementMapRable8Bit extends AbstractColorInterpolationRable implements DisplacementMapRable
Constructor Summary | |
---|---|
DisplacementMapRable8Bit(List sources, double scale, ARGBChannel xChannelSelector, ARGBChannel yChannelSelector) |
Method Summary | |
---|---|
RenderedImage | createRendering(RenderContext rc) |
Rectangle2D | getBounds2D() |
Shape | getDependencyRegion(int srcIndex, Rectangle2D outputRgn)
Returns the region of input data is is required to generate
outputRgn. |
Shape | getDirtyRegion(int srcIndex, Rectangle2D inputRgn)
This calculates the region of output that is affected by a change
in a region of input. |
double | getScale()
Returns the displacement scale factor |
ARGBChannel | getXChannelSelector()
Returns the xChannelSelector |
ARGBChannel | getYChannelSelector()
Returns the yChannelSelector |
void | setScale(double scale)
The displacement scale factor |
void | setSources(List sources)
Sets this filter sources. |
void | setXChannelSelector(ARGBChannel xChannelSelector)
Select which component values will be used
for displacement along the X axis |
void | setYChannelSelector(ARGBChannel yChannelSelector)
Select which component values will be used
for displacement along the Y axis |
Parameters: srcIndex The source to do the dependency calculation for. outputRgn The region of output you are interested in generating dependencies for. The is given in the user coordiate system for this node.
Returns: The region of input required. This is in the user coordinate system for the source indicated by srcIndex.
Parameters: srcIndex The input that inputRgn reflects changes in. inputRgn the region of input that has changed, used to calculate the returned shape. This is given in the user coordinate system of the source indicated by srcIndex.
Returns: The region of output that would be invalid given a change to inputRgn of the source selected by srcIndex. this is in the user coordinate system of this node.
Parameters: scale can be any number.
Parameters: xChannelSelector value is among R, G, B and A.
Parameters: yChannelSelector value is among R, G, B and A.