|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.ext.awt.image.renderable.DeferRable
public class 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.
Field Summary |
---|
Fields inherited from interface java.awt.image.renderable.RenderableImage |
---|
HINTS_OBSERVED |
Constructor Summary | |
---|---|
DeferRable()
Constructor takes nothing |
Method Summary | |
---|---|
RenderedImage |
createDefaultRendering()
Forward the call (blocking until source is set if need be). |
RenderedImage |
createRendering(RenderContext rc)
Forward the call (blocking until source is set if need be). |
RenderedImage |
createScaledRendering(int w,
int h,
RenderingHints hints)
Forward the call (blocking until source is set if need be). |
Rectangle2D |
getBounds2D()
Implement the baseclass method to call getSource() so it will block until we have a real source. |
Shape |
getDependencyRegion(int srcIndex,
Rectangle2D outputRgn)
Forward the call (blocking until source is set if need be). |
Shape |
getDirtyRegion(int srcIndex,
Rectangle2D inputRgn)
Forward the call (blocking until source is set if need be). |
float |
getHeight()
|
float |
getMinX()
|
float |
getMinY()
|
Object |
getProperty(String name)
Forward the call (blocking until source is set if need be). |
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. |
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 |
setBounds(Rectangle2D bounds)
|
void |
setProperties(Map props)
|
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 void setBounds(Rectangle2D bounds)
public void setProperties(Map props)
public long getTimeStamp()
Filter
getTimeStamp
in interface Filter
public Vector getSources()
getSources
in interface RenderableImage
public boolean isDynamic()
isDynamic
in interface RenderableImage
public Rectangle2D getBounds2D()
getBounds2D
in interface Filter
public float getMinX()
getMinX
in interface RenderableImage
public float getMinY()
getMinY
in interface RenderableImage
public float getWidth()
getWidth
in interface RenderableImage
public float getHeight()
getHeight
in interface RenderableImage
public Object getProperty(String name)
getProperty
in interface RenderableImage
public String[] getPropertyNames()
getPropertyNames
in interface RenderableImage
public RenderedImage createDefaultRendering()
createDefaultRendering
in interface RenderableImage
public RenderedImage createScaledRendering(int w, int h, RenderingHints hints)
createScaledRendering
in interface RenderableImage
public RenderedImage createRendering(RenderContext rc)
createRendering
in interface RenderableImage
public Shape getDependencyRegion(int srcIndex, Rectangle2D outputRgn)
getDependencyRegion
in interface Filter
srcIndex
- 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 Shape getDirtyRegion(int srcIndex, Rectangle2D inputRgn)
getDirtyRegion
in interface Filter
srcIndex
- 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |