org.apache.batik.ext.awt.image.renderable

Class CompositeRable8Bit

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.
Field Summary
protected CompositeRulerule
Constructor Summary
CompositeRable8Bit(List srcs, CompositeRule rule, boolean csIsLinear)
Method Summary
RenderedImagecreateRendering(RenderContext rc)
CompositeRulegetCompositeRule()
Get 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.
voidsetCompositeRule(CompositeRule cr)
Set the composite rule to use for combining the sources.
voidsetSources(List srcs)
The sources to be composited togeather.

Field Detail

rule

protected CompositeRule rule

Constructor Detail

CompositeRable8Bit

public CompositeRable8Bit(List srcs, CompositeRule rule, boolean csIsLinear)

Method Detail

createRendering

public RenderedImage createRendering(RenderContext rc)

getCompositeRule

public CompositeRule getCompositeRule()
Get the composite rule in use for combining the sources.

Returns: Composite rule currently in use.

paintRable

public boolean paintRable(Graphics2D g2d)
Should perform the equivilent action as createRendering followed by drawing the RenderedImage to Graphics2D, or return false.

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).

setCompositeRule

public void setCompositeRule(CompositeRule cr)
Set the composite rule to use for combining the sources.

Parameters: cr Composite rule to use.

setSources

public void setSources(List srcs)
The sources to be composited togeather.

Parameters: srcs The list of images to be composited by the composite rule.

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.