public class FilterResRable8Bit extends AbstractRable implements FilterResRable, PaintRable
props, srcs, stamp
Constructor and Description |
---|
FilterResRable8Bit() |
FilterResRable8Bit(Filter src,
int filterResX,
int filterResY) |
Modifier and Type | Method and Description |
---|---|
boolean |
allPaintRable(java.awt.image.renderable.RenderableImage ri)
This returns true if
ri and all of ri 's
sources implement the PaintRable interface. |
java.awt.image.RenderedImage |
createRendering(java.awt.image.renderable.RenderContext renderContext) |
boolean |
distributeAcross(java.awt.image.renderable.RenderableImage src,
java.awt.Graphics2D g2d)
This function attempts to distribute the filterRes operation
across src.
|
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.
|
boolean |
paintRable(java.awt.Graphics2D g2d)
Should perform the equivilent action as
createRendering followed by drawing the RenderedImage.
|
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
|
createDefaultRendering, createScaledRendering, getBounds2D, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp
public FilterResRable8Bit()
public FilterResRable8Bit(Filter src, int filterResX, int filterResY)
public Filter getSource()
getSource
in interface FilterResRable
public void setSource(Filter src)
setSource
in interface FilterResRable
src
- image to offset.public int getFilterResolutionX()
getFilterResolutionX
in interface FilterResRable
public void setFilterResolutionX(int filterResolutionX)
setFilterResolutionX
in interface FilterResRable
public int getFilterResolutionY()
getFilterResolutionY
in interface FilterResRable
public void setFilterResolutionY(int filterResolutionY)
setFilterResolutionY
in interface FilterResRable
public boolean allPaintRable(java.awt.image.renderable.RenderableImage ri)
ri
and all of ri
's
sources implement the PaintRable interface. This is used to
indicate that the chain has a good potential for bypassing the
filterRes operation entirely.
Ideally there would be a checkPaintRable method in PaintRable
that could be used to get a definate answer about a filters
ability to draw directly to a Graphics2D (this can sometimes
'fail' because of the way the Graphics2D is currently
configured).public boolean distributeAcross(java.awt.image.renderable.RenderableImage src, java.awt.Graphics2D g2d)
public boolean paintRable(java.awt.Graphics2D g2d)
paintRable
in interface PaintRable
g2d
- The Graphics2D to draw to.public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext renderContext)
createRendering
in interface java.awt.image.renderable.RenderableImage
Copyright © 2022 Apache Software Foundation. All Rights Reserved.