gumbo.graphic.space
Class AbstractDisplaySpace

java.lang.Object
  |
  +--gumbo.util.AbstractDisposable
        |
        +--gumbo.util.AbstractDelegatable
              |
              +--gumbo.graphic.space.AbstractDisplaySpace
All Implemented Interfaces:
Delegatable, DisplaySpace, Disposable, Graphic, GraphicSpace

public class AbstractDisplaySpace
extends AbstractDelegatable
implements DisplaySpace

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

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

Nested Class Summary
 
Nested classes inherited from class gumbo.util.AbstractDelegatable
AbstractDelegatable.Serial
 
Constructor Summary
AbstractDisplaySpace()
          Creates an instance.
 
Method Summary
 DisplaySpaceConfig getDisplaySpaceConfig()
          Gets the configuration delegate for this display space.
 GraphicSpaceRoot getDisplaySpaceRoot()
          Gets the display space tree root.
 java.lang.Object getGraphic()
          Default implementation: Returns this object (non-native direct implementation).
protected  DisplaySpaceConfig newDisplayConfigDelegate()
          Called during initialization as the factory method for the display space configuration delegate.
protected  GraphicSpaceRoot newDisplayRootDelegate()
          Called during initialization as the factory method for the world space tree node delegate.
 
Methods inherited from class gumbo.util.AbstractDelegatable
getDelegator, implDispose, initDelegator, initedDelegator, initingDelegator, isDelegatorInited
 
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
 

Constructor Detail

AbstractDisplaySpace

public AbstractDisplaySpace()
Creates an instance. Master constructor.

Method Detail

newDisplayConfigDelegate

protected DisplaySpaceConfig newDisplayConfigDelegate()
Called during initialization as the factory method for the display space configuration delegate. Default implementation: Returns a new AbstractDisplaySpaceConfig.

Returns:
New uninitialized delegate. Never null.

newDisplayRootDelegate

protected GraphicSpaceRoot newDisplayRootDelegate()
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.

getDisplaySpaceConfig

public DisplaySpaceConfig getDisplaySpaceConfig()
Description copied from interface: DisplaySpace
Gets the configuration delegate for this display space.

Specified by:
getDisplaySpaceConfig in interface DisplaySpace
Returns:
Reference to the delegate. Never null.

getDisplaySpaceRoot

public GraphicSpaceRoot getDisplaySpaceRoot()
Description copied from interface: DisplaySpace
Gets the display space tree root.

Specified by:
getDisplaySpaceRoot in interface DisplaySpace
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.