home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-06-19 | 887 b | 33 lines |
- package symantec.itools.awt;
-
- /**
- * Orientation is an interface for components that can be oriented either
- * vertically or horizontally.
- */
- interface Orientation
- {
- /**
- * Constant specifying vertical orientation.
- */
- public final int ORIENTATION_VERTICAL = 0;
- /**
- * Constant specifying horizontal orientation.
- */
- public final int ORIENTATION_HORIZONTAL = 1;
-
- /**
- * Sets the component's new orientation.
- * @param o desired orientation, either ORIENTATION_VERTICAL or
- * ORIENTATION_HORIZONTAL
- * @see #getOrientation
- */
- public void setOrientation(int o);
- /**
- * Gets the component's current orientation.
- * @return the current orientation, either ORIENTATION_VERTICAL or
- * ORIENTATION_HORIZONTAL
- * @see #setOrientation
- */
- public int getOrientation();
- }
-