Package com.volantis.mcs.dom2theme.impl.model

Examples of com.volantis.mcs.dom2theme.impl.model.OutputStyledElementList


    public StyleSheet extract(Document styledDom) {
        StyledDocumentLogger.logDocument(styledDom);

        // StyledDOMOptimizer -> OutputStyledElements -> OutputStyledThemeGenerator

        OutputStyledElementList elementList = optimizer.optimize(styledDom);

        return generator.generateStyleSheetFor(elementList);
    }
View Full Code Here


   

    // javadoc inherited
    public void renderStyleAttributes(Document styledDom) {
        StyledDocumentLogger.logDocument(styledDom);
        OutputStyledElementList elementList = optimizer.optimize(styledDom);       
        elementList.iterate(this.rewriter);
    }
View Full Code Here

        this.styledDOMOptimizer = styledDOMOptimizer;
        stylingFactory = StylingFactory.getDefaultInstance();
    }

    public void optimizeDocument(Document document) {
        OutputStyledElementList list = styledDOMOptimizer.optimize(document);

        // Visit all the elements in the DOM and discard the styles from the
        // element.
        document.accept(this);

        list.iterate(this);
    }
View Full Code Here

                }

                // Match the selector against the styleable entities in the
                // input document, returning the set of styled entities which
                // match it's type.
                OutputStyledElementList typedElementSubset =
                        elementTypeMatcher.match(selectorSequence.getType());

                // Calculate the intersection of all the sets of properties
                // associated with the matching entities to determine whether
                // the entities have any properties in common.
View Full Code Here

TOP

Related Classes of com.volantis.mcs.dom2theme.impl.model.OutputStyledElementList

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.