Package org.eclipse.birt.report.engine.content

Examples of org.eclipse.birt.report.engine.content.IStyle


        while (yi <= coords.y2) {
            xi = coords.x1;
            while (xi <= coords.x2) {
                cell = sheet.getCell(yi, xi, false);
                if (cell == defaultCell) {
                    IStyle newStyle = null;

                    // update edge cell of an element
                    if (xi != coords.x1) {
                        if (newStyle == null) {
                            newStyle = StyleImpl.create(style);
                        }

                        // set directly for optimization
                        newStyle.setProperty(StyleConstants.STYLE_BORDER_LEFT_STYLE,
                                CSSValueConstants.NONE_VALUE);
                    }
                    if (xi != coords.x2) {
                        if (newStyle == null) {
                            newStyle = StyleImpl.create(style);
                        }
                        newStyle.setProperty(StyleConstants.STYLE_BORDER_RIGHT_STYLE,
                                CSSValueConstants.NONE_VALUE);
                    }
                    if (yi != coords.y1) {
                        if (newStyle == null) {
                            newStyle = StyleImpl.create(style);
                        }
                        newStyle.setProperty(StyleConstants.STYLE_BORDER_TOP_STYLE,
                                CSSValueConstants.NONE_VALUE);
                    }
                    if (yi != coords.y2) {
                        if (newStyle == null) {
                            newStyle = StyleImpl.create(style);
                        }
                        newStyle.setProperty(StyleConstants.STYLE_BORDER_BOTTOM_STYLE,
                                CSSValueConstants.NONE_VALUE);
                    }

                    sheet.setCell(yi, xi, null, newStyle != null ? newStyle
                            : style);
View Full Code Here


        yi = coords.y1;
        while (yi <= coords.y2) {
            xi = coords.x1;
            while (xi <= coords.x2) {
                IStyle newStyle = null;

                // update edge cell of an element
                if (xi != coords.x1) {
                    if (newStyle == null) {
                        newStyle = StyleImpl.create(style);
                    }

                    // set directly for optimization
                    newStyle.setProperty(StyleConstants.STYLE_BORDER_LEFT_STYLE,
                            CSSValueConstants.NONE_VALUE);
                }
                if (xi != coords.x2) {
                    if (newStyle == null) {
                        newStyle = StyleImpl.create(style);
                    }
                    newStyle.setProperty(StyleConstants.STYLE_BORDER_RIGHT_STYLE,
                            CSSValueConstants.NONE_VALUE);
                }
                if (yi != coords.y1) {
                    if (newStyle == null) {
                        newStyle = StyleImpl.create(style);
                    }
                    newStyle.setProperty(StyleConstants.STYLE_BORDER_TOP_STYLE,
                            CSSValueConstants.NONE_VALUE);
                }
                if (yi != coords.y2) {
                    if (newStyle == null) {
                        newStyle = StyleImpl.create(style);
                    }
                    newStyle.setProperty(StyleConstants.STYLE_BORDER_BOTTOM_STYLE,
                            CSSValueConstants.NONE_VALUE);
                }

                sheet.setCell(yi, xi, null, newStyle != null ? newStyle
                        : style);
View Full Code Here

    private void layoutChildren(List<Integer> xCuts, List<Integer> yCuts,
            Sheet sheet, Cell defaultCell, Frame parentElement,
            IStyle currentStyle, int xOffset, int yOffset) {
        Frame element = null;
        Coordinate coord = null;
        IStyle style = null;

        for (Iterator<Frame> it = parentElement.iterator(); it.hasNext();) {
            element = it.next();

            coord = getElementCoords(xCuts,
View Full Code Here

TOP

Related Classes of org.eclipse.birt.report.engine.content.IStyle

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.