public class GraphicsNodeRable8Bit extends AbstractRable implements GraphicsNodeRable, PaintRable
props, srcs, stamp
Constructor and Description |
---|
GraphicsNodeRable8Bit(GraphicsNode node) |
GraphicsNodeRable8Bit(GraphicsNode node,
boolean usePrimitivePaint) |
GraphicsNodeRable8Bit(GraphicsNode node,
java.util.Map props) |
Modifier and Type | Method and Description |
---|---|
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. |
createDefaultRendering, createScaledRendering, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, touch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependencyRegion, getDirtyRegion, getTimeStamp
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 node
public boolean getUsePrimitivePaint()
GraphicsNode
or
false if it uses paint.getUsePrimitivePaint
in interface GraphicsNodeRable
public void setUsePrimitivePaint(boolean usePrimitivePaint)
GraphicsNode
or false
if it should use paint.setUsePrimitivePaint
in interface GraphicsNodeRable
public GraphicsNode getGraphicsNode()
GraphicsNode
rendered by this imagegetGraphicsNode
in interface GraphicsNodeRable
GraphicsNode
associated with this image.public void setGraphicsNode(GraphicsNode node)
GraphicsNode
this image should rendersetGraphicsNode
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.Copyright © 2022 Apache Software Foundation. All Rights Reserved.