src/java.desktop/unix/classes/sun/awt/X11/XScrollPanePeer.java

Print this page




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.awt.X11;
  27 
  28 import java.awt.*;
  29 import java.awt.event.*;
  30 import java.awt.peer.*;
  31 import java.lang.reflect.*;
  32 
  33 import sun.awt.AWTAccessor;
  34 
  35 class XScrollPanePeer extends XComponentPeer implements ScrollPanePeer, XScrollbarClient {
  36 
  37     public final static int     MARGIN = 1;
  38     public final static int     SCROLLBAR;
  39     public final static int     SPACE = 2;
  40     public final static int     SCROLLBAR_INSET = 2;
  41 
  42     public final static int     VERTICAL = 1 << 0;
  43     public final static int     HORIZONTAL = 1 << 1;
  44 
  45     static {
  46         SCROLLBAR = XToolkit.getUIDefaults().getInt("ScrollBar.defaultWidth");
  47     }
  48 
  49     XVerticalScrollbar       vsb;
  50     XHorizontalScrollbar     hsb;
  51     XWindow                  clip;
  52 
  53     int                         active=VERTICAL;
  54     int                         hsbSpace;
  55     int                         vsbSpace;
  56 
  57     static class XScrollPaneContentWindow extends XWindow {
  58         XScrollPaneContentWindow(ScrollPane target, long parentWindow) {
  59             super(target, parentWindow);
  60         }
  61         public String getWMName() {
  62             return "ScrollPane content";
  63         }




  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.awt.X11;
  27 
  28 import java.awt.*;
  29 import java.awt.event.*;
  30 import java.awt.peer.*;
  31 import java.lang.reflect.*;
  32 
  33 import sun.awt.AWTAccessor;
  34 
  35 class XScrollPanePeer extends XComponentPeer implements ScrollPanePeer, XScrollbarClient {
  36 
  37     public static final int     MARGIN = 1;
  38     public static final int     SCROLLBAR;
  39     public static final int     SPACE = 2;
  40     public static final int     SCROLLBAR_INSET = 2;
  41 
  42     public static final int     VERTICAL = 1 << 0;
  43     public static final int     HORIZONTAL = 1 << 1;
  44 
  45     static {
  46         SCROLLBAR = XToolkit.getUIDefaults().getInt("ScrollBar.defaultWidth");
  47     }
  48 
  49     XVerticalScrollbar       vsb;
  50     XHorizontalScrollbar     hsb;
  51     XWindow                  clip;
  52 
  53     int                         active=VERTICAL;
  54     int                         hsbSpace;
  55     int                         vsbSpace;
  56 
  57     static class XScrollPaneContentWindow extends XWindow {
  58         XScrollPaneContentWindow(ScrollPane target, long parentWindow) {
  59             super(target, parentWindow);
  60         }
  61         public String getWMName() {
  62             return "ScrollPane content";
  63         }