gumbo.graphic.space
Class AbstractScreenSpace

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

public class AbstractScreenSpace
extends java.lang.Object
implements ScreenSpace

A full implementation of the ScreenSpace interface. Intended for standalone use, with factory generated config, or as a wrapper for a native graphic delegate.

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

Constructor Summary
AbstractScreenSpace()
          Creates an instance.
AbstractScreenSpace(ScreenSpaceConfig config)
          Creates an instance.
 
Method Summary
 java.lang.Object getGraphic()
          Default implementation: Returns this object (non-native direct implementation).
 ScreenSpaceConfig getScreenSpaceConfig()
          Gets the configuration delegate for this screen space.
protected  ScreenSpaceConfig newScreenConfigDelegate()
          Called by the system when a new space configuration delegate is needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractScreenSpace

public AbstractScreenSpace()
Creates an instance. Uses factory methods for the delegates.


AbstractScreenSpace

public AbstractScreenSpace(ScreenSpaceConfig config)
Creates an instance. Master constructor.

Parameters:
config - Reference to the space configuration delegate. If null, uses a factory method to create one.
Throws:
java.lang.IllegalStateException - The delegate's delegator is not this object.
Method Detail

newScreenConfigDelegate

protected ScreenSpaceConfig newScreenConfigDelegate()
Called by the system when a new space configuration delegate is needed. Default implementation: Returns a new AbstractScreenSpaceConfig.

Returns:
New empty tree node delegate. Never null.

getScreenSpaceConfig

public ScreenSpaceConfig getScreenSpaceConfig()
Description copied from interface: ScreenSpace
Gets the configuration delegate for this screen space.

Specified by:
getScreenSpaceConfig in interface ScreenSpace
Returns:
Reference to the delegate. 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.