2362N/A * Copyright (c) 1997, 1999, 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 * Divider used for Motif split pane. 0N/A * <strong>Warning:</strong> 0N/A * Serialized objects of this class will not be compatible with 0N/A * future Swing releases. The current serialization support is appropriate 0N/A * for short term storage or RMI between applications running the same 0N/A * version of Swing. A future release of Swing will provide support for 0N/A * long term persistence. 0N/A * @author Jeff Dinkins 0N/A * Default cursor, supers is package private, so we have to have one 0N/A protected static final int pad =
6;
0N/A * Creates a new Motif SplitPaneDivider 0N/A * overrides to hardcode the size of the divider 0N/A * PENDING(jeff) - rewrite JSplitPane so that this ins't needed 0N/A * Paints the divider. 0N/A // PENDING(jeff) - the thumb's location and size is currently hard coded. 0N/A // It should be dynamic. 0N/A * The minimums size is the same as the preferredSize 0N/A * Sets the SplitPaneUI that is using the receiver. This is completely 0N/A * overriden from super to create a different MouseHandler. 0N/A * Returns true if the point at <code>x</code>, <code>y</code> 0N/A * is inside the thumb. 0N/A // Two methods are exposed so that MotifMouseHandler can see the 0N/A // superclass protected ivars 0N/A * MouseHandler is subclassed to only pass off to super if the mouse 0N/A * is in the thumb. Motif only allows dragging when the thumb is clicked 0N/A // Constrain the mouse pressed to the thumb.