org.apache.batik.gvt
Interface CompositeGraphicsNode

All Superinterfaces:
GraphicsNode
All Known Subinterfaces:
CanvasGraphicsNode, RootGraphicsNode
All Known Implementing Classes:
ConcreteCompositeGraphicsNode

public interface CompositeGraphicsNode
extends GraphicsNode

A CompositeGraphicsNode is a graphics node that can contain graphics nodes.


Field Summary
static java.awt.geom.Rectangle2D VIEWPORT
          This constant is used when the Background Rect is not provided and hence it defaults to the union of the bounding rects of all graphics or the viewport which ever is smaller.
 
Fields inherited from interface org.apache.batik.gvt.GraphicsNode
KEY_AREA_OF_INTEREST
 
Method Summary
 void addCompositeGraphicsNodeListener(CompositeGraphicsNodeListener l)
          Adds the specified composite graphics node listener to receive composite graphics node events from this node.
 java.awt.geom.Rectangle2D getBackgroundEnable()
          Returns the Rectangle defined as background.
 java.util.List getChildren()
          Returns the list of children or null if any.
 void removeCompositeGraphicsNodeListener(CompositeGraphicsNodeListener l)
          Removes the specified composite graphics node listener so that it no longer receives composite graphics node events from this node.
 void setBackgroundEnable(java.awt.geom.Rectangle2D bgRgn)
          If bgRgn == VIEWPORT then background enable is activated for the entire viewable region.
 
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, primitivePaint, processKeyEvent, processMouseEvent, progressivePaint, putMemento, removeGraphicsNodeKeyListener, removeGraphicsNodeMouseListener, removeMemento, removePropertyChangeListener, setClip, setComposite, setCursor, setFilter, setGraphicsNodeEventFilter, setGraphicsNodeHitDetector, setMask, setRenderingHint, setRenderingHints, setRenderingHints, setTransform, setVisible
 

Field Detail

VIEWPORT

public static final java.awt.geom.Rectangle2D VIEWPORT
This constant is used when the Background Rect is not provided and hence it defaults to the union of the bounding rects of all graphics or the viewport which ever is smaller.
Method Detail

getChildren

public java.util.List getChildren()
Returns the list of children or null if any.

addCompositeGraphicsNodeListener

public void addCompositeGraphicsNodeListener(CompositeGraphicsNodeListener l)
Adds the specified composite graphics node listener to receive composite graphics node events from this node.
Parameters:
l - the composite graphics node listener to add

removeCompositeGraphicsNodeListener

public void removeCompositeGraphicsNodeListener(CompositeGraphicsNodeListener l)
Removes the specified composite graphics node listener so that it no longer receives composite graphics node events from this node.
Parameters:
l - the composite graphics node listener to remove

setBackgroundEnable

public void setBackgroundEnable(java.awt.geom.Rectangle2D bgRgn)
If bgRgn == VIEWPORT then background enable is activated for the entire viewable region. If bgRgn is null then background enable is accumulate. If bgRgn is any other Rectangle2D then it defines the bounds in the user coord system for which drawing is enabled.

getBackgroundEnable

public java.awt.geom.Rectangle2D getBackgroundEnable()
Returns the Rectangle defined as background. If this is null then you need to check the parents background-enable.


Copyright © 2000 Apache Software Foundation. All Rights Reserved.