Examples of traitPageHeight()


Examples of org.foray.fotree.FObj.traitPageHeight()

                }
                if (axis == AbsoluteAxis.HORIZONTAL) {
                    return parent.traitPageWidth();
                }
                if (axis == AbsoluteAxis.VERTICAL) {
                    return parent.traitPageHeight();
                }
                break;
            }
            case AUTO: {
                // This isn't right, but is reasonable for now
View Full Code Here

Examples of org.foray.fotree.fo.obj.SimplePageMaster.traitPageHeight()

        }
        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

Examples of org.foray.fotree.fo.obj.SimplePageMaster.traitPageHeight()

        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

Examples of org.foray.fotree.fo.obj.SimplePageMaster.traitPageHeight()

        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
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.