public class

MotifTreeUI

extends BasicTreeUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.TreeUI
       ↳ javax.swing.plaf.basic.BasicTreeUI
         ↳ com.sun.java.swing.plaf.motif.MotifTreeUI

Class Overview

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.

Summary

Nested Classes
class MotifTreeUI.MotifCollapsedIcon The plus sign button icon. 
class MotifTreeUI.MotifExpandedIcon The minus sign button icon. 
[Expand]
Inherited Fields
From class javax.swing.plaf.basic.BasicTreeUI
Public Constructors
MotifTreeUI()
creates a UI object to represent a Motif Tree widget
Public Methods
TreeCellRenderer createDefaultCellRenderer()
Returns the default cell renderer that is used to do the stamping of each node.
static ComponentUI createUI(JComponent x)
void installUI(JComponent c)
Configures the specified component appropriate for the look and feel.
Protected Methods
void paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right)
Paints a horizontal line.
void paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom)
Paints a vertical line.
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicTreeUI
From class javax.swing.plaf.TreeUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object

Public Constructors

public MotifTreeUI ()

creates a UI object to represent a Motif Tree widget

Public Methods

public TreeCellRenderer createDefaultCellRenderer ()

Returns the default cell renderer that is used to do the stamping of each node.

public static ComponentUI createUI (JComponent x)

public void installUI (JComponent c)

Configures the specified component appropriate for the look and feel. This method is invoked when the ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:

  1. Install any default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
  2. Install a LayoutManager on the component if necessary.
  3. Create/add any required sub-components to the component.
  4. Create/install event listeners on the component.
  5. Create/install a PropertyChangeListener on the component in order to detect and respond to component property changes appropriately.
  6. Install keyboard UI (mnemonics, traversal, etc.) on the component.
  7. Initialize any appropriate instance data.

Parameters
c the component where this UI delegate is being installed

Protected Methods

protected void paintHorizontalLine (Graphics g, JComponent c, int y, int left, int right)

Paints a horizontal line.

protected void paintVerticalLine (Graphics g, JComponent c, int x, int top, int bottom)

Paints a vertical line.