2362N/A * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * The metal look and feel implementation of <code>TreeUI</code>. 0N/A * <code>MetalTreeUI</code> allows for configuring how to 0N/A * visually render the spacing and delineation between nodes. The following 0N/A * hints are supported: 0N/A * <table summary="Descriptions of supported hints: Angled, Horizontal, and None"> 0N/A * <th><p align="left">Angled</p></th> 0N/A * <td>A line is drawn connecting the child to the parent. For handling 0N/A * of the root node refer to 0N/A * {@link javax.swing.JTree#setRootVisible} and 0N/A * {@link javax.swing.JTree#setShowsRootHandles}. 0N/A * <th><p align="left">Horizontal</p></th> 0N/A * <td>A horizontal line is drawn dividing the children of the root node.</td> 0N/A * <th><p align="left">None</p></th> 0N/A * <td>Do not draw any visual indication between nodes.</td> 0N/A * As it is typically impratical to obtain the <code>TreeUI</code> from 0N/A * the <code>JTree</code> and cast to an instance of <code>MetalTreeUI</code> 0N/A * you enable this property via the client property 0N/A * <code>JTree.lineStyle</code>. For example, to switch to 0N/A * <code>Horizontal</code> style you would do: 0N/A * <code>tree.putClientProperty("JTree.lineStyle", "Horizontal");</code> 0N/A * The default is <code>Angled</code>. 0N/A * @author Tom Santos 0N/A * @author Steve Wilson (value add stuff) 0N/A /** this function converts between the string passed into the client property 0N/A * and the internal representation (currently and int) 0N/A // Draw a line at the top 0N/A /** This class listens for changes in line style */ 0N/A }
// end class PaletteListener