public class TreeLayout extends Observable implements Observer
IDecisionMethod.
Reflects the tree changes.| Modifier and Type | Field and Description |
|---|---|
protected int |
allLevels |
protected CategoriesRenderer |
categoriesRenderer |
protected ArrayList |
cells |
protected Dimension |
d |
protected ArrayList |
freeCells |
protected int |
maxLevel |
protected IDecisionMethod |
method |
protected Dimension |
offset |
protected toxtree.ui.tree.TreeCell |
selectedCell |
protected int |
selectedIndex |
protected boolean[] |
visited |
| Constructor and Description |
|---|
TreeLayout() |
TreeLayout(IDecisionMethod method) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateSize(Object node,
int level,
int width) |
protected void |
clearVisited() |
Object |
findObject(int x,
int y) |
IDecisionMethod |
getMethod() |
protected boolean |
isVisited(IDecisionRule node) |
void |
paint(Graphics g) |
Dimension |
setMethod(IDecisionMethod method) |
protected void |
setVisited(IDecisionRule node,
boolean value) |
protected toxtree.ui.tree.TreeCell |
tree2cells(Object node,
int level) |
void |
update(Observable o,
Object arg) |
protected Dimension |
updateMethod() |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedprotected IDecisionMethod method
protected ArrayList cells
protected Dimension d
protected Dimension offset
protected int maxLevel
protected int allLevels
protected ArrayList freeCells
protected boolean[] visited
protected int selectedIndex
protected CategoriesRenderer categoriesRenderer
protected toxtree.ui.tree.TreeCell selectedCell
public TreeLayout(IDecisionMethod method)
public TreeLayout()
protected boolean isVisited(IDecisionRule node)
protected void setVisited(IDecisionRule node, boolean value)
protected int calculateSize(Object node, int level, int width)
protected toxtree.ui.tree.TreeCell tree2cells(Object node, int level)
protected void clearVisited()
protected Dimension updateMethod()
public Dimension setMethod(IDecisionMethod method)
public void paint(Graphics g)
public void update(Observable o, Object arg)
public Object findObject(int x, int y)
public IDecisionMethod getMethod()
Copyright © 2004–2018 Ideaconsult Ltd. All rights reserved.