Class CompositeRable8Bit
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.CompositeRable8Bit
- All Implemented Interfaces:
RenderableImage,CompositeRable,Filter,FilterColorInterpolation,PaintRable
public class CompositeRable8Bit
extends AbstractColorInterpolationRable
implements CompositeRable, PaintRable
Composites a list of images according to a single composite rule.
the image are applied in the order they are in the List given.
- Version:
- $Id: CompositeRable8Bit.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
Field Summary
FieldsFields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
csLinearFields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
props, srcs, stampFields inherited from interface java.awt.image.renderable.RenderableImage
HINTS_OBSERVED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the composite rule in use for combining the sources.booleanpaintRable(Graphics2D g2d) Should perform the equivilent action as createRendering followed by drawing the RenderedImage to Graphics2D, or return false.voidSet the composite rule to use for combining the sources.voidsetSources(List srcs) The sources to be composited togeather.Methods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods 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, touchMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStampMethods inherited from interface org.apache.batik.ext.awt.image.renderable.FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from interface java.awt.image.renderable.RenderableImage
createDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic
-
Field Details
-
rule
-
-
Constructor Details
-
CompositeRable8Bit
-
-
Method Details
-
setSources
The sources to be composited togeather.- Specified by:
setSourcesin interfaceCompositeRable- Parameters:
srcs- The list of images to be composited by the composite rule.
-
setCompositeRule
Set the composite rule to use for combining the sources.- Specified by:
setCompositeRulein interfaceCompositeRable- Parameters:
cr- Composite rule to use.
-
getCompositeRule
Get the composite rule in use for combining the sources.- Specified by:
getCompositeRulein interfaceCompositeRable- Returns:
- Composite rule currently in use.
-
paintRable
Should perform the equivilent action as createRendering followed by drawing the RenderedImage to Graphics2D, or return false.- Specified by:
paintRablein interfacePaintRable- Parameters:
g2d- The Graphics2D to draw to.- Returns:
- true if the paint call succeeded, false if for some reason the paint failed (in which case a createRendering should be used).
-
createRendering
- Specified by:
createRenderingin interfaceRenderableImage
-