gumbo.visualize.data
Class NullGraphicView

java.lang.Object
  |
  +--gumbo.util.AbstractDisposable
        |
        +--gumbo.visualize.data.NullGraphicView
All Implemented Interfaces:
Disposable, Graphic, GraphicPresence, GraphicResource, GraphicView

public class NullGraphicView
extends AbstractDisposable
implements GraphicView

A graphic view without a graphic presentation.

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

Constructor Summary
NullGraphicView(DataView view)
          Creates an instance.
 
Method Summary
 DataView getDataView()
          Gets the data view implemented by this graphic view.
 java.lang.Object getGraphic()
          Returns the target graphic object represented by this proxy interface, which may be needed to take advantage of native graphic capabilities.
protected  void implDispose()
          Nulls the view reference.
 void prepareGraphicPresence()
          Informs this graphic entity that, in anticipation of realization, it should update as needed those aspects of its graphic state (geometry, appearance) and that of any dependents (siblings, descendants) that can affect its presentation.
 void realizeGraphicPresence()
          Informs this graphic entity that external (sibling, ancestor) and internal (self, descendant) state changes that can affect its presentation are complete and assumed valid, and that it should update its presentation as needed to be consistent with its graphic state.
 
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
 
Methods inherited from interface gumbo.util.Disposable
dispose, isDisposed
 

Constructor Detail

NullGraphicView

public NullGraphicView(DataView view)
Creates an instance.

Parameters:
view - The data view. Never null.
Method Detail

getDataView

public DataView getDataView()
Description copied from interface: GraphicView
Gets the data view implemented by this graphic view.

Specified by:
getDataView in interface GraphicView
Returns:
Reference to the data view. Never null.

prepareGraphicPresence

public void prepareGraphicPresence()
Description copied from interface: GraphicPresence
Informs this graphic entity that, in anticipation of realization, it should update as needed those aspects of its graphic state (geometry, appearance) and that of any dependents (siblings, descendants) that can affect its presentation. Does not actually affect the presentation (see realizeGraphicDisplay()). Allows for efficient batching of graphic state changes.

Specified by:
prepareGraphicPresence in interface GraphicPresence

realizeGraphicPresence

public void realizeGraphicPresence()
Description copied from interface: GraphicPresence
Informs this graphic entity that external (sibling, ancestor) and internal (self, descendant) state changes that can affect its presentation are complete and assumed valid, and that it should update its presentation as needed to be consistent with its graphic state. Allows for efficient batching of graphic state realizations.

Specified by:
realizeGraphicPresence in interface GraphicPresence

getGraphic

public java.lang.Object getGraphic()
Description copied from interface: Graphic
Returns the target graphic object represented by this proxy interface, which may be needed to take advantage of native graphic capabilities.

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

implDispose

protected void implDispose()
Nulls the view reference.

Specified by:
implDispose in class AbstractDisposable