Package org.foray.fotree.fo.obj

Examples of org.foray.fotree.fo.obj.SimplePageMaster


            return getKeywordValue(context, fobj);
        }
        if (value().canEvalPercentage()) {
            int base = 0;
            if (fobj instanceof SimplePageMaster) {
                final SimplePageMaster spm = (SimplePageMaster) fobj;
                base = spm.traitPageHeight();
            } else {
                base = context.widthContainingBlock();
            }
            final float percent = value().evalPercentage();
            return Math.round(base * percent
 
View Full Code Here


                direction, collection.getCount());
        final PropertyValue value = collection.getItem(whichElement);
        if (value.canEvalPercentage()) {
            int base = 0;
            if (fobj instanceof SimplePageMaster) {
                final SimplePageMaster spm = (SimplePageMaster) fobj;
                base = spm.traitPageHeight();
            } else {
                base = context.widthContainingBlock();
            }
            final float percent = value.evalPercentage();
            return Math.round(base * percent / WKConstants.PERCENT_CONVERSION);
View Full Code Here

        }
        case PAGE_SEQUENCE_WRAPPER: {
            return new PageSequenceWrapper(parent, propertyList);
        }
        case REGION_AFTER: {
            final SimplePageMaster simplePageMaster = parentSimplePageMaster(
                    enumeration, parent, locator);
            return new RegionAfter(simplePageMaster, propertyList);
        }
        case REGION_BEFORE: {
            final SimplePageMaster simplePageMaster = parentSimplePageMaster(
                    enumeration, parent, locator);
            return new RegionBefore(simplePageMaster, propertyList);
        }
        case REGION_BODY: {
            final SimplePageMaster simplePageMaster = parentSimplePageMaster(
                    enumeration, parent, locator);
            return new RegionBody(simplePageMaster, propertyList);
        }
        case REGION_END: {
            final SimplePageMaster simplePageMaster = parentSimplePageMaster(
                    enumeration, parent, locator);
            return new RegionEnd(simplePageMaster, propertyList);
        }
        case REGION_NAME_SPECIFIER: {
            final FlowTargetList flowTargetList = parentFlowTargetList(
                    enumeration, parent, locator);
            return new RegionNameSpecifier(flowTargetList, propertyList);
        }
        case REGION_START: {
            final SimplePageMaster simplePageMaster = parentSimplePageMaster(
                    enumeration, parent, locator);
            return new RegionStart(simplePageMaster, propertyList);
        }
        case REPEATABLE_PAGE_MASTER_ALTERNATIVES: {
            return new RepeatablePMAlternatives(parent, propertyList);
        }
        case REPEATABLE_PAGE_MASTER_REFERENCE: {
            return new RepeatablePMReference(parent, propertyList);
        }
        case RETRIEVE_MARKER: {
            return new RetrieveMarker(parent, propertyList);
        }
        case RETRIEVE_TABLE_MARKER: {
            return new RetrieveTableMarker(parent, propertyList);
        }
        case ROOT: {
            return new Root(propertyList);
        }
        case SCALING_VALUE_CITATION: {
            return new ScalingValueCitation(parent, propertyList);
        }
        case SIMPLE_PAGE_MASTER: {
            final LayoutMasterSet layoutMasterSet = parentLayoutMasterSet(
                    enumeration, parent, locator);
            return new SimplePageMaster(layoutMasterSet, propertyList);
        }
        case SINGLE_PAGE_MASTER_REFERENCE: {
            return new SinglePageMasterReference(parent, propertyList);
        }
        case STATIC_CONTENT: {
View Full Code Here

                direction, collection.getCount());
        final PropertyValue value = collection.getItem(whichElement);
        if (value.canEvalPercentage()) {
            int base = 0;
            if (fobj instanceof SimplePageMaster) {
                final SimplePageMaster spm = (SimplePageMaster) fobj;
                base = spm.traitPageHeight();
            } else {
                base = context.widthContainingBlock();
            }
            final float percent = value.evalPercentage();
            return Math.round(base * percent / WKConstants.PERCENT_CONVERSION);
View Full Code Here

TOP

Related Classes of org.foray.fotree.fo.obj.SimplePageMaster

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.