Lines Matching refs:axis

57      * @param axis the axis to tile along.  This can be
60 public AsyncBoxView(Element elem, int axis) {
63 this.axis = axis;
71 * Fetch the major axis (the axis the children
76 return axis;
80 * Fetch the minor axis (the axis orthoginal
81 * to the tiled axis). This will have a value of
85 return (axis == X_AXIS) ? Y_AXIS : X_AXIS;
153 * Fetch the span along an axis that is taken up by the insets.
155 * @param axis the axis to determine the total insets along,
159 protected float getInsetSpan(int axis) {
160 float margin = (axis == X_AXIS) ?
168 * property is true, the value of setSize along the major axis
169 * will change the requirements along the major axis and incremental
224 * Requirements changed along the major axis.
233 * This is implemented to mark the major axis as having
236 * the major axis. If the span along the major axis is
249 * Requirements changed along the minor axis.
316 if (axis == X_AXIS) {
523 * Since the major axis is updated asynchronously and should be
525 * axis. Since the minor axis is flexible, work is queued to resize
537 * Retrieves the size of the view along an axis.
539 * @param axis may be either <code>View.X_AXIS</code> or
541 * @return the current span of the view along the given axis, >= 0
543 float getSpanOnAxis(int axis) {
544 if (axis == getMajorAxis()) {
551 * Sets the size of the view along an axis. Since the major
552 * axis is updated asynchronously and should be the sum of the
553 * tiled children the call is ignored for the major axis. Since
554 * the minor axis is flexible, work is queued to resize the
557 * @param axis may be either <code>View.X_AXIS</code> or
561 void setSpanOnAxis(int axis, float span) {
562 float margin = getInsetSpan(axis);
563 if (axis == getMinorAxis()) {
582 // along the major axis the value is ignored
618 * axis.
620 * @param axis may be either View.X_AXIS or View.Y_AXIS
625 * @exception IllegalArgumentException for an invalid axis type
627 public float getPreferredSpan(int axis) {
628 float margin = getInsetSpan(axis);
629 if (axis == this.axis) {
634 return child.getPreferredSpan(axis) + margin;
643 * axis.
645 * @param axis may be either View.X_AXIS or View.Y_AXIS
650 * @exception IllegalArgumentException for an invalid axis type
652 public float getMinimumSpan(int axis) {
653 if (axis == this.axis) {
654 return getPreferredSpan(axis);
658 return child.getMinimumSpan(axis);
662 if (axis == X_AXIS) {
671 * axis.
673 * @param axis may be either View.X_AXIS or View.Y_AXIS
678 * @exception IllegalArgumentException for an invalid axis type
680 public float getMaximumSpan(int axis) {
681 if (axis == this.axis) {
682 return getPreferredSpan(axis);
859 * The major axis against which the children are
862 int axis;
870 * Current span along the major axis. This
873 * the major axis.
878 * Is the span along the major axis estimated?
883 * Current span along the minor axis. This
956 float targetOffset = (axis == X_AXIS) ?
1017 float targetOffset = (axis == X_AXIS) ? x - lastAlloc.x : y - lastAlloc.y;
1032 if (axis == X_AXIS) {
1064 * along the major axis. Make sure that offsets are set
1255 // setting the child size on the minor axis
1257 // along the major axis.
1286 span = child.getPreferredSpan(axis);
1301 if (axis == X_AXIS) {
1316 * What is the span along the minor axis.
1327 * What is the offset along the minor axis
1339 * What is the span along the major axis.
1346 * Get the offset along the major axis
1369 if (axis == X_AXIS) {
1394 // minor axis
1400 // major axis