gumbo.visualize.data
Class PartView

java.lang.Object
  |
  +--gumbo.util.AbstractDisposable
        |
        +--gumbo.visualize.data.DataView
              |
              +--gumbo.visualize.data.PartView
All Implemented Interfaces:
Disposable

public final class PartView
extends DataView

A data view representing a view of a part model. Typically, data views are created by view factories (see DataViewFactory). A part view is associated with one part model, but a part model can be associated with none or more part views.

A part view is a leaf node in a "part view tree", with the root of the tree being a whole view (i.e. part views are the children of a whole view's part view tree).

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

Constructor Summary
PartView(PartModel model, WholeView view)
          Used by a data view factory to create an instance and to add it to a whole view.
 
Method Summary
 WholeView findPartViewRoot()
          Finds the root whole view in this view's part view tree.
protected  void implDispose()
          Disposes the super class first (while the tree is valid for use in disposing the graphic view), then this class.
 
Methods inherited from class gumbo.visualize.data.DataView
getDataModel, getGraphicView, initGraphicView
 
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

PartView

public PartView(PartModel model,
                WholeView view)
Used by a data view factory to create an instance and to add it to a whole view. The factory is responsible for creating the corresponding part graphic, adding it to the whole view graphic, and then setting this view's graphic using setGraphicView().

Parameters:
model - The part model. Never null.
view - The parent whole view. Never null.
Method Detail

findPartViewRoot

public WholeView findPartViewRoot()
Finds the root whole view in this view's part view tree.

Returns:
The root. Never null or this view.

implDispose

protected void implDispose()
Disposes the super class first (while the tree is valid for use in disposing the graphic view), then this class.

Overrides:
implDispose in class DataView