FileDocCategorySizeDatePackage
MotifTreeUI.javaAPI DocJava SE 6 API4378Tue Jun 10 00:21:58 BST 2008com.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, y, right - left + 1, 2 );
      
protected voidpaintVerticalLine(java.awt.Graphics g, javax.swing.JComponent c, int x, int top, int bottom)

          if (tree.getComponentOrientation().isLeftToRight()) {
              g.fillRect( x, top, 2, bottom - top + 2 );
          } else {
              g.fillRect( x - 1, top, 2, bottom - top + 2 );
          }