public interface TreeAttributes
Tree
is rendered. The class captures a set of attributes found in a typical tree
layout, but some layouts may not use all of these properties.TreeLayout
Modifier and Type | Method and Description |
---|---|
TreeAttributes |
copy()
Returns a new TreeAttributes instance of the same type as this TreeAttributes, who's properties are
configured exactly as this TreeAttributes.
|
void |
copy(TreeAttributes attributes)
Copies the specified TreeAttributes' properties into this object's properties.
|
java.awt.Color[] |
getCheckBoxColor()
Get the color of filled checkboxes that indicate if nodes are selected.
|
java.awt.Color |
getColor()
Get the color of the text in the tree.
|
java.awt.Font |
getDescriptionFont()
Get the font used to render the node description.
|
java.awt.Font |
getFont()
Get the font used to render text.
|
java.awt.Dimension |
getIconSize()
Get the size of each icon in the tree.
|
int |
getIconSpace()
Get the amount of space, in pixels, to leave between an icon in the tree and surrounding text and shapes.
|
int |
getRowSpacing()
Get the space, in pixels, to leave between rows in the tree.
|
boolean |
isRootVisible()
Should be root node be drawn?
|
void |
setCheckBoxColor(java.awt.Color color1,
java.awt.Color color2)
Set the color of filled checkboxes that indicate if a node is selected.
|
void |
setColor(java.awt.Color textColor)
Set the color of the text in the tree.
|
void |
setDescriptionFont(java.awt.Font font)
Set the font used to render the node descriptions.
|
void |
setFont(java.awt.Font font)
Set the font used to render text.
|
void |
setIconSize(java.awt.Dimension size)
Set the size of each icon in the tree.
|
void |
setIconSpace(int iconSpace)
Set the amount of space, in pixels, to leave between an icon in the tree and surrounding text and shapes.
|
void |
setRootVisible(boolean visible)
Set the root node to visibile or not visible.
|
void |
setRowSpacing(int spacing)
Set the space, in pixels, to leave between rows in the tree.
|
TreeAttributes copy()
void copy(TreeAttributes attributes)
attributes
- the attributes to copy.java.awt.Color[] getCheckBoxColor()
java.awt.Color getColor()
setColor(java.awt.Color)
java.awt.Font getDescriptionFont()
java.awt.Font getFont()
setFont(java.awt.Font)
java.awt.Dimension getIconSize()
setIconSize(java.awt.Dimension)
int getIconSpace()
setIconSpace(int)
int getRowSpacing()
setRowSpacing(int)
boolean isRootVisible()
setRootVisible(boolean)
void setCheckBoxColor(java.awt.Color color1, java.awt.Color color2)
color1
- first color in the checkbox gradient.color2
- second color in the checkbox gradient.void setColor(java.awt.Color textColor)
textColor
- New text color.getColor()
void setDescriptionFont(java.awt.Font font)
font
- New font for descriptions.void setFont(java.awt.Font font)
font
- New tree font.getFont()
void setIconSize(java.awt.Dimension size)
size
- New size.getIconSize()
void setIconSpace(int iconSpace)
iconSpace
- Icon space in pixels.getIconSpace()
void setRootVisible(boolean visible)
visible
- True if the root node should be drawn.isRootVisible()
void setRowSpacing(int spacing)
spacing
- Row spacing.getRowSpacing()