Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

JTreeTable::TreeTableCellRenderer Class Reference

Inheritance diagram for JTreeTable::TreeTableCellRenderer:
[legend]
Collaboration diagram for JTreeTable::TreeTableCellRenderer:
[legend]
List of all members.

Public Methods

 TreeTableCellRenderer (TreeModel model)
void updateUI ()
void setRowHeight (int rowHeight)
void setBounds (int x, int y, int w, int h)
void paint (Graphics g)
Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)

Protected Attributes

int visibleRow

Detailed Description

A TreeCellRenderer that displays a JTree.

Definition at line 50 of file JTreeTable.java.


Member Function Documentation

Component JTreeTable::TreeTableCellRenderer::getTableCellRendererComponent JTable   table,
Object   value,
boolean   isSelected,
boolean   hasFocus,
int   row,
int   column
[inline]
 

TreeCellRenderer method. Overridden to update the visible row.

Definition at line 110 of file JTreeTable.java.

void JTreeTable::TreeTableCellRenderer::paint Graphics   g [inline]
 

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

Definition at line 102 of file JTreeTable.java.

void JTreeTable::TreeTableCellRenderer::setBounds int   x,
int   y,
int   w,
int   h
[inline]
 

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

Definition at line 94 of file JTreeTable.java.

void JTreeTable::TreeTableCellRenderer::setRowHeight int   rowHeight [inline]
 

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

Definition at line 82 of file JTreeTable.java.

void JTreeTable::TreeTableCellRenderer::updateUI   [inline]
 

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

Definition at line 62 of file JTreeTable.java.


Member Data Documentation

int JTreeTable::TreeTableCellRenderer::visibleRow [protected]
 

Last table/tree row asked to renderer.

Definition at line 52 of file JTreeTable.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:18:08 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001