public class LTree extends Object
LNode
,
TreeLayout
Constructor and Description |
---|
LTree(VirtualSpace vs)
Create instance of LTree in virtual space.
|
LTree(VirtualSpace vs,
boolean drawBorders)
Create instance of LTree in virtual space.
|
Modifier and Type | Method and Description |
---|---|
LNode |
createRootNode(Object owner,
String text)
Create new root node.
|
Color |
getDefaultBackgroundColor()
Get default background color of the nodes.
|
Color |
getDefaultBorderColor()
Get default border color of the nodes.
|
Color |
getDefaultSelectedBackgroundColor()
Get default text color of the nodes.
|
Color |
getDefaultSelectedBorderColor() |
Color |
getDefaultSelectedTextColor() |
Color |
getDefaultTextColor()
Get default text color of the nodes.
|
Object |
getOwner()
Any user object that represent the whole tree.
|
LNode |
getRoot()
Get root node of the tree
|
void |
setDefaultBackgroundColor(Color backgroundColor)
Set color that will be used as background color for newly created nodes.
|
void |
setDefaultBorderColor(Color borderColor)
Set color that will be used as border color for newly created nodes.
|
void |
setDefaultSelectedBackgroundColor(Color selectedBackgroundColor) |
void |
setDefaultSelectedBorderColor(Color selectedBorderColor) |
void |
setDefaultSelectedTextColor(Color selectedTextColor) |
void |
setDefaultTextColor(Color textColor)
Set color that will be used as text color for newly created nodes.
|
void |
setOwner(Object owner)
Set object that holds any data for this tree.
|
public LTree(VirtualSpace vs)
vs
- virtual space where this tree will be created.public LTree(VirtualSpace vs, boolean drawBorders)
vs
- virtual space where this tree will be created.drawBorders
- Indicates whethere to draw borders and backgrounds of tree nodes.
If drawBorders is false, then VText class will be used to represent nodes.
If drawBorders is true, then VBText class will be used instead of VText.public Object getOwner()
public void setOwner(Object owner)
owner
- any objectpublic Color getDefaultBorderColor()
public void setDefaultBorderColor(Color borderColor)
borderColor
- default border color to be used.public Color getDefaultBackgroundColor()
public void setDefaultBackgroundColor(Color backgroundColor)
backgroundColor
- default background color to be used.public Color getDefaultTextColor()
public void setDefaultTextColor(Color textColor)
textColor
- default text color to be used.public Color getDefaultSelectedBackgroundColor()
public void setDefaultSelectedBackgroundColor(Color selectedBackgroundColor)
public Color getDefaultSelectedTextColor()
public void setDefaultSelectedTextColor(Color selectedTextColor)
public Color getDefaultSelectedBorderColor()
public void setDefaultSelectedBorderColor(Color selectedBorderColor)
public LNode getRoot()
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.