Classes implement this interface to provide callback functionality to
handle tree field drawing.
drawTreeItem
public void drawTreeItem(TreeField treeField,
Graphics graphics,
int node,
int y,
int width,
int indent)
- Invoked when a particular tree item requires painting.
The graphics context passed to this method represents the entire
tree, not just the row for repainting. Accordingly, the y parameter
indicates how far down in the field's extent the repaint should occur.
- Parameters:
treeField - Tree field that requires repainting.graphics - Graphics context for the list.index - Row index to draw.y - Distance from the top of the tree field forw painting.width - Width of the area remaining to draw the item (accounting for
the indent).indent - Number of pixels that should be reserved due to the nesting
depth of the current item.- Since:
- JDE 3.7.0
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.