2721N/A * Copyright (c) 1997, 2010, 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 * Factory object that can vend Borders appropriate for the basic L & F. 0N/A * @author Georges Saab 0N/A * @author Amy Fowler 0N/A * Returns a border instance for a JSplitPane divider 0N/A * Special thin border for rollover toolbar buttons. 0N/A // Draw the pressd button 0N/A // Draw a rollover button 0N/A * A border which is like a Margin border but it will only honor the margin 0N/A * if the margin has been explicitly set by the developer. 0N/A * Note: This is identical to the package private class 0N/A * MetalBorders.RolloverMarginBorder and should probably be consolidated. 0N/A super(
3,
3,
3,
3);
// hardcoded margin for JLF requirements. 0N/A // default margin so replace 0N/A // Margin which has been explicitly set by the user. 0N/A // leave room for default visual 0N/A // Ideally we'd have an interface defined for classes which 0N/A // support margins (to avoid this hackery), but we've 0N/A // decided against it for simplicity 0N/A * Draws the border around the divider in a splitpane 0N/A * (when BasicSplitPaneUI is used). To get the appropriate effect, this 0N/A * needs to be used with a SplitPaneBorder. 0N/A // This is needed for the space between the divider and end of 0N/A * Draws the border around the splitpane. To work correctly you shoudl 0N/A * also install a border on the divider (property SplitPaneDivider.border). 0N/A // The only tricky part with this border is that the divider is 0N/A // not positioned at the top (for horizontal) or left (for vert), 0N/A // so this border draws to where the divider is: 0N/A // ----------------- 0N/A // |xxxxxxx xxxxxxx| 0N/A // |xxxxxxx xxxxxxx| 0N/A // ----------------- 0N/A // The above shows (rather excessively) what this looks like for 0N/A // a horizontal orientation. This border then draws the x's, with 0N/A // the SplitPaneDividerBorder drawing its own border. 0N/A // This is needed for the space between the divider and end of