y.view
Class TreeView

java.lang.Object
  |
  +--y.view.TreeView
All Implemented Interfaces:
View

public class TreeView
extends Object
implements View

Shows the nodes of graph in a tree structure. Currently this Tree is a list, because hirachical stuff is in development.


Field Summary
protected  JTree jtree
           
 
Constructor Summary
TreeView(Graph2D graph)
          Create a new TreeView for a Graph2D
 
Method Summary
 Component getComponent()
          Returns the AWT component on which the view acts.
 Frame getFrame()
          Returns the frame in which the view is contained.
 Graph2D getGraph2D()
          Returns the Graph2D that this tree view shows.
 JTree getJTree()
          Returns the the JTree Component that display the tree view of the graph.
 void updateView()
          Redraws the content of this view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jtree

protected JTree jtree
Constructor Detail

TreeView

public TreeView(Graph2D graph)
Create a new TreeView for a Graph2D

Method Detail

getJTree

public JTree getJTree()
Returns the the JTree Component that display the tree view of the graph.


getGraph2D

public Graph2D getGraph2D()
Returns the Graph2D that this tree view shows.

Specified by:
getGraph2D in interface View

updateView

public void updateView()
Redraws the content of this view. Yes, this is an important method.

Specified by:
updateView in interface View

getFrame

public Frame getFrame()
Returns the frame in which the view is contained. If there is no such frame null is returned.

Specified by:
getFrame in interface View

getComponent

public Component getComponent()
Returns the AWT component on which the view acts.

Specified by:
getComponent in interface View

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003