gumbo.graphic.probe
Class AbstractIntersectionNode

java.lang.Object
  |
  +--gumbo.util.AbstractDisposable
        |
        +--gumbo.util.relation.AbstractTreeNodeDelegator
              |
              +--gumbo.graphic.probe.AbstractIntersectionNode
All Implemented Interfaces:
Disposable, Graphic, GraphicGeometry, IntersectableGraphic, IntersectionNode, java.io.Serializable

public abstract class AbstractIntersectionNode
extends AbstractTreeNodeDelegator
implements IntersectionNode

A partial implementation of the IntersectionNode interface.

Version:
$Revision: 1.3 $
Author:
Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.
See Also:
Serialized Form

Constructor Summary
AbstractIntersectionNode()
          Creates an instance.
 
Method Summary
 boolean canIntersectGraphic(GraphicGeometry intersector)
          Default implementation: As defined in IntersectionNode.
abstract  IntersectableGraphic getGraphicIntersectionTarget()
          Called by the system to get the intersection target at the start of each intersection operation.
 TreeNode getGraphicIntersectionTree()
          Gets the delegate tree node for this delegator's intersection tree.
 boolean intersectGraphic(GraphicGeometry intersector)
          Default implementation: As defined in IntersectionNode.
 
Methods inherited from class gumbo.util.relation.AbstractTreeNodeDelegator
getTreeNodeDelegate, implDispose, newTreeNodeDelegate
 
Methods inherited from class gumbo.util.AbstractDisposable
dispose, isDisposed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gumbo.graphic.space.GraphicGeometry
getGraphicLocalSpace
 
Methods inherited from interface gumbo.graphic.Graphic
getGraphic
 
Methods inherited from interface gumbo.util.Disposable
dispose, isDisposed
 

Constructor Detail

AbstractIntersectionNode

public AbstractIntersectionNode()
Creates an instance.

Method Detail

getGraphicIntersectionTarget

public abstract IntersectableGraphic getGraphicIntersectionTarget()
Called by the system to get the intersection target at the start of each intersection operation. As such, the target can be computed dynamically, such as an immutable snapshot of a dynamically updated bound.

Specified by:
getGraphicIntersectionTarget in interface IntersectionNode
Returns:
Reference to the target. Null if none, possibly this node.

getGraphicIntersectionTree

public TreeNode getGraphicIntersectionTree()
Description copied from interface: IntersectionNode
Gets the delegate tree node for this delegator's intersection tree.

Specified by:
getGraphicIntersectionTree in interface IntersectionNode
Returns:
Reference to the delegate. Never null.

canIntersectGraphic

public boolean canIntersectGraphic(GraphicGeometry intersector)
Default implementation: As defined in IntersectionNode.

Specified by:
canIntersectGraphic in interface IntersectableGraphic
Parameters:
intersector - Value of the intersector. Never null.
Returns:
True if the intersection is supported.

intersectGraphic

public boolean intersectGraphic(GraphicGeometry intersector)
Default implementation: As defined in IntersectionNode.

Specified by:
intersectGraphic in interface IntersectableGraphic
Parameters:
intersector - Value of the intersector. Never null.
Returns:
True if an intersection occurs.