gumbo.graphic.space
Class AbstractWorldSpace

java.lang.Object
  |
  +--gumbo.graphic.space.AbstractWorldSpace
All Implemented Interfaces:
Graphic, GraphicSpace, WorldSpace

public class AbstractWorldSpace
extends java.lang.Object
implements WorldSpace

A full implementation of the WorldSpace interface. Intended for standalone use, with factory generated config and tree node delegates, or as a wrapper for native graphic delegates.

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

Constructor Summary
AbstractWorldSpace()
          Creates an instance.
 
Method Summary
 java.lang.Object getGraphic()
          Default implementation: Returns this object (non-native direct implementation).
 WorldSpaceConfig getWorldSpaceConfig()
          Gets the configuration delegate for this view space.
 GraphicSpaceRoot getWorldSpaceRoot()
          Gets the world space tree root.
protected  WorldSpaceConfig newWorldConfigDelegate()
          Called during initialization as the factory method for the world space configuration delegate.
protected  GraphicSpaceRoot newWorldRootDelegate()
          Called during initialization as the factory method for the world space tree node delegate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractWorldSpace

public AbstractWorldSpace()
Creates an instance. Master constructor.

Method Detail

newWorldConfigDelegate

protected WorldSpaceConfig newWorldConfigDelegate()
Called during initialization as the factory method for the world space configuration delegate. Default implementation: Returns a new AbstractWorldSpaceConfig.

Returns:
New uninitialized delegate. Never null.

newWorldRootDelegate

protected GraphicSpaceRoot newWorldRootDelegate()
Called during initialization as the factory method for the world space tree node delegate. Will be wrapped as a root node. Default implementation: Returns a new AbstractGraphicSpaceRoot with a new AbstractTreeNode.Auto delegate in a new TreeNodes.Tree relationship.

Returns:
New uninitialized delegate. Never null.

getWorldSpaceConfig

public WorldSpaceConfig getWorldSpaceConfig()
Description copied from interface: WorldSpace
Gets the configuration delegate for this view space.

Specified by:
getWorldSpaceConfig in interface WorldSpace
Returns:
Reference to the delegate. Never null.

getWorldSpaceRoot

public GraphicSpaceRoot getWorldSpaceRoot()
Description copied from interface: WorldSpace
Gets the world space tree root.

Specified by:
getWorldSpaceRoot in interface WorldSpace
Returns:
Reference to the node. Never null.

getGraphic

public java.lang.Object getGraphic()
Default implementation: Returns this object (non-native direct implementation).

Specified by:
getGraphic in interface Graphic
Returns:
The target graphic object. Possibly this object (self-proxy, direct implementation), but never null.