Class tred.Tree
All Packages Class Hierarchy This Package Previous Next Index
Class tred.Tree
java.lang.Object
|
+----tred.EditorObject
|
+----tred.EditorPanel
|
+----tred.NodePanel
|
+----tred.Tree
- public class Tree
- extends NodePanel
implementation to Tree
-
getBounds()
-
-
getState(String)
-
This method is invoked in order to get the state of tree for export.
-
move(int, int)
-
move disabled with trees
note that there was some problems if the tree was movable:
refer exercise .24 and .25, which didn't export correctly
if the tree was moved (Cannot get inputStream)
-
paint(Graphics)
-
This method draws the name of the tree to top of the area.
-
setOrder(String)
-
This method is invoked to set the order of output.
move
public final void move(int x,
int y)
- move disabled with trees
note that there was some problems if the tree was movable:
refer exercise .24 and .25, which didn't export correctly
if the tree was moved (Cannot get inputStream)
- Overrides:
- move in class EditorPanel
getBounds
public Rectangle getBounds()
- Overrides:
- getBounds in class EditorObject
setOrder
public void setOrder(String order)
- This method is invoked to set the order of output. The default is
tree order.
- Parameters:
- order - is a string which determines the output order.
Possible values: LEVEL
- Overrides:
- setOrder in class EditorPanel
- See Also:
- getState
getState
protected String getState(String str)
- This method is invoked in order to get the state of tree for export.
- Parameters:
- str - is the substitute string for empty slot.
- Returns:
- the current state (string of items in the slots) of this panel.
- Overrides:
- getState in class EditorPanel
- See Also:
- export, setOrder
paint
public boolean paint(Graphics g)
- This method draws the name of the tree to top of the area.
After that all the slots are drawed as tree-like style by
invoking the paint method for slots and then drawing the connecting
lines between parent slot and target slot.
- Overrides:
- paint in class NodePanel
All Packages Class Hierarchy This Package Previous Next Index