org.apache.batik.refimpl.gvt
Class ConcreteCanvasGraphicsNode

java.lang.Object
  |
  +--org.apache.batik.refimpl.gvt.AbstractGraphicsNode
        |
        +--org.apache.batik.refimpl.gvt.ConcreteCompositeGraphicsNode
              |
              +--org.apache.batik.refimpl.gvt.ConcreteCanvasGraphicsNode
All Implemented Interfaces:
CanvasGraphicsNode, java.util.Collection, CompositeGraphicsNode, GraphicsNode, java.util.List

public class ConcreteCanvasGraphicsNode
extends ConcreteCompositeGraphicsNode
implements CanvasGraphicsNode

An implementation of the CanvasGraphicsNode interface.


Field Summary
protected  java.awt.Paint backgroundPaint
          The background of this canvas graphics node.
protected  java.awt.geom.Dimension2D size
          The size of this canvas graphics node.
 
Fields inherited from class org.apache.batik.refimpl.gvt.ConcreteCompositeGraphicsNode
backgroundEnableRgn, children, count, modCount
 
Fields inherited from class org.apache.batik.refimpl.gvt.AbstractGraphicsNode
clip, composite, cursor, eventFilter, filter, hints, hitDetector, isVisible, listeners, mask, mememtos, parent, root, transform
 
Fields inherited from interface org.apache.batik.gvt.CompositeGraphicsNode
VIEWPORT
 
Fields inherited from interface org.apache.batik.gvt.GraphicsNode
KEY_AREA_OF_INTEREST
 
Constructor Summary
ConcreteCanvasGraphicsNode()
          Constructs a new empty canvas graphics node.
 
Method Summary
 java.awt.Paint getBackgroundPaint()
          Returns the background paint of this canvas graphics node.
 java.awt.geom.Dimension2D getSize()
          Returns the size of this canvas graphics node.
 void primitivePaint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext rc)
          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 setSize(java.awt.geom.Dimension2D newSize)
          Sets the size of this canvas graphics node.
 
Methods inherited from class org.apache.batik.refimpl.gvt.ConcreteCompositeGraphicsNode
add, add, addAll, addAll, addCompositeGraphicsNodeListener, clear, contains, contains, containsAll, ensureCapacity, get, getBackgroundEnable, getChildren, getGeometryBounds, getGlobalBounds, getOutline, getPrimitiveBounds, hasProgressivePaint, indexOf, invalidateGeometryCache, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nodeHitAt, progressivePaint, remove, remove, removeAll, removeCompositeGraphicsNodeListener, retainAll, set, setBackgroundEnable, setRoot, size, subList, toArray, toArray
 
Methods inherited from class org.apache.batik.refimpl.gvt.AbstractGraphicsNode
acceptEvent, addGraphicsNodeKeyListener, addGraphicsNodeMouseListener, addPropertyChangeListener, addPropertyChangeListener, dispatch, fireGraphicsNodePaintListener, firePropertyChange, firePropertyChange, firePropertyChange, getBounds, getClip, getComposite, getCursor, getFilter, getGlobalTransform, getGraphicsNodeEventFilter, getGraphicsNodeHitDetector, getListeners, getMask, getMemento, getParent, getRenderingHints, getRoot, getTransform, intersects, isAntialiasedClip, isOffscreenBufferNeeded, isVisible, paint, processChangeEvent, processKeyEvent, processMouseEvent, putMemento, removeGraphicsNodeKeyListener, removeGraphicsNodeMouseListener, removeMemento, removePropertyChangeListener, setClip, setComposite, setCursor, setFilter, setGraphicsNodeEventFilter, setGraphicsNodeHitDetector, setMask, 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 org.apache.batik.gvt.CompositeGraphicsNode
addCompositeGraphicsNodeListener, getBackgroundEnable, getChildren, removeCompositeGraphicsNodeListener, setBackgroundEnable
 
Methods inherited from interface org.apache.batik.gvt.GraphicsNode
addGraphicsNodeKeyListener, addGraphicsNodeMouseListener, addPropertyChangeListener, addPropertyChangeListener, contains, dispatch, getBounds, getClip, getComposite, getCursor, getFilter, getGeometryBounds, getGlobalTransform, getGraphicsNodeEventFilter, getGraphicsNodeHitDetector, getListeners, getMask, getMemento, getOutline, getParent, getPrimitiveBounds, getRenderingHints, getRoot, getTransform, hasProgressivePaint, intersects, isVisible, nodeHitAt, paint, processKeyEvent, processMouseEvent, progressivePaint, putMemento, removeGraphicsNodeKeyListener, removeGraphicsNodeMouseListener, removeMemento, removePropertyChangeListener, setClip, setComposite, setCursor, setFilter, setGraphicsNodeEventFilter, setGraphicsNodeHitDetector, setMask, setRenderingHint, setRenderingHints, setRenderingHints, setTransform, setVisible
 
Methods inherited from interface java.util.List
equals, hashCode
 

Field Detail

backgroundPaint

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

size

protected java.awt.geom.Dimension2D size
The size of this canvas graphics node.
Constructor Detail

ConcreteCanvasGraphicsNode

public ConcreteCanvasGraphicsNode()
Constructs a new empty canvas graphics node.
Method Detail

setBackgroundPaint

public void setBackgroundPaint(java.awt.Paint newBackgroundPaint)
Description copied from interface: CanvasGraphicsNode
Sets the background paint of this canvas graphics node.
Specified by:
setBackgroundPaint in interface CanvasGraphicsNode
Following copied from interface: org.apache.batik.gvt.CanvasGraphicsNode
Parameters:
newBackgroundPaint - the new background paint

getBackgroundPaint

public java.awt.Paint getBackgroundPaint()
Description copied from interface: CanvasGraphicsNode
Returns the background paint of this canvas graphics node.
Specified by:
getBackgroundPaint in interface CanvasGraphicsNode
Following copied from interface: org.apache.batik.gvt.CanvasGraphicsNode
Returns:
the background paint

setSize

public void setSize(java.awt.geom.Dimension2D newSize)
Description copied from interface: CanvasGraphicsNode
Sets the size of this canvas graphics node.
Specified by:
setSize in interface CanvasGraphicsNode
Following copied from interface: org.apache.batik.gvt.CanvasGraphicsNode
Parameters:
newSize - the new size of this canvas graphics node

getSize

public java.awt.geom.Dimension2D getSize()
Description copied from interface: CanvasGraphicsNode
Returns the size of this canvas graphics node.
Specified by:
getSize in interface CanvasGraphicsNode
Following copied from interface: org.apache.batik.gvt.CanvasGraphicsNode
Returns:
the size of this canvas graphics node

primitivePaint

public void primitivePaint(java.awt.Graphics2D g2d,
                           GraphicsNodeRenderContext rc)
Description copied from interface: GraphicsNode
Paints this node without applying Filter, Mask, Composite and clip.
Specified by:
primitivePaint in interface GraphicsNode
Overrides:
primitivePaint in class ConcreteCompositeGraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
g2d - the Graphics2D to use
rc - the GraphicsNodeRenderContext to use


Copyright © 2000 Apache Software Foundation. All Rights Reserved.