Class ComponentTransferRable8Bit
- java.lang.Object
-
- org.apache.batik.ext.awt.image.renderable.AbstractRable
-
- org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
-
- org.apache.batik.ext.awt.image.renderable.ComponentTransferRable8Bit
-
- All Implemented Interfaces:
java.awt.image.renderable.RenderableImage
,ComponentTransferRable
,Filter
,FilterColorInterpolation
public class ComponentTransferRable8Bit extends AbstractColorInterpolationRable implements ComponentTransferRable
This class implements the interface expected from a component transfer operation.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALPHA
static int
BLUE
static int
GREEN
static int
RED
-
Fields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
csLinear
-
Fields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
props, srcs, stamp
-
-
Constructor Summary
Constructors Constructor Description ComponentTransferRable8Bit(Filter src, ComponentTransferFunction alphaFunction, ComponentTransferFunction redFunction, ComponentTransferFunction greenFunction, ComponentTransferFunction blueFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.RenderedImage
createRendering(java.awt.image.renderable.RenderContext rc)
ComponentTransferFunction
getAlphaFunction()
Returns the transfer function for the alpha channelComponentTransferFunction
getBlueFunction()
Returns the transfer function for the blue channelComponentTransferFunction
getGreenFunction()
Returns the transfer function for the green channelComponentTransferFunction
getRedFunction()
Returns the transfer function for the red channelFilter
getSource()
Returns the source of the blur operationvoid
setAlphaFunction(ComponentTransferFunction alphaFunction)
Sets the transfer function for the alpha channelvoid
setBlueFunction(ComponentTransferFunction blueFunction)
Sets the transfer function for the blue channelvoid
setGreenFunction(ComponentTransferFunction greenFunction)
Sets the transfer function for the green channelvoid
setRedFunction(ComponentTransferFunction redFunction)
Sets the transfer function for the red channelvoid
setSource(Filter src)
Sets the source of the blur operation-
Methods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
-
Methods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
createDefaultRendering, createScaledRendering, getBounds2D, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touch
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp
-
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
-
-
-
-
Field Detail
-
ALPHA
public static final int ALPHA
- See Also:
- Constant Field Values
-
RED
public static final int RED
- See Also:
- Constant Field Values
-
GREEN
public static final int GREEN
- See Also:
- Constant Field Values
-
BLUE
public static final int BLUE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ComponentTransferRable8Bit
public ComponentTransferRable8Bit(Filter src, ComponentTransferFunction alphaFunction, ComponentTransferFunction redFunction, ComponentTransferFunction greenFunction, ComponentTransferFunction blueFunction)
-
-
Method Detail
-
setSource
public void setSource(Filter src)
Sets the source of the blur operation- Specified by:
setSource
in interfaceComponentTransferRable
- Parameters:
src
- image to offset.
-
getSource
public Filter getSource()
Returns the source of the blur operation- Specified by:
getSource
in interfaceComponentTransferRable
-
getAlphaFunction
public ComponentTransferFunction getAlphaFunction()
Returns the transfer function for the alpha channel- Specified by:
getAlphaFunction
in interfaceComponentTransferRable
-
setAlphaFunction
public void setAlphaFunction(ComponentTransferFunction alphaFunction)
Sets the transfer function for the alpha channel- Specified by:
setAlphaFunction
in interfaceComponentTransferRable
-
getRedFunction
public ComponentTransferFunction getRedFunction()
Returns the transfer function for the red channel- Specified by:
getRedFunction
in interfaceComponentTransferRable
-
setRedFunction
public void setRedFunction(ComponentTransferFunction redFunction)
Sets the transfer function for the red channel- Specified by:
setRedFunction
in interfaceComponentTransferRable
-
getGreenFunction
public ComponentTransferFunction getGreenFunction()
Returns the transfer function for the green channel- Specified by:
getGreenFunction
in interfaceComponentTransferRable
-
setGreenFunction
public void setGreenFunction(ComponentTransferFunction greenFunction)
Sets the transfer function for the green channel- Specified by:
setGreenFunction
in interfaceComponentTransferRable
-
getBlueFunction
public ComponentTransferFunction getBlueFunction()
Returns the transfer function for the blue channel- Specified by:
getBlueFunction
in interfaceComponentTransferRable
-
setBlueFunction
public void setBlueFunction(ComponentTransferFunction blueFunction)
Sets the transfer function for the blue channel- Specified by:
setBlueFunction
in interfaceComponentTransferRable
-
createRendering
public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
- Specified by:
createRendering
in interfacejava.awt.image.renderable.RenderableImage
-
-