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.
|
Color[] |
getCheckBoxColor()
Get the color of filled checkboxes that indicate if nodes are selected.
|
Color |
getColor()
Get the color of the text in the tree.
|
Font |
getDescriptionFont()
Get the font used to render the node description.
|
Font |
getFont()
Get the font used to render text.
|
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(Color color1,
Color color2)
Set the color of filled checkboxes that indicate if a node is selected.
|
void |
setColor(Color textColor)
Set the color of the text in the tree.
|
void |
setDescriptionFont(Font font)
Set the font used to render the node descriptions.
|
void |
setFont(Font font)
Set the font used to render text.
|
void |
setIconSize(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.Color[] getCheckBoxColor()
Color getColor()
setColor(java.awt.Color)
Font getDescriptionFont()
Font getFont()
setFont(java.awt.Font)
Dimension getIconSize()
setIconSize(java.awt.Dimension)
int getIconSpace()
setIconSpace(int)
int getRowSpacing()
setRowSpacing(int)
boolean isRootVisible()
setRootVisible(boolean)
void setCheckBoxColor(Color color1, Color color2)
color1
- first color in the checkbox gradient.color2
- second color in the checkbox gradient.void setColor(Color textColor)
textColor
- New text color.getColor()
void setDescriptionFont(Font font)
font
- New font for descriptions.void setFont(Font font)
font
- New tree font.getFont()
void setIconSize(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()