public abstract class AbstractRable extends java.lang.Object implements Filter
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
props |
protected java.util.Vector |
srcs |
protected long |
stamp |
Modifier | Constructor and Description |
---|---|
protected |
AbstractRable()
void constructor.
|
protected |
AbstractRable(Filter src)
Construct an Abstract Rable from src.
|
protected |
AbstractRable(Filter src,
java.util.Map props)
Construct an Abstract Rable from src and props.
|
protected |
AbstractRable(java.util.List srcs)
Construct an Abstract Rable from a list of sources.
|
protected |
AbstractRable(java.util.List srcs,
java.util.Map props)
Construct an Abstract Rable from a list of sources, and bounds.
|
Modifier and Type | Method and Description |
---|---|
java.awt.image.RenderedImage |
createDefaultRendering() |
java.awt.image.RenderedImage |
createScaledRendering(int w,
int h,
java.awt.RenderingHints hints) |
java.awt.geom.Rectangle2D |
getBounds2D()
Returns the bounds of the current image.
|
java.awt.Shape |
getDependencyRegion(int srcIndex,
java.awt.geom.Rectangle2D outputRgn)
Returns the region of input data is is required to generate
outputRgn.
|
java.awt.Shape |
getDirtyRegion(int srcIndex,
java.awt.geom.Rectangle2D inputRgn)
This calculates the region of output that is affected by a change
in a region of input.
|
float |
getHeight() |
float |
getMinX() |
float |
getMinY() |
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.String[] |
getPropertyNames() |
java.util.Vector |
getSources() |
long |
getTimeStamp()
Returns the current modification timestamp on this Renderable
node.
|
float |
getWidth() |
protected void |
init(Filter src)
Initialize an Abstract Rable from src, bounds and props.
|
protected void |
init(Filter src,
java.util.Map props)
Initialize an Abstract Rable from src, bounds and props.
|
protected void |
init(java.util.List srcs)
Initialize an Abstract Rable from a list of sources, and
possibly a bounds.
|
protected void |
init(java.util.List srcs,
java.util.Map props)
Initialize an Abstract Rable from a list of sources, and
possibly a bounds.
|
boolean |
isDynamic() |
void |
touch()
Increments the time stamp.
|
protected java.util.Vector srcs
protected java.util.Map props
protected long stamp
protected AbstractRable()
protected AbstractRable(Filter src)
src
- will be the first (and only) member of the srcs
Vector. The bounds of src are also used to set the bounds of
this renderable.protected AbstractRable(Filter src, java.util.Map props)
src
- will also be set as the first (and only) member of
the srcs Vector.props
- use to initialize the properties on this renderable image.protected AbstractRable(java.util.List srcs)
srcs
- This is used to initialize the srcs Vector.
The bounds of this renderable will be the union of the bounds
of all the sources in srcs. All the members of srcs must be
CacheableRable otherwise an error will be thrown.protected AbstractRable(java.util.List srcs, java.util.Map props)
srcs
- This is used to initialize the srcs Vector. All
the members of srcs must be CacheableRable otherwise an error
will be thrown.props
- use to initialize the properties on this renderable image.public final void touch()
public long getTimeStamp()
getTimeStamp
in interface Filter
protected void init(Filter src)
src
- will become the first (and only) member of the srcs Vector.protected void init(Filter src, java.util.Map props)
src
- will also be set as the first (and only) member of
the srcs Vector.props
- use to set the properties on this renderable image.
Always clears the current properties (even if null).protected void init(java.util.List srcs)
srcs
- Used the create a new srcs Vector (old sources are dropped).protected void init(java.util.List srcs, java.util.Map props)
srcs
- Used the create a new srcs Vector (old sources are dropped).props
- use to set the properties on this renderable image.
Always clears the current properties (even if null).public java.awt.geom.Rectangle2D getBounds2D()
Filter
getBounds2D
in interface Filter
public java.util.Vector getSources()
getSources
in interface java.awt.image.renderable.RenderableImage
public 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.RenderableImage
public float getMinX()
getMinX
in interface java.awt.image.renderable.RenderableImage
public float getMinY()
getMinY
in interface java.awt.image.renderable.RenderableImage
public float getWidth()
getWidth
in interface java.awt.image.renderable.RenderableImage
public float getHeight()
getHeight
in interface java.awt.image.renderable.RenderableImage
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface java.awt.image.renderable.RenderableImage
public java.lang.String[] getPropertyNames()
getPropertyNames
in interface java.awt.image.renderable.RenderableImage
public boolean isDynamic()
isDynamic
in interface java.awt.image.renderable.RenderableImage
public java.awt.Shape getDependencyRegion(int srcIndex, java.awt.geom.Rectangle2D outputRgn)
Filter
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 java.awt.Shape getDirtyRegion(int srcIndex, java.awt.geom.Rectangle2D inputRgn)
Filter
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.Copyright © 2022 Apache Software Foundation. All Rights Reserved.