public class CanvasGraphicsNode extends CompositeGraphicsNode
Modifier and Type | Field and Description |
---|---|
protected java.awt.Paint |
backgroundPaint
The background of this canvas graphics node.
|
protected java.awt.geom.AffineTransform |
positionTransform
This is the position transform for this graphics node.
|
protected java.awt.geom.AffineTransform |
viewingTransform
This is the viewing transform for this graphics node.
|
backgroundEnableRgn, children, count, modCount, NULL_RECT, VIEWPORT
changeCompletedEvent, changeStartedEvent, clip, composite, enableBackgroundGraphicsNodeRable, filter, graphicsNodeRable, hints, inverseTransform, isVisible, listeners, mask, parent, pointerEventType, root, transform, weakRef
ALL, FILL, IDENTITY, NONE, PAINTED, STROKE, VISIBLE, VISIBLE_FILL, VISIBLE_PAINTED, VISIBLE_STROKE
Constructor and Description |
---|
CanvasGraphicsNode()
Constructs a new empty
CanvasGraphicsNode . |
Modifier and Type | Method and Description |
---|---|
java.awt.Paint |
getBackgroundPaint()
Returns the background paint of this canvas graphics node.
|
java.awt.geom.AffineTransform |
getPositionTransform() |
java.awt.geom.AffineTransform |
getViewingTransform() |
void |
primitivePaint(java.awt.Graphics2D g2d)
Paints this node without applying Filter, Mask, Composite, and clip.
|
void |
setBackgroundPaint(java.awt.Paint newBackgroundPaint)
Sets the background paint of this canvas graphics node.
|
void |
setPositionTransform(java.awt.geom.AffineTransform at) |
void |
setViewingTransform(java.awt.geom.AffineTransform at) |
add, add, addAll, addAll, clear, contains, contains, containsAll, ensureCapacity, get, getBackgroundEnable, getChildren, getGeometryBounds, getOutline, getPrimitiveBounds, getSensitiveBounds, getTransformedBBox, getTransformedGeometryBounds, getTransformedPrimitiveBounds, getTransformedSensitiveBounds, indexOf, invalidateGeometryCache, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nodeHitAt, remove, remove, removeAll, retainAll, set, setBackgroundEnable, setRoot, setVisible, size, subList, toArray, toArray
fireGraphicsNodeChangeCompleted, fireGraphicsNodeChangeStarted, fireGraphicsNodeChangeStarted, fireGraphicsNodeChangeStarted, getBounds, getClip, getComposite, getEnableBackgroundGraphicsNodeRable, getFilter, getGlobalTransform, getGraphicsNodeRable, getInverseTransform, getMask, getParent, getPointerEventType, getRenderingHints, getRoot, getTransform, getTransformedBounds, getWeakReference, intersects, isAntialiasedClip, isOffscreenBufferNeeded, isVisible, normalizeRectangle, paint, setClip, setComposite, setFilter, setMask, setParent, setPointerEventType, setRenderingHint, setRenderingHints, setRenderingHints, setTransform
protected java.awt.geom.AffineTransform positionTransform
protected java.awt.geom.AffineTransform viewingTransform
protected java.awt.Paint backgroundPaint
public CanvasGraphicsNode()
CanvasGraphicsNode
.public void setBackgroundPaint(java.awt.Paint newBackgroundPaint)
newBackgroundPaint
- the new background paintpublic java.awt.Paint getBackgroundPaint()
public void setPositionTransform(java.awt.geom.AffineTransform at)
public java.awt.geom.AffineTransform getPositionTransform()
public void setViewingTransform(java.awt.geom.AffineTransform at)
public java.awt.geom.AffineTransform getViewingTransform()
public void primitivePaint(java.awt.Graphics2D g2d)
primitivePaint
in interface GraphicsNode
primitivePaint
in class CompositeGraphicsNode
g2d
- the Graphics2D to useCopyright © 2022 Apache Software Foundation. All Rights Reserved.