Class AbstractRable
java.lang.Object
org.apache.batik.ext.awt.image.renderable.AbstractRable
- All Implemented Interfaces:
RenderableImage, Filter
- Direct Known Subclasses:
AbstractColorInterpolationRable, AffineRable8Bit, BackgroundRable8Bit, ClipRable8Bit, FilterAlphaRable, FilterAsAlphaRable, FilterChainRable8Bit, FilterResRable8Bit, FloodRable8Bit, GraphicsNodeRable8Bit, MaskRable8Bit, MorphologyRable8Bit, PadRable8Bit, ProfileRable, RedRable
-
Field Summary
FieldsFields inherited from interface RenderableImage
HINTS_OBSERVED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedvoid constructor.protectedAbstractRable(List srcs) Construct an Abstract Rable from a list of sources.protectedAbstractRable(List srcs, Map props) Construct an Abstract Rable from a list of sources, and bounds.protectedAbstractRable(Filter src) Construct an Abstract Rable from src.protectedAbstractRable(Filter src, Map props) Construct an Abstract Rable from src and props. -
Method Summary
Modifier and TypeMethodDescriptioncreateScaledRendering(int w, int h, RenderingHints hints) Returns the bounds of the current image.getDependencyRegion(int srcIndex, Rectangle2D outputRgn) Returns the region of input data is is required to generate outputRgn.getDirtyRegion(int srcIndex, Rectangle2D inputRgn) This calculates the region of output that is affected by a change in a region of input.floatfloatgetMinX()floatgetMinY()getProperty(String name) String[]longReturns the current modification timestamp on this Renderable node.floatgetWidth()protected voidInitialize an Abstract Rable from a list of sources, and possibly a bounds.protected voidInitialize an Abstract Rable from a list of sources, and possibly a bounds.protected voidInitialize an Abstract Rable from src, bounds and props.protected voidInitialize an Abstract Rable from src, bounds and props.booleanfinal voidtouch()Increments the time stamp.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RenderableImage
createRendering
-
Field Details
-
srcs
-
props
-
stamp
protected long stamp
-
-
Constructor Details
-
AbstractRable
protected AbstractRable()void constructor. The subclass must call one of the flavors of init before the object becomes usable. This is useful when the proper parameters to the init method need to be computed in the subclasses constructor. -
AbstractRable
Construct an Abstract Rable from src.- Parameters:
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.
-
AbstractRable
-
AbstractRable
Construct an Abstract Rable from a list of sources.- Parameters:
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.
-
AbstractRable
Construct an Abstract Rable from a list of sources, and bounds.- Parameters:
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.
-
-
Method Details
-
touch
public final void touch()Increments the time stamp. This should be called when ever the image changes in such a way that cached output should be discarded. -
getTimeStamp
public long getTimeStamp()Returns the current modification timestamp on this Renderable node. This value will change whenever cached output data becomes invalid.- Specified by:
getTimeStampin interfaceFilter- Returns:
- Current modification timestamp value.
-
init
Initialize an Abstract Rable from src, bounds and props. This can be called long after the object is constructed to reset the state of the Renderable.- Parameters:
src- will become the first (and only) member of the srcs Vector.
-
init
Initialize an Abstract Rable from src, bounds and props. This can be called long after the object is constructed to reset the state of the Renderable.- Parameters:
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).
-
init
Initialize an Abstract Rable from a list of sources, and possibly a bounds. This can be called long after the object is constructed to reset the state of the Renderable.- Parameters:
srcs- Used the create a new srcs Vector (old sources are dropped).
-
init
Initialize an Abstract Rable from a list of sources, and possibly a bounds. This can be called long after the object is constructed to reset the state of the Renderable.- Parameters:
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).
-
getBounds2D
Description copied from interface:FilterReturns the bounds of the current image. This should be 'in sync' with getMinX, getMinY, getWidth, getHeight- Specified by:
getBounds2Din interfaceFilter
-
getSources
- Specified by:
getSourcesin interfaceRenderableImage
-
createDefaultRendering
- Specified by:
createDefaultRenderingin interfaceRenderableImage
-
createScaledRendering
- Specified by:
createScaledRenderingin interfaceRenderableImage
-
getMinX
public float getMinX()- Specified by:
getMinXin interfaceRenderableImage
-
getMinY
public float getMinY()- Specified by:
getMinYin interfaceRenderableImage
-
getWidth
public float getWidth()- Specified by:
getWidthin interfaceRenderableImage
-
getHeight
public float getHeight()- Specified by:
getHeightin interfaceRenderableImage
-
getProperty
- Specified by:
getPropertyin interfaceRenderableImage
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceRenderableImage
-
isDynamic
public boolean isDynamic()- Specified by:
isDynamicin interfaceRenderableImage
-
getDependencyRegion
Description copied from interface:FilterReturns the region of input data is is required to generate outputRgn.- Specified by:
getDependencyRegionin interfaceFilter- Parameters:
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.- Returns:
- The region of input required. This is in the user coordinate system for the source indicated by srcIndex.
-
getDirtyRegion
Description copied from interface:FilterThis calculates the region of output that is affected by a change in a region of input.- Specified by:
getDirtyRegionin interfaceFilter- Parameters:
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.- Returns:
- The region of output that would be invalid given a change to inputRgn of the source selected by srcIndex. this is in the user coordinate system of this node.
-