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:
java.util.Collection, GraphicsNode, java.util.List

public class CanvasGraphicsNode
extends CompositeGraphicsNode

The graphics node container with a background color.


Field Summary
protected  java.awt.Paint backgroundPaint
          The background of this canvas graphics node.
 
Fields inherited from class org.apache.batik.gvt.CompositeGraphicsNode
backgroundEnableRgn, children, count, modCount, VIEWPORT
 
Fields inherited from class org.apache.batik.gvt.AbstractGraphicsNode
changeCompletedEvent, changeStartedEvent, clip, composite, enableBackgroundGraphicsNodeRable, filter, graphicsNodeRable, hints, inverseTransform, isVisible, listeners, mask, parent, pointerEventType, root, transform, weakRef
 
Fields inherited from interface org.apache.batik.gvt.GraphicsNode
ALL, FILL, IDENTITY, NONE, PAINTED, STROKE, VISIBLE, VISIBLE_FILL, VISIBLE_PAINTED, VISIBLE_STROKE
 
Constructor Summary
CanvasGraphicsNode()
          Constructs a new empty CanvasGraphicsNode.
 
Method Summary
 java.awt.Paint getBackgroundPaint()
          Returns the background paint of this canvas graphics node.
 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.
 
Methods inherited from class org.apache.batik.gvt.CompositeGraphicsNode
add, add, addAll, addAll, clear, contains, contains, containsAll, ensureCapacity, get, getBackgroundEnable, getChildren, getGeometryBounds, getOutline, getPrimitiveBounds, getTransformedGeometryBounds, getTransformedPrimitiveBounds, indexOf, invalidateGeometryCache, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nodeHitAt, remove, remove, removeAll, retainAll, set, setBackgroundEnable, setRoot, size, subList, toArray, toArray
 
Methods 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, setTransform, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Field Detail

backgroundPaint

protected java.awt.Paint backgroundPaint
The background of this canvas graphics node.
Constructor Detail

CanvasGraphicsNode

public CanvasGraphicsNode()
Constructs a new empty CanvasGraphicsNode.
Method Detail

setBackgroundPaint

public void setBackgroundPaint(java.awt.Paint newBackgroundPaint)
Sets the background paint of this canvas graphics node.
Parameters:
newBackgroundPaint - the new background paint

getBackgroundPaint

public java.awt.Paint getBackgroundPaint()
Returns the background paint of this canvas graphics node.

primitivePaint

public void primitivePaint(java.awt.Graphics2D g2d)
Paints this node without applying Filter, Mask, Composite, and clip.
Overrides:
primitivePaint in class CompositeGraphicsNode
Parameters:
g2d - the Graphics2D to use


Copyright © 2002 Apache Software Foundation. All Rights Reserved.