|
||||||||||
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.AbstractRable
org.apache.batik.gvt.filter.GraphicsNodeRable8Bit
public class GraphicsNodeRable8Bit
This implementation of RenderableImage will render its input GraphicsNode into a BufferedImage upon invokation of one of its createRendering methods.
Field Summary |
---|
Fields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable |
---|
props, srcs, stamp |
Fields inherited from interface java.awt.image.renderable.RenderableImage |
---|
HINTS_OBSERVED |
Constructor Summary | |
---|---|
GraphicsNodeRable8Bit(GraphicsNode node)
|
|
GraphicsNodeRable8Bit(GraphicsNode node,
boolean usePrimitivePaint)
|
|
GraphicsNodeRable8Bit(GraphicsNode node,
java.util.Map props)
|
Method Summary | |
---|---|
void |
clearCache()
Clear any cached Red. |
java.awt.image.RenderedImage |
createRendering(java.awt.image.renderable.RenderContext renderContext)
Creates a RenderedImage that represented a rendering of this image using a given RenderContext. |
java.awt.geom.Rectangle2D |
getBounds2D()
Returns the bounds of this Rable in the user coordinate system. |
GraphicsNode |
getGraphicsNode()
Returns the GraphicsNode rendered by this image |
boolean |
getUsePrimitivePaint()
Returns true if this Rable get's it's contents by calling primitivePaint on the associated GraphicsNode or false if it uses paint. |
boolean |
isDynamic()
Returns true if successive renderings (that is, calls to createRendering() or createScaledRendering()) with the same arguments may produce different results. |
boolean |
paintRable(java.awt.Graphics2D g2d)
Should perform the equivilent action as createRendering followed by drawing the RenderedImage to Graphics2D, or return false. |
void |
setGraphicsNode(GraphicsNode node)
Sets the GraphicsNode this image should render |
void |
setUsePrimitivePaint(boolean usePrimitivePaint)
Set to true if this Rable should get it's contents by calling primitivePaint on the associated GraphicsNode or false if it should use paint. |
Methods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable |
---|
createDefaultRendering, createScaledRendering, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, touch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter |
---|
getDependencyRegion, getDirtyRegion, getTimeStamp |
Methods inherited from interface java.awt.image.renderable.RenderableImage |
---|
createDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth |
Constructor Detail |
---|
public GraphicsNodeRable8Bit(GraphicsNode node)
node
- The GraphicsNode this image should representpublic GraphicsNodeRable8Bit(GraphicsNode node, java.util.Map props)
node
- The GraphicsNode this image should representprops
- The Properties for this image.public GraphicsNodeRable8Bit(GraphicsNode node, boolean usePrimitivePaint)
node
- the GraphicsNode this image should representusePrimitivePaint
- indicates if the image should
include any filters or mask operations on nodeMethod Detail |
---|
public boolean getUsePrimitivePaint()
getUsePrimitivePaint
in interface GraphicsNodeRable
public void setUsePrimitivePaint(boolean usePrimitivePaint)
setUsePrimitivePaint
in interface GraphicsNodeRable
public GraphicsNode getGraphicsNode()
getGraphicsNode
in interface GraphicsNodeRable
public void setGraphicsNode(GraphicsNode node)
setGraphicsNode
in interface GraphicsNodeRable
public void clearCache()
public java.awt.geom.Rectangle2D getBounds2D()
getBounds2D
in interface Filter
getBounds2D
in class AbstractRable
public boolean isDynamic()
isDynamic
in interface java.awt.image.renderable.RenderableImage
isDynamic
in class AbstractRable
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)
The created RenderedImage may have a property identified by the String HINTS_OBSERVED to indicate which RenderingHints (from the RenderContext) were used to create the image. In addition any RenderedImages that are obtained via the getSources() method on the created RenderedImage may have such a property.
createRendering
in interface java.awt.image.renderable.RenderableImage
renderContext
- the RenderContext to use to produce the rendering.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |