gumbo.graphic.space
Class AbstractViewSpace

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

public class AbstractViewSpace
extends AbstractDelegatable
implements ViewSpace

A full implementation of the ViewSpace 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
AbstractViewSpace()
          Creates an instance.
 
Method Summary
 java.lang.Object getGraphic()
          Default implementation: Returns this object (non-native direct implementation).
 ViewSpaceConfig getViewSpaceConfig()
          Gets the configuration delegate for this view space.
 GraphicSpaceRoot getViewSpaceRoot()
          Gets the view space tree root.
protected  ViewSpaceConfig newViewConfigDelegate()
          Called during initialization as the factory method for the view space configuration delegate.
protected  GraphicSpaceRoot newViewRootDelegate()
          Called during initialization as the factory method for the view 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

AbstractViewSpace

public AbstractViewSpace()
Creates an instance. Master constructor.

Method Detail

newViewConfigDelegate

protected ViewSpaceConfig newViewConfigDelegate()
Called during initialization as the factory method for the view space configuration delegate. Default implementation: Returns a new AbstractViewSpaceConfig.

Returns:
New uninitialized delegate. Never null.

newViewRootDelegate

protected GraphicSpaceRoot newViewRootDelegate()
Called during initialization as the factory method for the view 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.

getViewSpaceConfig

public ViewSpaceConfig getViewSpaceConfig()
Description copied from interface: ViewSpace
Gets the configuration delegate for this view space.

Specified by:
getViewSpaceConfig in interface ViewSpace
Returns:
Reference to the delegate. Never null.

getViewSpaceRoot

public GraphicSpaceRoot getViewSpaceRoot()
Description copied from interface: ViewSpace
Gets the view space tree root.

Specified by:
getViewSpaceRoot in interface ViewSpace
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.