Package com.haulmont.yarg.formatters.impl.xls

Examples of com.haulmont.yarg.formatters.impl.xls.Cell


        List<HSSFClientAnchor> list = getAllAnchors(getEscherAggregate(templateSheet));

        int i = 0;
        if (CollectionUtils.isNotEmpty(orderedPicturesId)) {//just a shitty workaround for anchors without pictures
            for (HSSFClientAnchor anchor : list) {
                Cell topLeft = getCellFromTemplate(new Cell(anchor.getCol1(), anchor.getRow1()));
                anchor.setCol1(topLeft.getCol());
                anchor.setRow1(topLeft.getRow());

                anchor.setCol2(topLeft.getCol() + anchor.getCol2() - anchor.getCol1());
                anchor.setRow2(topLeft.getRow() + anchor.getRow2() - anchor.getRow1());

                HSSFPatriarch sheetPatriarch = drawingPatriarchsMap.get(resultSheet);
                if (sheetPatriarch != null) {
                    sheetPatriarch.createPicture(anchor, orderedPicturesId.get(i++));
                }
View Full Code Here


    protected boolean rowExists(HSSFSheet sheet, int rowNumber) {
        return sheet.getRow(rowNumber) != null;
    }

    protected Cell getCellFromTemplate(Cell cell) {
        Cell newCell = new Cell(cell);
        updateCell(newCell);
        return newCell;
    }
View Full Code Here

TOP

Related Classes of com.haulmont.yarg.formatters.impl.xls.Cell

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.