< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/metal/MetalTreeUI.java

Print this page

        

*** 36,48 **** import javax.swing.tree.*; import javax.swing.plaf.basic.*; /** ! * The metal look and feel implementation of <code>TreeUI</code>. * <p> ! * <code>MetalTreeUI</code> allows for configuring how to * visually render the spacing and delineation between nodes. The following * hints are supported: * * <table summary="Descriptions of supported hints: Angled, Horizontal, and None"> * <tr> --- 36,48 ---- import javax.swing.tree.*; import javax.swing.plaf.basic.*; /** ! * The metal look and feel implementation of {@code TreeUI}. * <p> ! * {@code MetalTreeUI} allows for configuring how to * visually render the spacing and delineation between nodes. The following * hints are supported: * * <table summary="Descriptions of supported hints: Angled, Horizontal, and None"> * <tr>
*** 62,79 **** * <td>Do not draw any visual indication between nodes.</td> * </tr> * </table> * * <p> ! * As it is typically impractical to obtain the <code>TreeUI</code> from ! * the <code>JTree</code> and cast to an instance of <code>MetalTreeUI</code> * you enable this property via the client property ! * <code>JTree.lineStyle</code>. For example, to switch to ! * <code>Horizontal</code> style you would do: ! * <code>tree.putClientProperty("JTree.lineStyle", "Horizontal");</code> * <p> ! * The default is <code>Angled</code>. * * @author Tom Santos * @author Steve Wilson (value add stuff) */ public class MetalTreeUI extends BasicTreeUI { --- 62,79 ---- * <td>Do not draw any visual indication between nodes.</td> * </tr> * </table> * * <p> ! * As it is typically impractical to obtain the {@code TreeUI} from ! * the {@code JTree} and cast to an instance of {@code MetalTreeUI} * you enable this property via the client property ! * {@code JTree.lineStyle}. For example, to switch to ! * {@code Horizontal} style you would do: ! * {@code tree.putClientProperty("JTree.lineStyle", "Horizontal");} * <p> ! * The default is {@code Angled}. * * @author Tom Santos * @author Steve Wilson (value add stuff) */ public class MetalTreeUI extends BasicTreeUI {
< prev index next >