Lines Matching defs:axis

54  * <p> The BoxLayout manager is constructed with an axis parameter that
166 * given axis.
169 * @param axis the axis to lay out components along. Can be one of:
175 * @exception AWTError if the value of <code>axis</code> is invalid
177 @ConstructorProperties({"target", "axis"})
178 public BoxLayout(Container target, int axis) {
179 if (axis != X_AXIS && axis != Y_AXIS &&
180 axis != LINE_AXIS && axis != PAGE_AXIS) {
181 throw new AWTError("Invalid axis");
183 this.axis = axis;
192 * @param axis the axis to lay out components along. Can be one of:
201 BoxLayout(Container target, int axis, PrintStream dbg) {
202 this(target, axis);
218 * Returns the axis that was used to lay out components.
225 * @return the axis that was used to lay out components
230 return this.axis;
361 * Returns the alignment along the X axis for the container.
364 * to place the children along the X axis will be returned.
378 * Returns the alignment along the Y axis for the container.
381 * to place the children along the Y axis will be returned.
416 // Resolve axis to an absolute value (either X_AXIS or Y_AXIS)
418 int absoluteAxis = resolveAxis( axis, o );
419 boolean ltr = (absoluteAxis != axis) ? o.isLeftToRight() : true;
493 // Resolve axis to an absolute value (either X_AXIS or Y_AXIS)
494 int absoluteAxis = resolveAxis(axis,target.getComponentOrientation());
507 * Given one of the 4 axis values, resolve it to an absolute axis.
508 * The relative axis values, PAGE_AXIS and LINE_AXIS are converted
512 * @param axis the axis to resolve
514 * @return the resolved axis
516 private int resolveAxis( int axis, ComponentOrientation o ) {
518 if( axis == LINE_AXIS ) {
520 } else if( axis == PAGE_AXIS ) {
523 absoluteAxis = axis;
529 private int axis;