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

java.lang.Object
  |
  +--org.apache.batik.ext.awt.image.renderable.AbstractRable
        |
        +--org.apache.batik.ext.awt.image.renderable.FilterAsAlphaRable
All Implemented Interfaces:
Filter, java.awt.image.renderable.RenderableImage

public class FilterAsAlphaRable
extends AbstractRable

FilterAsAlphaRable implementation. This will take any source Filter and convert it to an alpha channel according the the SVG Mask operation.


Field Summary
static java.awt.RenderingHints.Key KEY_COLORSPACE
           
static java.lang.String PROPERTY_COLORSPACE
           
static java.lang.Object VALUE_COLORSPACE_AGREY
          Notice to source that we only want Greyscale data with an alpha channel.
static java.lang.Object VALUE_COLORSPACE_ALPHA
          Notice to source that we only want an alpha channel.
static java.lang.Object VALUE_COLORSPACE_ALPHA_CONVERT
          Notice to source that we only want an alpha channel.
static java.lang.Object VALUE_COLORSPACE_ARGB
          Notice to source that we prefer an Alpha RGB Image.
static java.lang.Object VALUE_COLORSPACE_GREY
          Notice to source that we only want Greyscale data (no Alpha).
static java.lang.Object VALUE_COLORSPACE_RGB
          Notice to source that we will not use Alpha Channel but we still want RGB data.
 
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
FilterAsAlphaRable(Filter src)
           
 
Method Summary
 java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
           
 java.awt.geom.Rectangle2D getBounds2D()
          Pass-through: returns the source's bounds
 Filter getSource()
           
 
Methods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
createDefaultRendering, createScaledRendering, 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
 

Field Detail

VALUE_COLORSPACE_ARGB

public static java.lang.Object VALUE_COLORSPACE_ARGB
Notice to source that we prefer an Alpha RGB Image.

VALUE_COLORSPACE_RGB

public static java.lang.Object VALUE_COLORSPACE_RGB
Notice to source that we will not use Alpha Channel but we still want RGB data.

VALUE_COLORSPACE_GREY

public static java.lang.Object VALUE_COLORSPACE_GREY
Notice to source that we only want Greyscale data (no Alpha).

VALUE_COLORSPACE_AGREY

public static java.lang.Object VALUE_COLORSPACE_AGREY
Notice to source that we only want Greyscale data with an alpha channel.

VALUE_COLORSPACE_ALPHA

public static java.lang.Object VALUE_COLORSPACE_ALPHA
Notice to source that we only want an alpha channel. The source should simply render alpha (no conversion)

VALUE_COLORSPACE_ALPHA_CONVERT

public static java.lang.Object VALUE_COLORSPACE_ALPHA_CONVERT
Notice to source that we only want an alpha channel. The source should follow the SVG spec for how to convert ARGB, RGB, Grey and AGrey to just an Alpha channel.

KEY_COLORSPACE

public static java.awt.RenderingHints.Key KEY_COLORSPACE

PROPERTY_COLORSPACE

public static final java.lang.String PROPERTY_COLORSPACE
Constructor Detail

FilterAsAlphaRable

public FilterAsAlphaRable(Filter src)
Method Detail

getSource

public Filter getSource()

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D()
Pass-through: returns the source's bounds
Overrides:
getBounds2D in class AbstractRable

createRendering

public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)


Copyright © 2001 Apache Software Foundation. All Rights Reserved.