538 lines · 20.6 KB · Java
RawDownload
                yTotal = SizeRequirements.getTiledSizeRequirements(yChildren);            }        }    }     /**     * Given one of the 4 axis values, resolve it to an absolute axis.     * The relative axis values, PAGE_AXIS and LINE_AXIS are converted     * to their absolute couterpart given the target's ComponentOrientation     * value.  The absolute axes, X_AXIS and Y_AXIS are returned unmodified.     *     * @param axis the axis to resolve     * @param o the ComponentOrientation to resolve against     * @return the resolved axis     */    private int resolveAxis( int axis, ComponentOrientation o ) {        int absoluteAxis;        if( axis == LINE_AXIS ) {            absoluteAxis = o.isHorizontal() ? X_AXIS : Y_AXIS;        } else if( axis == PAGE_AXIS ) {            absoluteAxis = o.isHorizontal() ? Y_AXIS : X_AXIS;        } else {            absoluteAxis = axis;        }        return absoluteAxis;   }      private int axis;    private Container target;     private transient SizeRequirements[] xChildren;    private transient SizeRequirements[] yChildren;    private transient SizeRequirements xTotal;    private transient SizeRequirements yTotal;     private transient PrintStream dbg;}

Lines 501–538 of 538. Previous lines