de.fhg.igd.earth.view
Class TreeProjector

java.lang.Object
  extended byde.fhg.igd.earth.view.Projector
      extended byde.fhg.igd.earth.view.TreeProjector

public class TreeProjector
extends Projector

This is projector to show the structure of the model (TreeView) Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG

Version:
: 1.0
Author:
: Werner Beutel

Field Summary
protected  String datapath_
          Datapath for Icons
static ImageIcon ICON_GROUP
          default gorup icons
static ImageIcon ICON_HGROUP
          default history group icon (agent)
static ImageIcon ICON_LEAF
          default leaf icons
static ImageIcon ICON_ROOT
          default root icons
private  JTree jTree_
          the JTree structure
private  Node selectedNode_
          the selected node (focus)
private  DefaultTreeModel treeModel_
          tree model (JTree)
private  DefaultTreeSelectionModel treeSelectionModel_
          selection model (JTree)
 
Fields inherited from class de.fhg.igd.earth.view.Projector
container_, containerHeight_, containerWidth_, enabled_, firstTime_, model_, projectorManager_
 
Constructor Summary
TreeProjector(JComponent container)
          Creates an instance of this class
 
Method Summary
private  void checkErasedChildren(Group group)
          Checks for erased children in the given group
 void delete()
          Deletes this projector
 String getIdentName()
          Returns the ident name
private  void insertChild(Node node, DefaultMutableTreeNode jNode)
          Inserts a new NODE into the JTree model node (jNode)
 void setDatapath(String datapath)
          Sets the "Datapath" for ICONS
 void update()
          updates the projector
private  void update(Node node)
          update NODE
private  void updateGroup(Group group)
          update GROUP
private  void updateHistoryGroup(HistoryGroup historyGroup)
          update HISTORY GROUP
private  void updateLeaf(Leaf leaf)
          update LEAF
private  void updateModelGraph(ModelGraph model)
          update MODEL GRAPH
 
Methods inherited from class de.fhg.igd.earth.view.Projector
resizeContainer, resizePanelEvent, setModel, setProjectorManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

datapath_

protected String datapath_
Datapath for Icons


ICON_ROOT

public static ImageIcon ICON_ROOT
default root icons


ICON_GROUP

public static ImageIcon ICON_GROUP
default gorup icons


ICON_LEAF

public static ImageIcon ICON_LEAF
default leaf icons


ICON_HGROUP

public static ImageIcon ICON_HGROUP
default history group icon (agent)


jTree_

private JTree jTree_
the JTree structure


selectedNode_

private Node selectedNode_
the selected node (focus)


treeModel_

private DefaultTreeModel treeModel_
tree model (JTree)


treeSelectionModel_

private DefaultTreeSelectionModel treeSelectionModel_
selection model (JTree)

Constructor Detail

TreeProjector

public TreeProjector(JComponent container)
Creates an instance of this class

Method Detail

getIdentName

public String getIdentName()
Returns the ident name

Specified by:
getIdentName in class Projector
Returns:
ident name

update

public void update()
updates the projector

Specified by:
update in class Projector

update

private void update(Node node)
update NODE

Parameters:
node -

updateModelGraph

private void updateModelGraph(ModelGraph model)
update MODEL GRAPH

Parameters:
model -

updateGroup

private void updateGroup(Group group)
update GROUP

Parameters:
group -

updateHistoryGroup

private void updateHistoryGroup(HistoryGroup historyGroup)
update HISTORY GROUP

Parameters:
historyGroup -

updateLeaf

private void updateLeaf(Leaf leaf)
update LEAF

Parameters:
leaf -

insertChild

private void insertChild(Node node,
                         DefaultMutableTreeNode jNode)
Inserts a new NODE into the JTree model node (jNode)

Parameters:
node -
jNode -

checkErasedChildren

private void checkErasedChildren(Group group)
Checks for erased children in the given group

Parameters:
group -

setDatapath

public void setDatapath(String datapath)
Sets the "Datapath" for ICONS


delete

public void delete()
Deletes this projector

Specified by:
delete in class Projector


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.