Package org.foray.area

Examples of org.foray.area.PageRA


     * @param areaTree The area tree being tested.
     * @return The first normal-flow reference area in {@code areaTree}.
     */
    protected NormalFlowRA getFirstNormalFlowArea(final AreaTree areaTree) {
        final PageCollection pageCollection = getPageCollection(areaTree, 1);
        final PageRA firstPage = getPage(pageCollection, 1);
        final RegionRABody regionBody = firstPage.getRegionBody(
                "xsl-region-body");
        final MainRA main = regionBody.getMainRefArea();
        AreaNode node = main.getChildAt(0);
        assertTrue(node instanceof SpanRA);
        final SpanRA span = (SpanRA) node;
View Full Code Here


        final int index = pageNum - 1;
        assertTrue(index >= 0);
        assertTrue(index < pageCollection.getChildCount());
        final AreaNode node = pageCollection.getChildAt(index);
        assertTrue(node instanceof PageRA);
        final PageRA page = (PageRA) node;
        return page;
    }
View Full Code Here

TOP

Related Classes of org.foray.area.PageRA

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.