Package org.librebiz.pureport.definition

Examples of org.librebiz.pureport.definition.Column


    private void endRow() {
       
    }

    private void startColumn(Attributes attrs) {
        Column c = new Column();
        c.setWidth(toQuantity(attrs.getValue("width")));
        c.setLeftMargin(toQuantity(attrs.getValue("left-margin"), zero()));
        c.setRightMargin(toQuantity(attrs.getValue("right-margin"), zero()));
        band.addColumn(c);
    }
View Full Code Here


        if (band.getRightMargin() != null) {
            width -= band.getRightMargin().getValue(Unit.PT);
        }
        int unsizedCols = 0;
        for (int i = 0; i < band.getColumnCount(); ++i) {
            Column col = band.getColumn(i);
            if (col.getWidth() != null) {
                width -= col.getWidth().getValue(Unit.PT);
            } else {
                ++unsizedCols;
            }
        }
        double unsizedWidth = 0;
        if (unsizedCols > 0) {
            unsizedWidth = width/unsizedCols;
        }
        for (int i = 0; i < band.getColumnCount(); ++i) {
            Column col = band.getColumn(i);
            double w = col.getWidth() == null
                    ? unsizedWidth
                    : col.getWidth().getValue(Unit.PT);
            columnStart[i+1] = columnStart[i] + w;
        }
    }
View Full Code Here

TOP

Related Classes of org.librebiz.pureport.definition.Column

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.