Package org.axsl.area

Examples of org.axsl.area.NormalFlowRefArea.siblingIndex()


        final NormalFlowRefArea colArea = (NormalFlowRefArea) area;
        switch (breakableNode.traitBreakBefore(area)) {
        case PAGE: {
            // if first ColumnArea, and empty, return OK
            if (colArea.getChildCount() == 0
                    && (colArea.siblingIndex() == 0)) {
                return Status.OK;
            }
            return Status.FORCE_PAGE_BREAK;
        }
        case ODD_PAGE: {
View Full Code Here


        }
        case ODD_PAGE: {
            // if first ColumnArea, empty, _and_ in odd page,
            // return OK
            if (colArea.getChildCount() == 0
                    && (colArea.siblingIndex() == 0)
                    && (colArea.getPage().getNumber() % 2 != 0)) {
                return Status.OK;
            }
            return Status.FORCE_PAGE_BREAK_ODD;
        }
View Full Code Here

        }
        case EVEN_PAGE: {
            // if first ColumnArea, empty, _and_ in even page,
            // return OK
            if (colArea.getChildCount() == 0
                    && (colArea.siblingIndex() == 0)
                    && (colArea.getPage().getNumber() % 2 == 0)) {
                return Status.OK;
            }
            return Status.FORCE_PAGE_BREAK_EVEN;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.