| com.jgoodies.looks.windows.WindowsTreeUI
WindowsTreeUI | final public class WindowsTreeUI extends com.sun.java.swing.plaf.windows.WindowsTreeUI (Code) | | The JGoodies Windows Look&Feel implementation of TreeUI .
Corrects the position of the tree button icon and provides two line styles:
angled dashed lines, or no lines at all. By default, lines are drawn.
You can change the line style by setting a client property.
The property key and values are a subset of the values used
by the Metal L&F tree. To hide lines use one of the following:
JTree tree1 = new JTree();
tree1.putClientProperty("JTree.lineStyle", "None");
JTree tree2 = new JTree();
tree1.putClientProperty(Options.TREE_LINE_STYLE_KEY,
Options.TREE_LINE_STYLE_NONE_VALUE);
Although lines are shown by default, you could code:
JTree tree1 = new JTree();
tree1.putClientProperty("JTree.lineStyle", "Angled");
JTree tree2 = new JTree();
tree1.putClientProperty(Options.TREE_LINE_STYLE_KEY,
Options.TREE_LINE_STYLE_ANGLED_VALUE);
author: Karsten Lentzsch version: $Revision: 1.3 $ |
Method Summary | |
public static ComponentUI | createUI(JComponent b) | protected void | drawCentered(Component c, Graphics graphics, Icon icon, int x, int y) | public void | installUI(JComponent c) | protected void | paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right) | protected void | paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom) | public void | uninstallUI(JComponent c) |
|
|