0N/A/*
3865N/A * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
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
0N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
0N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
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 *
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,
2362N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2362N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0N/A * or visit www.oracle.com if you need additional information or have any
0N/A * questions.
0N/A */
0N/Apackage javax.swing;
0N/A
0N/A
0N/A/**
0N/A * A collection of constants generally used for positioning and orienting
0N/A * components on the screen.
0N/A *
0N/A * @author Jeff Dinkins
0N/A * @author Ralph Kar (orientation support)
0N/A */
0N/Apublic interface SwingConstants {
0N/A
0N/A /**
0N/A * The central position in an area. Used for
0N/A * both compass-direction constants (NORTH, etc.)
0N/A * and box-orientation constants (TOP, etc.).
0N/A */
0N/A public static final int CENTER = 0;
0N/A
0N/A //
0N/A // Box-orientation constant used to specify locations in a box.
0N/A //
0N/A /**
0N/A * Box-orientation constant used to specify the top of a box.
0N/A */
0N/A public static final int TOP = 1;
0N/A /**
0N/A * Box-orientation constant used to specify the left side of a box.
0N/A */
0N/A public static final int LEFT = 2;
0N/A /**
0N/A * Box-orientation constant used to specify the bottom of a box.
0N/A */
0N/A public static final int BOTTOM = 3;
0N/A /**
0N/A * Box-orientation constant used to specify the right side of a box.
0N/A */
0N/A public static final int RIGHT = 4;
0N/A
0N/A //
0N/A // Compass-direction constants used to specify a position.
0N/A //
0N/A /**
0N/A * Compass-direction North (up).
0N/A */
0N/A public static final int NORTH = 1;
0N/A /**
0N/A * Compass-direction north-east (upper right).
0N/A */
0N/A public static final int NORTH_EAST = 2;
0N/A /**
0N/A * Compass-direction east (right).
0N/A */
0N/A public static final int EAST = 3;
0N/A /**
0N/A * Compass-direction south-east (lower right).
0N/A */
0N/A public static final int SOUTH_EAST = 4;
0N/A /**
0N/A * Compass-direction south (down).
0N/A */
0N/A public static final int SOUTH = 5;
0N/A /**
0N/A * Compass-direction south-west (lower left).
0N/A */
0N/A public static final int SOUTH_WEST = 6;
0N/A /**
0N/A * Compass-direction west (left).
0N/A */
0N/A public static final int WEST = 7;
0N/A /**
0N/A * Compass-direction north west (upper left).
0N/A */
0N/A public static final int NORTH_WEST = 8;
0N/A
0N/A //
0N/A // These constants specify a horizontal or
0N/A // vertical orientation. For example, they are
0N/A // used by scrollbars and sliders.
0N/A //
0N/A /** Horizontal orientation. Used for scrollbars and sliders. */
0N/A public static final int HORIZONTAL = 0;
0N/A /** Vertical orientation. Used for scrollbars and sliders. */
0N/A public static final int VERTICAL = 1;
0N/A
0N/A //
0N/A // Constants for orientation support, since some languages are
0N/A // left-to-right oriented and some are right-to-left oriented.
0N/A // This orientation is currently used by buttons and labels.
0N/A //
0N/A /**
0N/A * Identifies the leading edge of text for use with left-to-right
3865N/A * and right-to-left languages. Used by buttons and labels.
0N/A */
0N/A public static final int LEADING = 10;
0N/A /**
0N/A * Identifies the trailing edge of text for use with left-to-right
0N/A * and right-to-left languages. Used by buttons and labels.
0N/A */
0N/A public static final int TRAILING = 11;
0N/A /**
0N/A * Identifies the next direction in a sequence.
0N/A *
3865N/A * @since 1.4
3865N/A */
3865N/A public static final int NEXT = 12;
3865N/A
3865N/A /**
3865N/A * Identifies the previous direction in a sequence.
3865N/A *
3865N/A * @since 1.4
3865N/A */
3865N/A public static final int PREVIOUS = 13;
3865N/A}
3865N/A