MotifTreeUIpublic 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. |
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.TreeCellRenderer | createDefaultCellRenderer()Returns the default cell renderer that is used to do the
stamping of each node.
return new MotifTreeCellRenderer();
| public static javax.swing.plaf.ComponentUI | createUI(javax.swing.JComponent x)
return new MotifTreeUI();
| public void | installUI(javax.swing.JComponent c)
super.installUI(c);
| protected void | paintHorizontalLine(java.awt.Graphics g, javax.swing.JComponent c, int y, int left, int right)
g.fillRect( left, y, right - left + 1, 2 );
| protected void | paintVerticalLine(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 );
}
|
|