|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swing.control.attributetree.AttributeTreeRenderer
The TableCellRenderer for the SwingAttributeTree.
| Field Summary | |
static int |
LEVEL_INDENTATION
The indentation in pixels of a tree level |
| Constructor Summary | |
AttributeTreeRenderer(SwingAttributeTree tree)
Constructor |
|
| Method Summary | |
void |
configureIcon(AttributeTreeNode node,
AttributeTreeIcon icon)
Configures look and feel settings of the icon |
java.awt.Rectangle |
getHandleBounds(int row,
AttributeTreeNode node)
Returns the bounds of the expand/collapse handle of the given row and node |
int |
getIndent(AttributeTreeNode node)
Returns the indendation of the given node |
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LEVEL_INDENTATION
| Constructor Detail |
public AttributeTreeRenderer(SwingAttributeTree tree)
tree - The tree this renderer belongs to| Method Detail |
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer
public java.awt.Rectangle getHandleBounds(int row,
AttributeTreeNode node)
row - The row containing the handlenode - The node the handle belongs to
public int getIndent(AttributeTreeNode node)
node - The node for which the indendation
should be retrieved
public void configureIcon(AttributeTreeNode node,
AttributeTreeIcon icon)
node - The node to configure the icon foricon - The icon to configure
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||