public class GraphicsNodeRable8Bit extends AbstractRable implements GraphicsNodeRable, PaintRable
props, srcs, stampHINTS_OBSERVED| Constructor and Description |
|---|
GraphicsNodeRable8Bit(GraphicsNode node) |
GraphicsNodeRable8Bit(GraphicsNode node,
boolean usePrimitivePaint) |
GraphicsNodeRable8Bit(GraphicsNode node,
Map props) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clear any cached Red.
|
RenderedImage |
createRendering(RenderContext renderContext)
Creates a RenderedImage that represented a rendering of this image
using a given RenderContext.
|
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(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, touchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDependencyRegion, getDirtyRegion, getTimeStampcreateDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidthpublic GraphicsNodeRable8Bit(GraphicsNode node)
node - The GraphicsNode this image should representpublic GraphicsNodeRable8Bit(GraphicsNode node, 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 nodepublic boolean getUsePrimitivePaint()
GraphicsNode or
false if it uses paint.getUsePrimitivePaint in interface GraphicsNodeRablepublic void setUsePrimitivePaint(boolean usePrimitivePaint)
GraphicsNode or false
if it should use paint.setUsePrimitivePaint in interface GraphicsNodeRablepublic GraphicsNode getGraphicsNode()
GraphicsNode rendered by this imagegetGraphicsNode in interface GraphicsNodeRableGraphicsNode associated with this image.public void setGraphicsNode(GraphicsNode node)
GraphicsNode this image should rendersetGraphicsNode in interface GraphicsNodeRablepublic void clearCache()
public Rectangle2D getBounds2D()
getBounds2D in interface FiltergetBounds2D in class AbstractRablepublic boolean isDynamic()
isDynamic in interface RenderableImageisDynamic in class AbstractRablepublic boolean paintRable(Graphics2D g2d)
paintRable in interface PaintRableg2d - The Graphics2D to draw to.public RenderedImage createRendering(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 RenderableImagerenderContext - the RenderContext to use to produce the rendering.Copyright © 2000–2020 Apache Software Foundation. All rights reserved.