public class CanvasGraphicsNode extends CompositeGraphicsNode
| Modifier and Type | Field and Description |
|---|---|
protected Paint |
backgroundPaint
The background of this canvas graphics node.
|
protected AffineTransform |
positionTransform
This is the position transform for this graphics node.
|
protected AffineTransform |
viewingTransform
This is the viewing transform for this graphics node.
|
backgroundEnableRgn, children, count, modCount, NULL_RECT, VIEWPORTchangeCompletedEvent, changeStartedEvent, clip, composite, enableBackgroundGraphicsNodeRable, filter, graphicsNodeRable, hints, inverseTransform, isVisible, listeners, mask, parent, pointerEventType, root, transform, weakRefALL, 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 |
|---|---|
Paint |
getBackgroundPaint()
Returns the background paint of this canvas graphics node.
|
AffineTransform |
getPositionTransform() |
AffineTransform |
getViewingTransform() |
void |
primitivePaint(Graphics2D g2d)
Paints this node without applying Filter, Mask, Composite, and clip.
|
void |
setBackgroundPaint(Paint newBackgroundPaint)
Sets the background paint of this canvas graphics node.
|
void |
setPositionTransform(AffineTransform at) |
void |
setViewingTransform(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, toArrayfireGraphicsNodeChangeCompleted, 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, setTransformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streamprotected AffineTransform positionTransform
protected AffineTransform viewingTransform
protected Paint backgroundPaint
public CanvasGraphicsNode()
CanvasGraphicsNode.public void setBackgroundPaint(Paint newBackgroundPaint)
newBackgroundPaint - the new background paintpublic Paint getBackgroundPaint()
public void setPositionTransform(AffineTransform at)
public AffineTransform getPositionTransform()
public void setViewingTransform(AffineTransform at)
public AffineTransform getViewingTransform()
public void primitivePaint(Graphics2D g2d)
primitivePaint in interface GraphicsNodeprimitivePaint in class CompositeGraphicsNodeg2d - the Graphics2D to useCopyright © 2000–2024 Apache Software Foundation. All rights reserved.