org.apache.batik.refimpl.gvt
Class AbstractGraphicsNode

java.lang.Object
  |
  +--org.apache.batik.refimpl.gvt.AbstractGraphicsNode
All Implemented Interfaces:
GraphicsNode
Direct Known Subclasses:
ConcreteCompositeGraphicsNode, ConcreteRasterImageNode, ConcreteShapeNode, ConcreteTextNode

public abstract class AbstractGraphicsNode
extends java.lang.Object
implements GraphicsNode

A partial implementation of the GraphicsNode interface.


Field Summary
protected  Clip clip
          The clipping filter for this graphics node.
protected  java.awt.Composite composite
          The compositing operation to be used when a graphics node is painted on top of another one.
protected  java.awt.Cursor cursor
          The cursor attached to this graphics node.
protected  GraphicsNodeEventFilter eventFilter
          The filter used to filter graphics node events.
protected  Filter filter
          The filter of this graphics node.
protected  java.awt.RenderingHints hints
          The rendering hints that control the quality to use when rendering this graphics node.
protected  GraphicsNodeHitDetector hitDetector
          The hit detector used to filter mouse events.
protected  boolean isVisible
          This flag bit indicates whether or not this graphics node is visible.
protected  javax.swing.event.EventListenerList listeners
          The listeners list.
protected  Mask mask
          The mask of this graphics node.
protected  java.util.Map mememtos
          The Map used to store mememto objects.
protected  CompositeGraphicsNode parent
          The parent of this graphics node.
protected  RootGraphicsNode root
          The root of the GVT tree.
protected  java.awt.geom.AffineTransform transform
          The transform of this graphics node.
 
Fields inherited from interface org.apache.batik.gvt.GraphicsNode
KEY_AREA_OF_INTEREST
 
Constructor Summary
AbstractGraphicsNode()
          Constructs a new graphics node.
 
Method Summary
protected  boolean acceptEvent(GraphicsNodeEvent evt)
           
 void addGraphicsNodeKeyListener(GraphicsNodeKeyListener l)
          Adds the specified graphics node key listener to receive graphics node key events from this node.
 void addGraphicsNodeMouseListener(GraphicsNodeMouseListener l)
          Adds the specified graphics node mouse listener to receive graphics node mouse events from this node.
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds the specified property change listener to receive property change events from this node.
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener l)
          Adds the specified property change listener to receive property change events for the specified property name of this node.
 boolean contains(java.awt.geom.Point2D p)
          Tests if the specified Point2D is inside the boundary of this node.
 void dispatch(GraphicsNodeEvent evt)
          Dispatches a graphics node event to this node or one of its child.
protected  void fireGraphicsNodePaintListener(java.awt.geom.Rectangle2D oldBounds)
          Fires the paint listener.
protected  void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
           
protected  void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
           
protected  void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
           
 java.awt.geom.Rectangle2D getBounds()
          Compute the rendered bounds of this node based on it's renderBounds, i.e., the area painted by its primitivePaint method.
 Clip getClip()
          Returns the clipping filter of this node or null if any.
 java.awt.Composite getComposite()
          Returns the composite of this node.
 java.awt.Cursor getCursor()
          Returns the cursor of this node.
 Filter getFilter()
          Returns the filter of this node or null if any.
protected  java.awt.geom.Rectangle2D getGlobalBounds()
           
 java.awt.geom.AffineTransform getGlobalTransform()
          Returns the concatenated transform, i.e., this node's transform preconcatenated with it's parent's transforms.
 GraphicsNodeEventFilter getGraphicsNodeEventFilter()
          Returns the graphics node event filter of this node.
 GraphicsNodeHitDetector getGraphicsNodeHitDetector()
          Returns the hit detector for this node.
 java.util.EventListener[] getListeners(java.lang.Class listenerType)
          Returns an array of listeners that were added to this node and of the specified type.
 Mask getMask()
          Returns the mask of this node or null if any.
 java.lang.Object getMemento(java.lang.Object key)
          Returns the value of the memento with the specified key or null if any.
 CompositeGraphicsNode getParent()
          Returns the parent of this node or null if any.
 java.awt.RenderingHints getRenderingHints()
          Returns the rendering hints of this node or null if any.
 RootGraphicsNode getRoot()
          Returns the root of the GVT tree or null if the node is not part of a GVT tree.
 java.awt.geom.AffineTransform getTransform()
          Returns the transform of this node.
 boolean intersects(java.awt.geom.Rectangle2D r)
          Tests if the interior of this node intersects the interior of a specified Rectangle2D.
protected  void invalidateGeometryCache()
          Invalidates the cached geometric bounds.
protected  boolean isAntialiasedClip(java.awt.geom.AffineTransform usr2dev, java.awt.RenderingHints hints, java.awt.Shape clip)
          Returns true if there is a clip and it should be antialiased
protected  boolean isOffscreenBufferNeeded()
          Returns true of an offscreen buffer is needed to render this node, false otherwise.
 boolean isVisible()
          Determines whether or not this node is visible when its parent is visible.
 GraphicsNode nodeHitAt(java.awt.geom.Point2D p)
          Returns the GraphicsNode containing point p if this node or one of its children is sensitive to mouse events at p.
 void paint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext rc)
          Paints this node.
 void processChangeEvent(CompositeGraphicsNodeEvent evt)
           
 void processKeyEvent(GraphicsNodeKeyEvent evt)
          Dispatches a graphics node event to this node or one of its child.
 void processMouseEvent(GraphicsNodeMouseEvent evt)
          Dispatches a graphics node event to this node or one of its child.
 void putMemento(java.lang.Object key, java.lang.Object mememto)
          Associates the specified memento with the specified key in this node.
 void removeGraphicsNodeKeyListener(GraphicsNodeKeyListener l)
          Removes the specified graphics node key listener so that it no longer receives graphics node key events from this node.
 void removeGraphicsNodeMouseListener(GraphicsNodeMouseListener l)
          Removes the specified graphics node mouse listener so that it no longer receives graphics node mouse events from this node.
 void removeMemento(java.lang.Object key)
          Removes the memento object with the specified key.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Removes the specified property change listener so that it no longer receives property change events from this node.
 void setClip(Clip newClipper)
          Sets the clipping filter for this node.
 void setComposite(java.awt.Composite newComposite)
          Sets the composite of this node.
 void setCursor(java.awt.Cursor newCursor)
          Sets the cursor of this node.
 void setFilter(Filter newFilter)
          Sets the filter of this node.
 void setGraphicsNodeEventFilter(GraphicsNodeEventFilter evtFilter)
          Sets the graphics node event filter of this node.
 void setGraphicsNodeHitDetector(GraphicsNodeHitDetector hitDetector)
          Sets the hit detector for this node.
 void setMask(Mask newMask)
          Sets the mask of this node.
 void setRenderingHint(java.awt.RenderingHints.Key key, java.lang.Object value)
          Maps the specified key to the specified value in the rendering hints of this node.
 void setRenderingHints(java.util.Map hints)
          Copies all of the mappings from the specified Map to the rendering hints of this node.
 void setRenderingHints(java.awt.RenderingHints newHints)
          Sets the rendering hints of this node.
protected  void setRoot(RootGraphicsNode newRoot)
           
 void setTransform(java.awt.geom.AffineTransform newTransform)
          Sets the transform of this node.
 void setVisible(boolean isVisible)
          Sets if this node is visible or not depending on the specified value.
 
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.GraphicsNode
getGeometryBounds, getOutline, getPrimitiveBounds, hasProgressivePaint, primitivePaint, progressivePaint
 

Field Detail

mememtos

protected java.util.Map mememtos
The Map used to store mememto objects.

listeners

protected javax.swing.event.EventListenerList listeners
The listeners list.

eventFilter

protected GraphicsNodeEventFilter eventFilter
The filter used to filter graphics node events.

hitDetector

protected GraphicsNodeHitDetector hitDetector
The hit detector used to filter mouse events.

cursor

protected java.awt.Cursor cursor
The cursor attached to this graphics node.

transform

protected java.awt.geom.AffineTransform transform
The transform of this graphics node.

composite

protected java.awt.Composite composite
The compositing operation to be used when a graphics node is painted on top of another one.

isVisible

protected boolean isVisible
This flag bit indicates whether or not this graphics node is visible.

clip

protected Clip clip
The clipping filter for this graphics node.

hints

protected java.awt.RenderingHints hints
The rendering hints that control the quality to use when rendering this graphics node.

mask

protected Mask mask
The mask of this graphics node.

parent

protected CompositeGraphicsNode parent
The parent of this graphics node.

root

protected RootGraphicsNode root
The root of the GVT tree.

filter

protected Filter filter
The filter of this graphics node.
Constructor Detail

AbstractGraphicsNode

public AbstractGraphicsNode()
Constructs a new graphics node.
Method Detail

firePropertyChange

protected void firePropertyChange(java.lang.String propertyName,
                                  boolean oldValue,
                                  boolean newValue)

firePropertyChange

protected void firePropertyChange(java.lang.String propertyName,
                                  int oldValue,
                                  int newValue)

firePropertyChange

protected void firePropertyChange(java.lang.String propertyName,
                                  java.lang.Object oldValue,
                                  java.lang.Object newValue)

fireGraphicsNodePaintListener

protected void fireGraphicsNodePaintListener(java.awt.geom.Rectangle2D oldBounds)
Fires the paint listener.
Parameters:
oldBounds - the old bounds of this node in renderer space.

setCursor

public void setCursor(java.awt.Cursor newCursor)
Description copied from interface: GraphicsNode
Sets the cursor of this node.
Specified by:
setCursor in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
newCursor - the new cursor of this node

getCursor

public java.awt.Cursor getCursor()
Description copied from interface: GraphicsNode
Returns the cursor of this node.
Specified by:
getCursor in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
the cursor of this node

setTransform

public void setTransform(java.awt.geom.AffineTransform newTransform)
Description copied from interface: GraphicsNode
Sets the transform of this node.
Specified by:
setTransform in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
newTransform - the new transform of this node

getTransform

public java.awt.geom.AffineTransform getTransform()
Description copied from interface: GraphicsNode
Returns the transform of this node.
Specified by:
getTransform in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
the transform of this node

getGlobalTransform

public java.awt.geom.AffineTransform getGlobalTransform()
Description copied from interface: GraphicsNode
Returns the concatenated transform, i.e., this node's transform preconcatenated with it's parent's transforms.
Specified by:
getGlobalTransform in interface GraphicsNode

setComposite

public void setComposite(java.awt.Composite newComposite)
Description copied from interface: GraphicsNode
Sets the composite of this node.
Specified by:
setComposite in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
composite - the composite of this node

getComposite

public java.awt.Composite getComposite()
Description copied from interface: GraphicsNode
Returns the composite of this node.
Specified by:
getComposite in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
the composite of this node

setVisible

public void setVisible(boolean isVisible)
Description copied from interface: GraphicsNode
Sets if this node is visible or not depending on the specified value.
Specified by:
setVisible in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
isVisible - If true this node is visible

isVisible

public boolean isVisible()
Description copied from interface: GraphicsNode
Determines whether or not this node is visible when its parent is visible. Nodes are initially visible.
Specified by:
isVisible in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
true if this node is visible, false otherwise

setClip

public void setClip(Clip newClipper)
Description copied from interface: GraphicsNode
Sets the clipping filter for this node.
Specified by:
setClip in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
newClipper - the new clipping filter of this node

getClip

public Clip getClip()
Description copied from interface: GraphicsNode
Returns the clipping filter of this node or null if any.
Specified by:
getClip in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
the clipping filter of this node or null if any

setRenderingHint

public void setRenderingHint(java.awt.RenderingHints.Key key,
                             java.lang.Object value)
Description copied from interface: GraphicsNode
Maps the specified key to the specified value in the rendering hints of this node.
Specified by:
setRenderingHint in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
key - the key of the hint to be set
value - the value indicating preferences for the specified hint category.

setRenderingHints

public void setRenderingHints(java.util.Map hints)
Description copied from interface: GraphicsNode
Copies all of the mappings from the specified Map to the rendering hints of this node.
Specified by:
setRenderingHints in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
hints - the rendering hints to be set

setRenderingHints

public void setRenderingHints(java.awt.RenderingHints newHints)
Description copied from interface: GraphicsNode
Sets the rendering hints of this node.
Specified by:
setRenderingHints in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
newHints - the new rendering hints of this node

getRenderingHints

public java.awt.RenderingHints getRenderingHints()
Description copied from interface: GraphicsNode
Returns the rendering hints of this node or null if any.
Specified by:
getRenderingHints in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
the rendering hints of this node or null if any

setMask

public void setMask(Mask newMask)
Description copied from interface: GraphicsNode
Sets the mask of this node.
Specified by:
setMask in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
newMask - the new mask of this node

getMask

public Mask getMask()
Description copied from interface: GraphicsNode
Returns the mask of this node or null if any.
Specified by:
getMask in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
the mask of this node or null if any

setFilter

public void setFilter(Filter newFilter)
Description copied from interface: GraphicsNode
Sets the filter of this node.
Specified by:
setFilter in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
newFilter - the new filter of this node

getFilter

public Filter getFilter()
Description copied from interface: GraphicsNode
Returns the filter of this node or null if any.
Specified by:
getFilter in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
the filter of this node or null if any

paint

public void paint(java.awt.Graphics2D g2d,
                  GraphicsNodeRenderContext rc)
           throws java.lang.InterruptedException
Description copied from interface: GraphicsNode
Paints this node.
Specified by:
paint in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
g2d - the Graphics2D to use
rc - the GraphicsNodeRenderContext to use
Throws:
thrown - if the current thread was interrupted during paint

isOffscreenBufferNeeded

protected boolean isOffscreenBufferNeeded()
Returns true of an offscreen buffer is needed to render this node, false otherwise.

isAntialiasedClip

protected boolean isAntialiasedClip(java.awt.geom.AffineTransform usr2dev,
                                    java.awt.RenderingHints hints,
                                    java.awt.Shape clip)
Returns true if there is a clip and it should be antialiased

addGraphicsNodeMouseListener

public void addGraphicsNodeMouseListener(GraphicsNodeMouseListener l)
Description copied from interface: GraphicsNode
Adds the specified graphics node mouse listener to receive graphics node mouse events from this node.
Specified by:
addGraphicsNodeMouseListener in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
l - the graphics node mouse listener to add

removeGraphicsNodeMouseListener

public void removeGraphicsNodeMouseListener(GraphicsNodeMouseListener l)
Description copied from interface: GraphicsNode
Removes the specified graphics node mouse listener so that it no longer receives graphics node mouse events from this node.
Specified by:
removeGraphicsNodeMouseListener in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
l - the graphics node mouse listener to remove

addGraphicsNodeKeyListener

public void addGraphicsNodeKeyListener(GraphicsNodeKeyListener l)
Description copied from interface: GraphicsNode
Adds the specified graphics node key listener to receive graphics node key events from this node.
Specified by:
addGraphicsNodeKeyListener in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
l - the graphics node key listener to add

removeGraphicsNodeKeyListener

public void removeGraphicsNodeKeyListener(GraphicsNodeKeyListener l)
Description copied from interface: GraphicsNode
Removes the specified graphics node key listener so that it no longer receives graphics node key events from this node.
Specified by:
removeGraphicsNodeKeyListener in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
l - the graphics node key listener to remove

setGraphicsNodeEventFilter

public void setGraphicsNodeEventFilter(GraphicsNodeEventFilter evtFilter)
Description copied from interface: GraphicsNode
Sets the graphics node event filter of this node.
Specified by:
setGraphicsNodeEventFilter in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
evtFilter - the new graphics node event filter

getGraphicsNodeEventFilter

public GraphicsNodeEventFilter getGraphicsNodeEventFilter()
Description copied from interface: GraphicsNode
Returns the graphics node event filter of this node.
Specified by:
getGraphicsNodeEventFilter in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
the graphics node event filter of this node

setGraphicsNodeHitDetector

public void setGraphicsNodeHitDetector(GraphicsNodeHitDetector hitDetector)
Description copied from interface: GraphicsNode
Sets the hit detector for this node.
Specified by:
setGraphicsNodeHitDetector in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
hitDetector - the new hit detector

getGraphicsNodeHitDetector

public GraphicsNodeHitDetector getGraphicsNodeHitDetector()
Description copied from interface: GraphicsNode
Returns the hit detector for this node.
Specified by:
getGraphicsNodeHitDetector in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
the hit detector for this node

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from interface: GraphicsNode
Adds the specified property change listener to receive property change events from this node.
Specified by:
addPropertyChangeListener in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
l - the property change listener to add

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener l)
Description copied from interface: GraphicsNode
Adds the specified property change listener to receive property change events for the specified property name of this node.
Specified by:
addPropertyChangeListener in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
propertyName - the name of the property
l - the property change listener to add for the specified property

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Description copied from interface: GraphicsNode
Removes the specified property change listener so that it no longer receives property change events from this node.
Specified by:
removePropertyChangeListener in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
l - the property change listener to remove

dispatch

public void dispatch(GraphicsNodeEvent evt)
Description copied from interface: GraphicsNode
Dispatches a graphics node event to this node or one of its child.
Specified by:
dispatch in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
evt - the evt to dispatch

getListeners

public java.util.EventListener[] getListeners(java.lang.Class listenerType)
Description copied from interface: GraphicsNode
Returns an array of listeners that were added to this node and of the specified type.
Specified by:
getListeners in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
listenerType - the type of the listeners to return

getParent

public CompositeGraphicsNode getParent()
Description copied from interface: GraphicsNode
Returns the parent of this node or null if any.
Specified by:
getParent in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Returns:
the parent of this node or null if any.

getRoot

public RootGraphicsNode getRoot()
Description copied from interface: GraphicsNode
Returns the root of the GVT tree or null if the node is not part of a GVT tree.
Specified by:
getRoot in interface GraphicsNode

setRoot

protected void setRoot(RootGraphicsNode newRoot)

putMemento

public void putMemento(java.lang.Object key,
                       java.lang.Object mememto)
Description copied from interface: GraphicsNode
Associates the specified memento with the specified key in this node.
Specified by:
putMemento in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
key - the key with which the specified memento is to be associated
memento - the memento to be associated with the specified key

getMemento

public java.lang.Object getMemento(java.lang.Object key)
Description copied from interface: GraphicsNode
Returns the value of the memento with the specified key or null if any.
Specified by:
getMemento in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
the - key whose associated value is to be returned

removeMemento

public void removeMemento(java.lang.Object key)
Description copied from interface: GraphicsNode
Removes the memento object with the specified key.
Specified by:
removeMemento in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
key - the key whose mapping is to be removed from the map

invalidateGeometryCache

protected void invalidateGeometryCache()
Invalidates the cached geometric bounds. This method is called each time an attribute that affects the bounds of this node changed.

getGlobalBounds

protected java.awt.geom.Rectangle2D getGlobalBounds()

getBounds

public java.awt.geom.Rectangle2D getBounds()
Compute the rendered bounds of this node based on it's renderBounds, i.e., the area painted by its primitivePaint method. This is used in addition to the mask, clip and filter to compute the area actually rendered by this node.
Specified by:
getBounds in interface GraphicsNode

contains

public boolean contains(java.awt.geom.Point2D p)
Description copied from interface: GraphicsNode
Tests if the specified Point2D is inside the boundary of this node.
Specified by:
contains in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
p - the specified Point2D in the user space
Returns:
true if the coordinates are inside, false otherwise

nodeHitAt

public GraphicsNode nodeHitAt(java.awt.geom.Point2D p)
Description copied from interface: GraphicsNode
Returns the GraphicsNode containing point p if this node or one of its children is sensitive to mouse events at p.
Specified by:
nodeHitAt in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
p - the specified Point2D in the user space
Returns:
the GraphicsNode containing p on this branch of the GVT tree.

intersects

public boolean intersects(java.awt.geom.Rectangle2D r)
Description copied from interface: GraphicsNode
Tests if the interior of this node intersects the interior of a specified Rectangle2D.
Specified by:
intersects in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
r - the specified Rectangle2D in the user node space
Returns:
true if the rectangle intersects, false otherwise

processMouseEvent

public void processMouseEvent(GraphicsNodeMouseEvent evt)
Description copied from interface: GraphicsNode
Dispatches a graphics node event to this node or one of its child.
Specified by:
processMouseEvent in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
evt - the evt to dispatch

processKeyEvent

public void processKeyEvent(GraphicsNodeKeyEvent evt)
Description copied from interface: GraphicsNode
Dispatches a graphics node event to this node or one of its child.
Specified by:
processKeyEvent in interface GraphicsNode
Following copied from interface: org.apache.batik.gvt.GraphicsNode
Parameters:
evt - the evt to dispatch

processChangeEvent

public void processChangeEvent(CompositeGraphicsNodeEvent evt)

acceptEvent

protected boolean acceptEvent(GraphicsNodeEvent evt)


Copyright © 2000 Apache Software Foundation. All Rights Reserved.