|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.fhg.igd.earth.view.Projector
de.fhg.igd.earth.view.TreeProjector
This is projector to show the structure of the model (TreeView) Title : Earth Copyright : Copyright (c) 2001 Organisation : IGD FhG
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 |
protected String datapath_
public static ImageIcon ICON_ROOT
public static ImageIcon ICON_GROUP
public static ImageIcon ICON_LEAF
public static ImageIcon ICON_HGROUP
private JTree jTree_
private Node selectedNode_
private DefaultTreeModel treeModel_
private DefaultTreeSelectionModel treeSelectionModel_
Constructor Detail |
public TreeProjector(JComponent container)
Method Detail |
public String getIdentName()
getIdentName
in class Projector
public void update()
update
in class Projector
private void update(Node node)
node
- private void updateModelGraph(ModelGraph model)
model
- private void updateGroup(Group group)
group
- private void updateHistoryGroup(HistoryGroup historyGroup)
historyGroup
- private void updateLeaf(Leaf leaf)
leaf
- private void insertChild(Node node, DefaultMutableTreeNode jNode)
node
- jNode
- private void checkErasedChildren(Group group)
group
- public void setDatapath(String datapath)
public void delete()
delete
in class Projector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |