| javax.swing.table.DefaultTableCellRenderer org.netbeans.swing.outline.DefaultOutlineCellRenderer
DefaultOutlineCellRenderer | public class DefaultOutlineCellRenderer extends DefaultTableCellRenderer (Code) | | An outline-aware TableCellRenderer which knows how to paint expansion
handles and indent child nodes an appropriate amount.
author: Tim Boudreau |
DefaultOutlineCellRenderer | public DefaultOutlineCellRenderer()(Code) | | Creates a new instance of DefaultOutlineTreeCellRenderer
|
getExpansionHandleHeight | static int getExpansionHandleHeight()(Code) | | |
getExpansionHandleWidth | static int getExpansionHandleWidth()(Code) | | |
getNestingWidth | static int getNestingWidth()(Code) | | |
getTableCellRendererComponent | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)(Code) | | Get a component that can render cells in an Outline. If
((Outline) table).isTreeColumnIndex(column) is true,
it will paint as indented and with an expansion handle if the
Outline's model returns false from isLeaf for the
passed value.
If the column is not the tree column, its behavior is the same as
DefaultTableCellRenderer.
|
setBorder | final public void setBorder(Border b)(Code) | | Overridden to combine the expansion border (whose insets determine how
much a child tree node is shifted to the right relative to the ancestor
root node) with whatever border is set, as a CompoundBorder. The expansion
border is also responsible for drawing the expansion icon.
|
Fields inherited from javax.swing.table.DefaultTableCellRenderer | protected static Border noFocusBorder(Code)(Java Doc)
|
Methods inherited from javax.swing.table.DefaultTableCellRenderer | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc) public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)(Code)(Java Doc) public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isOpaque()(Code)(Java Doc) public void repaint(long tm, int x, int y, int width, int height)(Code)(Java Doc) public void repaint(Rectangle r)(Code)(Java Doc) public void repaint()(Code)(Java Doc) public void revalidate()(Code)(Java Doc) public void setBackground(Color c)(Code)(Java Doc) public void setForeground(Color c)(Code)(Java Doc) protected void setValue(Object value)(Code)(Java Doc) public void updateUI()(Code)(Java Doc) public void validate()(Code)(Java Doc)
|
|
|