org.apache.batik.refimpl.gvt.filter
Class ConcreteCompositeRable

java.lang.Object
  |
  +--org.apache.batik.refimpl.gvt.filter.AbstractRable
        |
        +--org.apache.batik.refimpl.gvt.filter.ConcreteCompositeRable
All Implemented Interfaces:
CompositeRable, Filter, java.awt.image.renderable.RenderableImage

public class ConcreteCompositeRable
extends AbstractRable
implements CompositeRable

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  CompositeRule rule
           
 
Fields inherited from class org.apache.batik.refimpl.gvt.filter.AbstractRable
props, srcs, stamp
 
Fields inherited from interface java.awt.image.renderable.RenderableImage
HINTS_OBSERVED
 
Constructor Summary
ConcreteCompositeRable(java.util.List srcs, CompositeRule rule)
           
 
Method Summary
 java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
           
protected  java.awt.image.RenderedImage createRenderingOver(java.awt.image.renderable.RenderContext rc)
           
 CompositeRule getCompositeRule()
          Get the composite rule in use for combining the sources.
 void setCompositeRule(CompositeRule cr)
          Set the composite rule to use for combining the sources.
 void setSources(java.util.List srcs)
          The sources to be composited togeather.
 
Methods inherited from class org.apache.batik.refimpl.gvt.filter.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.gvt.filter.Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp
 
Methods inherited from interface java.awt.image.renderable.RenderableImage
createDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic
 

Field Detail

rule

protected CompositeRule rule
Constructor Detail

ConcreteCompositeRable

public ConcreteCompositeRable(java.util.List srcs,
                              CompositeRule rule)
Method Detail

setSources

public void setSources(java.util.List srcs)
The sources to be composited togeather.
Specified by:
setSources in interface CompositeRable
Parameters:
srcs - The list of images to be composited by the composite rule.

setCompositeRule

public void setCompositeRule(CompositeRule cr)
Set the composite rule to use for combining the sources.
Specified by:
setCompositeRule in interface CompositeRable
Parameters:
cr - Composite rule to use.

getCompositeRule

public CompositeRule getCompositeRule()
Get the composite rule in use for combining the sources.
Specified by:
getCompositeRule in interface CompositeRable

createRenderingOver

protected java.awt.image.RenderedImage createRenderingOver(java.awt.image.renderable.RenderContext rc)

createRendering

public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
Specified by:
createRendering in interface java.awt.image.renderable.RenderableImage


Copyright © 2000 Apache Software Foundation. All Rights Reserved.