Package org.librebiz.pureport.quantity

Examples of org.librebiz.pureport.quantity.Quantity


            }
        }
    }

    private Quantity zero() {
        return new Quantity(0, defaultUnits);
    }
View Full Code Here


                if (token.equals("italic")) {
                    at.setAttribute(TextAttribute.POSTURE, TextAttribute.POSTURE_OBLIQUE);
                }
            }
        }
        Quantity q = toQuantity(attrs.getValue("font-size"));
        if (q != null) {
            float size = (float)q.getValue(Unit.PT);
            at.setAttribute(TextAttribute.SIZE, new Float(size));
        }
        Color col = toColor(attrs.getValue("foreground"));
        if (col != null) {
            at.setAttribute(TextAttribute.FOREGROUND, col);
View Full Code Here

        }
    }

    private void startPageLayout(Attributes attrs) {
        PageLayout layout = new PageLayout();
        layout.setPaperWidth(toQuantity(attrs.getValue("paper-width"), new Quantity(21, Unit.CM)));
        layout.setPaperHeight(toQuantity(attrs.getValue("paper-height"), new Quantity(29.7, Unit.CM)));
        layout.setTopMargin(toQuantity(attrs.getValue("top-margin")));
        layout.setBottomMargin(toQuantity(attrs.getValue("bottom-margin")));
        layout.setLeftMargin(toQuantity(attrs.getValue("left-margin")));
        layout.setRightMargin(toQuantity(attrs.getValue("right-margin")));
        String orientation = attrs.getValue("orientation");
View Full Code Here

TOP

Related Classes of org.librebiz.pureport.quantity.Quantity

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.