Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.ext.awt.image.renderable
Class CompositeRable8Bit  view CompositeRable8Bit download CompositeRable8Bit.java

java.lang.Object
  extended byorg.apache.batik.ext.awt.image.renderable.AbstractRable
      extended byorg.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
          extended byorg.apache.batik.ext.awt.image.renderable.CompositeRable8Bit
All Implemented Interfaces:
CompositeRable, Filter, FilterColorInterpolation, PaintRable, java.awt.image.renderable.RenderableImage

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,v 1.15 2004/08/18 07:13:59 vhardy Exp $

Field Summary
protected  org.apache.batik.ext.awt.image.CompositeRule rule
           
 
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
 
Fields inherited from interface java.awt.image.renderable.RenderableImage
HINTS_OBSERVED
 
Constructor Summary
CompositeRable8Bit(java.util.List srcs, org.apache.batik.ext.awt.image.CompositeRule rule, boolean csIsLinear)
           
 
Method Summary
 java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
           
 org.apache.batik.ext.awt.image.CompositeRule getCompositeRule()
          Get the composite rule in use for combining the sources.
 boolean paintRable(java.awt.Graphics2D g2d)
          Should perform the equivilent action as createRendering followed by drawing the RenderedImage to Graphics2D, or return false.
 void setCompositeRule(org.apache.batik.ext.awt.image.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.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.FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
 
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.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 org.apache.batik.ext.awt.image.CompositeRule rule
Constructor Detail

CompositeRable8Bit

public CompositeRable8Bit(java.util.List srcs,
                          org.apache.batik.ext.awt.image.CompositeRule rule,
                          boolean csIsLinear)
Method Detail

setSources

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

Specified by:
setSources in interface CompositeRable

setCompositeRule

public void setCompositeRule(org.apache.batik.ext.awt.image.CompositeRule cr)
Set the composite rule to use for combining the sources.

Specified by:
setCompositeRule in interface CompositeRable

getCompositeRule

public org.apache.batik.ext.awt.image.CompositeRule getCompositeRule()
Get the composite rule in use for combining the sources.

Specified by:
getCompositeRule in interface CompositeRable

paintRable

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

Specified by:
paintRable in interface PaintRable

createRendering

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