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

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

public class ConcreteFilterResRable
extends AbstractRable
implements FilterResRable

Interface for implementing filter resolution.


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
ConcreteFilterResRable()
           
 
Method Summary
 java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext renderContext)
           
 int getFilterResolutionX()
          Returns the resolution along the X axis.
 int getFilterResolutionY()
          Returns the resolution along the Y axis.
 Filter getSource()
          Returns the source to be cropped.
 void setFilterResolutionX(int filterResolutionX)
          Sets the resolution along the X axis, i.e., the maximum size for intermediate images along that axis.
 void setFilterResolutionY(int filterResolutionY)
          Sets the resolution along the Y axis, i.e., the maximum size for intermediate images along that axis.
 void setSource(Filter src)
          Sets the source to be cropped
 
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
 

Constructor Detail

ConcreteFilterResRable

public ConcreteFilterResRable()
Method Detail

getSource

public Filter getSource()
Returns the source to be cropped.
Specified by:
getSource in interface FilterResRable

setSource

public void setSource(Filter src)
Sets the source to be cropped
Specified by:
setSource in interface FilterResRable
Parameters:
src - image to offset.

getFilterResolutionX

public int getFilterResolutionX()
Returns the resolution along the X axis.
Specified by:
getFilterResolutionX in interface FilterResRable

setFilterResolutionX

public void setFilterResolutionX(int filterResolutionX)
Sets the resolution along the X axis, i.e., the maximum size for intermediate images along that axis. The value should be greater than zero to have an effect. Negative values are illegal.
Specified by:
setFilterResolutionX in interface FilterResRable

getFilterResolutionY

public int getFilterResolutionY()
Returns the resolution along the Y axis.
Specified by:
getFilterResolutionY in interface FilterResRable

setFilterResolutionY

public void setFilterResolutionY(int filterResolutionY)
Sets the resolution along the Y axis, i.e., the maximum size for intermediate images along that axis. If the Y-value is less than zero, the scale applied to the rendered images is computed to preserve the image's aspect ratio
Specified by:
setFilterResolutionY in interface FilterResRable

createRendering

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


Copyright © 2000 Apache Software Foundation. All Rights Reserved.