|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.batik.ext.awt.image.renderable.DeferRable
This class allows for the return of a proxy object quickly, while a heavy weight object is constrcuted in a background Thread. This proxy object will then block if any methods are called on it that require talking to the source object. This is actually a particular instance of a very general pattern this is probably best represented using the Proxy class in the Reflection APIs.
| Fields inherited from interface java.awt.image.renderable.RenderableImage |
HINTS_OBSERVED |
| Constructor Summary | |
DeferRable()
Constructor takes nothing |
|
| Method Summary | |
java.awt.image.RenderedImage |
createDefaultRendering()
Forward the call (blocking until source is set if need be). |
java.awt.image.RenderedImage |
createRendering(java.awt.image.renderable.RenderContext rc)
Forward the call (blocking until source is set if need be). |
java.awt.image.RenderedImage |
createScaledRendering(int w,
int h,
java.awt.RenderingHints hints)
Forward the call (blocking until source is set if need be). |
java.awt.geom.Rectangle2D |
getBounds2D()
Implement the baseclass method to call getSource() so it will block until we have a real source. |
java.awt.Shape |
getDependencyRegion(int srcIndex,
java.awt.geom.Rectangle2D outputRgn)
Forward the call (blocking until source is set if need be). |
java.awt.Shape |
getDirtyRegion(int srcIndex,
java.awt.geom.Rectangle2D inputRgn)
Forward the call (blocking until source is set if need be). |
float |
getHeight()
|
float |
getMinX()
|
float |
getMinY()
|
java.lang.Object |
getProperty(java.lang.String name)
Forward the call (blocking until source is set if need be). |
java.lang.String[] |
getPropertyNames()
Forward the call (blocking until source is set if need be). |
Filter |
getSource()
Key method that blocks if the src has not yet been provided. |
java.util.Vector |
getSources()
|
long |
getTimeStamp()
Returns the current modification timestamp on this Renderable node. |
float |
getWidth()
|
boolean |
isDynamic()
Forward the call (blocking until source is set if need be). |
void |
setSource(Filter src)
Key method that sets the src. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DeferRable()
| Method Detail |
public Filter getSource()
public void setSource(Filter src)
public long getTimeStamp()
FiltergetTimeStamp in interface Filterorg.apache.batik.ext.awt.image.renderable.Filterpublic java.util.Vector getSources()
getSources in interface java.awt.image.renderable.RenderableImagepublic boolean isDynamic()
isDynamic in interface java.awt.image.renderable.RenderableImagepublic java.awt.geom.Rectangle2D getBounds2D()
getBounds2D in interface Filterpublic float getMinX()
getMinX in interface java.awt.image.renderable.RenderableImagepublic float getMinY()
getMinY in interface java.awt.image.renderable.RenderableImagepublic float getWidth()
getWidth in interface java.awt.image.renderable.RenderableImagepublic float getHeight()
getHeight in interface java.awt.image.renderable.RenderableImagepublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface java.awt.image.renderable.RenderableImagepublic java.lang.String[] getPropertyNames()
getPropertyNames in interface java.awt.image.renderable.RenderableImagepublic java.awt.image.RenderedImage createDefaultRendering()
createDefaultRendering in interface java.awt.image.renderable.RenderableImage
public java.awt.image.RenderedImage createScaledRendering(int w,
int h,
java.awt.RenderingHints hints)
createScaledRendering in interface java.awt.image.renderable.RenderableImagepublic java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
createRendering in interface java.awt.image.renderable.RenderableImage
public java.awt.Shape getDependencyRegion(int srcIndex,
java.awt.geom.Rectangle2D outputRgn)
getDependencyRegion in interface Filterorg.apache.batik.ext.awt.image.renderable.FiltersrcIndex - The source to do the dependency calculation for.outputRgn - The region of output you are interested in
generating dependencies for. The is given in the user coordiate
system for this node.
public java.awt.Shape getDirtyRegion(int srcIndex,
java.awt.geom.Rectangle2D inputRgn)
getDirtyRegion in interface Filterorg.apache.batik.ext.awt.image.renderable.FiltersrcIndex - The input that inputRgn reflects changes in.inputRgn - the region of input that has changed, used to
calculate the returned shape. This is given in the user
coordinate system of the source indicated by srcIndex.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||