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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractIntersectionNode
public AbstractIntersectionNode()
- Creates an instance.
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.