Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

treetable::TTree Class Reference

A JTree used for displaying the tree in the table cells. More...

Inheritance diagram for treetable::TTree:

List of all members.

Public Methods

 TTree (TTreeTable tTREE_TABLE, TreeModel tTREE_MODEL)
void collapseAll (TreePath tPARENT_TREE_PATH)
void expandAll (TreePath tPARENT_TREE_PATH)
void setBounds (int iX, int iY, int iWIDTH, int iHEIGHT)
void updateUI ()
void setLastVisibleRow (int iVISIBLE_ROW)
void setRowHeight (int iROW_HEIGHT)
void paint (Graphics tGRAPHICS)

Protected Attributes

int iVisibleRow
 Last table/tree row asked to renderer.

TTreeTable tTreeTable
 The tree-table.


Detailed Description

A JTree used for displaying the tree in the table cells.

Definition at line 85 of file TTree.java.


Constructor & Destructor Documentation

treetable::TTree::TTree TTreeTable    tTREE_TABLE,
TreeModel    tTREE_MODEL
[inline]
 

Builds a new instance.

Parameters:
tTREE_TABLE  The tree-table.
tTREE_MODEL  The tree model.
Precondition:
( tTREE_TABLE != null )

Definition at line 105 of file TTree.java.

References treetable::TTree::tTreeTable.


Member Function Documentation

void treetable::TTree::collapseAll TreePath    tPARENT_TREE_PATH [inline]
 

Collapses all nodes in the tree path.

Parameters:
tPARENT_TREE_PATH  Path that has to be collapseed.

Definition at line 116 of file TTree.java.

void treetable::TTree::expandAll TreePath    tPARENT_TREE_PATH [inline]
 

Expands all nodes in the tree path.

Parameters:
tPARENT_TREE_PATH  Path that has to be expanded.

Definition at line 149 of file TTree.java.

void treetable::TTree::paint Graphics    tGRAPHICS [inline]
 

Paints this component. It has been subclassed to translate the graphics such that the last visible row will be drawn at 0,0.

Parameters:
tGRAPHICS  The graphics context to use for painting.

Definition at line 253 of file TTree.java.

References treetable::TTree::iVisibleRow.

void treetable::TTree::setBounds int    iX,
int    iY,
int    iWIDTH,
int    iHEIGHT
[inline]
 

Moves and resizes this component. The new location of the top-left corner is specified by iX and iY, and the new size is specified by iWIDTH and iHEIGHT. This is overridden to set the height to match that of the JTable. iX The new x-coordinate of this component. iY The new y-coordinate of this component. iWIDTH The new width of this component. iHEIGHT The new height of this component.

Definition at line 188 of file TTree.java.

References treetable::TTree::tTreeTable.

void treetable::TTree::setLastVisibleRow int    iVISIBLE_ROW [inline]
 

Sets the last visible row for the tree renderer.

Parameters:
iLAST_VISIBLE_ROW  The tree last visible row.

Definition at line 222 of file TTree.java.

References treetable::TTree::iVisibleRow.

void treetable::TTree::setRowHeight int    iROW_HEIGHT [inline]
 

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

Parameters:
iROW_HEIGHT  Row height.

Definition at line 231 of file TTree.java.

References treetable::TTree::tTreeTable.

void treetable::TTree::updateUI   [inline]
 

Notification from the UIManager that the L&F has changed. Replaces the current UI object with the latest version from the UIManager. It is overridden to set the colors of the Tree's renderer to match that of the table.

Definition at line 199 of file TTree.java.


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:27 2003 for MPCL by doxygen1.2.18