1 /* 2 Copyright aswing.org, see the LICENCE.txt. 3 */ 4 /** 5 * A collection of constants generally used for positioning and orienting 6 * components on the screen. 7 * 8 * @author iiley 9 */ 10 class org.aswing.ASWingConstants{ 11 12 public static var NONE:Number = -1; 13 14 /** 15 * The central position in an area. Used for 16 * both compass-direction constants (NORTH, etc.) 17 * and box-orientation constants (TOP, etc.). 18 */ 19 public static var CENTER:Number = 0; 20 21 // 22 // Box-orientation constant used to specify locations in a box. 23 // 24 /** 25 * Box-orientation constant used to specify the top of a box. 26 */ 27 public static var TOP:Number = 1; 28 /** 29 * Box-orientation constant used to specify the left side of a box. 30 */ 31 public static var LEFT:Number = 2; 32 /** 33 * Box-orientation constant used to specify the bottom of a box. 34 */ 35 public static var BOTTOM:Number = 3; 36 /** 37 * Box-orientation constant used to specify the right side of a box. 38 */ 39 public static var RIGHT:Number = 4; 40 41 // 42 // Compass-direction constants used to specify a position. 43 // 44 /** 45 * Compass-direction North (up). 46 */ 47 public static var NORTH:Number = 1; 48 /** 49 * Compass-direction north-east (upper right). 50 */ 51 public static var NORTH_EAST:Number = 2; 52 /** 53 * Compass-direction east (right). 54 */ 55 public static var EAST:Number = 3; 56 /** 57 * Compass-direction south-east (lower right). 58 */ 59 public static var SOUTH_EAST:Number = 4; 60 /** 61 * Compass-direction south (down). 62 */ 63 public static var SOUTH:Number = 5; 64 /** 65 * Compass-direction south-west (lower left). 66 */ 67 public static var SOUTH_WEST:Number = 6; 68 /** 69 * Compass-direction west (left). 70 */ 71 public static var WEST:Number = 7; 72 /** 73 * Compass-direction north west (upper left). 74 */ 75 public static var NORTH_WEST:Number = 8; 76 77 // 78 // These constants specify a horizontal or 79 // vertical orientation. For example, they are 80 // used by scrollbars and sliders. 81 // 82 /** 83 * Horizontal orientation. Used for scrollbars and sliders. 84 */ 85 public static var HORIZONTAL:Number = 0; 86 /** 87 * Vertical orientation. Used for scrollbars and sliders. 88 */ 89 public static var VERTICAL:Number = 1; 90 } 91