C# Class Rhino.Tools.Debugger.Treetable.JTreeTable.TreeTableCellRenderer

Inheritance: JTree, TableCellRenderer
Show file Open project: hazzik/Rhino.Net Class Usage Examples

Protected Properties

Property Type Description
visibleRow int

Public Methods

Method Description
GetTableCellRendererComponent ( JTable table, object value, bool isSelected, bool hasFocus, int row, int column ) : Component

TreeCellRenderer method.

TreeCellRenderer method. Overridden to update the visible row.

Paint ( Graphics g ) : void

Sublcassed to translate the graphics such that the last visible row will be drawn at 0,0.

Sublcassed to translate the graphics such that the last visible row will be drawn at 0,0.

SetBounds ( int x, int y, int w, int h ) : void

This is overridden to set the height to match that of the JTable.

This is overridden to set the height to match that of the JTable.

SetRowHeight ( int rowHeight ) : void

Sets the row height of the tree, and forwards the row height to the table.

Sets the row height of the tree, and forwards the row height to the table.

TreeTableCellRenderer ( JTreeTable _enclosing, TreeModel model ) : Java.Awt
UpdateUI ( ) : void

updateUI is overridden to set the colors of the Tree's renderer to match that of the table.

updateUI is overridden to set the colors of the Tree's renderer to match that of the table.

Method Details

GetTableCellRendererComponent() public method

TreeCellRenderer method.
TreeCellRenderer method. Overridden to update the visible row.
public GetTableCellRendererComponent ( JTable table, object value, bool isSelected, bool hasFocus, int row, int column ) : Component
table JTable
value object
isSelected bool
hasFocus bool
row int
column int
return Component

Paint() public method

Sublcassed to translate the graphics such that the last visible row will be drawn at 0,0.
Sublcassed to translate the graphics such that the last visible row will be drawn at 0,0.
public Paint ( Graphics g ) : void
g Graphics
return void

SetBounds() public method

This is overridden to set the height to match that of the JTable.
This is overridden to set the height to match that of the JTable.
public SetBounds ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
return void

SetRowHeight() public method

Sets the row height of the tree, and forwards the row height to the table.
Sets the row height of the tree, and forwards the row height to the table.
public SetRowHeight ( int rowHeight ) : void
rowHeight int
return void

TreeTableCellRenderer() public method

public TreeTableCellRenderer ( JTreeTable _enclosing, TreeModel model ) : Java.Awt
_enclosing JTreeTable
model TreeModel
return Java.Awt

UpdateUI() public method

updateUI is overridden to set the colors of the Tree's renderer to match that of the table.
updateUI is overridden to set the colors of the Tree's renderer to match that of the table.
public UpdateUI ( ) : void
return void

Property Details

visibleRow protected property

Last table/tree row asked to renderer.
Last table/tree row asked to renderer.
protected int visibleRow
return int