mima.presentation.gwt.mindmap
Class Tree

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by mima.presentation.gwt.mindmap.Tree
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, NodeObserver
Direct Known Subclasses:
MindMap, SubTree

abstract class Tree
extends com.google.gwt.user.client.ui.Composite
implements NodeObserver

Author:
Virginio Carfagno

Field Summary
private  Node _node
           
private  NodeView _root
           
private  com.google.gwt.user.client.ui.HorizontalPanel _tree
           
protected static int EDGES_WIDTH
           
 
Constructor Summary
protected Tree(Node node)
           
 
Method Summary
protected  com.google.gwt.user.client.ui.AbsolutePanel createEdgesContainer()
           
protected abstract  NodeView createRoot()
           
protected abstract  void expand(boolean value)
           
protected  int getAbsoluteEdgeConnectionPointY()
           
protected  Node getNode()
           
protected  NodeView getNodeView()
           
protected  com.google.gwt.user.client.ui.HorizontalPanel getTree()
           
 void nodeChanged()
           
protected  void onLoad()
          This method is overriden to syhchronize the view with the model when it first appears on the screen.
protected abstract  void redrawAllEdges()
           
protected abstract  void updateTreeStructure()
           
private  void updateView()
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement, initWidget, onAttach, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EDGES_WIDTH

protected static final int EDGES_WIDTH
See Also:
Constant Field Values

_node

private Node _node

_root

private NodeView _root

_tree

private com.google.gwt.user.client.ui.HorizontalPanel _tree
Constructor Detail

Tree

protected Tree(Node node)
Method Detail

createEdgesContainer

protected com.google.gwt.user.client.ui.AbsolutePanel createEdgesContainer()

createRoot

protected abstract NodeView createRoot()

expand

protected abstract void expand(boolean value)

getAbsoluteEdgeConnectionPointY

protected int getAbsoluteEdgeConnectionPointY()

getNode

protected Node getNode()

getNodeView

protected NodeView getNodeView()

getTree

protected com.google.gwt.user.client.ui.HorizontalPanel getTree()

nodeChanged

public void nodeChanged()
Specified by:
nodeChanged in interface NodeObserver

onLoad

protected void onLoad()
This method is overriden to syhchronize the view with the model when it first appears on the screen.

Overrides:
onLoad in class com.google.gwt.user.client.ui.Widget

redrawAllEdges

protected abstract void redrawAllEdges()

updateTreeStructure

protected abstract void updateTreeStructure()

updateView

private void updateView()