FileDocCategorySizeDatePackage
MotifTreeUI.javaAPI DocJava SE 5 API4213Fri Aug 26 14:54:48 BST 2005com.sun.java.swing.plaf.motif

MotifTreeUI

public class MotifTreeUI extends BasicTreeUI
Motif rendition of the tree component.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.

version
1.16 08/28/98
author
Jeff Dinkins

Fields Summary
static final int
HALF_SIZE
static final int
SIZE
Constructors Summary
public MotifTreeUI()
creates a UI object to represent a Motif Tree widget


                   
      
	super();
    
Methods Summary
public javax.swing.tree.TreeCellRenderercreateDefaultCellRenderer()
Returns the default cell renderer that is used to do the stamping of each node.

	return new MotifTreeCellRenderer();
    
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent x)

	return new MotifTreeUI();
    
public voidinstallUI(javax.swing.JComponent c)

	super.installUI(c);
    
protected voidpaintHorizontalLine(java.awt.Graphics g, javax.swing.JComponent c, int y, int left, int right)

	g.fillRect( left - 1, y, right - left, 2 );
      
protected voidpaintVerticalLine(java.awt.Graphics g, javax.swing.JComponent c, int x, int top, int bottom)

          g.fillRect( x - 1, top, 2, bottom - top + 2 );