Package org.apache.batik.gvt
Class CanvasGraphicsNode
java.lang.Object
org.apache.batik.gvt.AbstractGraphicsNode
org.apache.batik.gvt.CompositeGraphicsNode
org.apache.batik.gvt.CanvasGraphicsNode
- All Implemented Interfaces:
Iterable,Collection,List,GraphicsNode
The graphics node container with a background color.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PaintThe background of this canvas graphics node.protected AffineTransformThis is the position transform for this graphics node.protected AffineTransformThis is the viewing transform for this graphics node.Fields inherited from class org.apache.batik.gvt.CompositeGraphicsNode
backgroundEnableRgn, children, count, modCount, NULL_RECT, VIEWPORTFields inherited from class org.apache.batik.gvt.AbstractGraphicsNode
changeCompletedEvent, changeStartedEvent, clip, composite, enableBackgroundGraphicsNodeRable, filter, graphicsNodeRable, hints, inverseTransform, isVisible, listeners, mask, parent, pointerEventType, root, transform, weakRefFields inherited from interface org.apache.batik.gvt.GraphicsNode
ALL, FILL, IDENTITY, NONE, PAINTED, STROKE, VISIBLE, VISIBLE_FILL, VISIBLE_PAINTED, VISIBLE_STROKE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the background paint of this canvas graphics node.voidprimitivePaint(Graphics2D g2d) Paints this node without applying Filter, Mask, Composite, and clip.voidsetBackgroundPaint(Paint newBackgroundPaint) Sets the background paint of this canvas graphics node.voidvoidMethods inherited from class org.apache.batik.gvt.CompositeGraphicsNode
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, toArrayMethods inherited from class org.apache.batik.gvt.AbstractGraphicsNode
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, setTransformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Field Details
-
positionTransform
This is the position transform for this graphics node. This is needed because getCTM returns the transform to the viewport coordinate system which is after viewing but before positioning. -
viewingTransform
This is the viewing transform for this graphics node. This is needed because getCTM returns the transform to the viewport coordinate system which is after viewing but before positioning. -
backgroundPaint
The background of this canvas graphics node.
-
-
Constructor Details
-
CanvasGraphicsNode
public CanvasGraphicsNode()Constructs a new emptyCanvasGraphicsNode.
-
-
Method Details
-
setBackgroundPaint
Sets the background paint of this canvas graphics node.- Parameters:
newBackgroundPaint- the new background paint
-
getBackgroundPaint
Returns the background paint of this canvas graphics node. -
setPositionTransform
-
getPositionTransform
-
setViewingTransform
-
getViewingTransform
-
primitivePaint
Paints this node without applying Filter, Mask, Composite, and clip.- Specified by:
primitivePaintin interfaceGraphicsNode- Overrides:
primitivePaintin classCompositeGraphicsNode- Parameters:
g2d- the Graphics2D to use
-