Package org.apache.batik.css

Examples of org.apache.batik.css.AbstractViewCSS$ComputedStyleCache$StrongReference


    private TextDecoration getTextDecoration(Element element, GraphicsNode node,
                       TextDecoration parentTextDecoration, BridgeContext ctx) {

        TextDecoration textDecoration = new TextDecoration(parentTextDecoration);

        AbstractViewCSS viewCss = CSSUtilities.getViewCSS(element);
        CSSOMReadOnlyStyleDeclaration styleDecl = viewCss.getCascadedStyle(element, null);

        // determine if text-decoration was explicity set on this element
        CSSValue cssVal = styleDecl.getLocalPropertyCSSValue(CSS_TEXT_DECORATION_PROPERTY);
        if (cssVal == null) {
            // not explicitly set so return the copy of the parent's decoration
View Full Code Here


     */
    public GraphicsNode build(BridgeContext ctx, Document document) {
        // the bridge context is now associated to one document
        ctx.setDocument(document);
        // set the media type
        AbstractViewCSS view;
        view = (AbstractViewCSS)((DocumentView)document).getDefaultView();
        view.setMedia(ctx.getUserAgent().getMedia());

        // inform the bridge context the builder to use
        ctx.setGVTBuilder(this);

        // build the GVT tree
View Full Code Here

                                       "xml:base",
                                       uri);

        SVGOMDocument document
            = (SVGOMDocument)localRefElement.getOwnerDocument();
        AbstractViewCSS view = (AbstractViewCSS)document.getDefaultView();


        SVGOMDocument refDocument
            = (SVGOMDocument)refElement.getOwnerDocument();
        AbstractViewCSS refView = (AbstractViewCSS)refDocument.getDefaultView();

        HiddenChildElementSupport.setStyle(localRefElement,
                                           view,
                                           refElement,
                                           refView);
View Full Code Here

     * @exception BridgeException if an error occured while constructing
     * the GVT tree
     */
    public GraphicsNode build(BridgeContext ctx, Document document) {
        // set the media type
        AbstractViewCSS view;
        view = (AbstractViewCSS)((DocumentView)document).getDefaultView();
        view.setMedia(ctx.getUserAgent().getMedia());

        // inform the bridge context the builder to use
        ctx.setGVTBuilder(this);

        // build the GVT tree
View Full Code Here

    private TextDecoration getTextDecoration(Element element, GraphicsNode node,
                       TextDecoration parentTextDecoration, BridgeContext ctx) {

        TextDecoration textDecoration = new TextDecoration(parentTextDecoration);

        AbstractViewCSS viewCss = CSSUtilities.getViewCSS(element);
        CSSOMReadOnlyStyleDeclaration styleDecl = viewCss.getCascadedStyle(element, null);

        // determine if text-decoration was explicity set on this element
        CSSValue cssVal = styleDecl.getLocalPropertyCSSValue(CSS_TEXT_DECORATION_PROPERTY);
        if (cssVal == null) {
            // not explicitly set so return the copy of the parent's decoration
View Full Code Here

                                       "xml:base",
                                       uri);

        SVGOMDocument document
            = (SVGOMDocument)localRefElement.getOwnerDocument();
        AbstractViewCSS view = (AbstractViewCSS)document.getDefaultView();


        SVGOMDocument refDocument
            = (SVGOMDocument)refElement.getOwnerDocument();
        AbstractViewCSS refView = (AbstractViewCSS)refDocument.getDefaultView();
       
        HiddenChildElementSupport.setStyle(localRefElement,
                                           view,
                                           refElement,
                                           refView);
View Full Code Here

                XLinkSupport.setXLinkHref(def, new URL(url, href).toString());
            } catch (MalformedURLException e) { }
        }

        CSSOMReadOnlyStyleDeclaration usd;
        AbstractViewCSS uview = (AbstractViewCSS)uv;

        usd = (CSSOMReadOnlyStyleDeclaration)uview.computeStyle(use, null);
        try {
            updateURIs(usd, url);
        } catch (MalformedURLException ex) { }
        ((AbstractViewCSS)dv).setComputedStyle(def, null, usd);
        for (Node un = use.getFirstChild(), dn = def.getFirstChild();
View Full Code Here

                XLinkSupport.setXLinkHref(def, new URL(url, href).toString());
            } catch (MalformedURLException e) { }
        }

        CSSOMReadOnlyStyleDeclaration usd;
        AbstractViewCSS uview = (AbstractViewCSS)uv;

        usd = (CSSOMReadOnlyStyleDeclaration)uview.computeStyle(use, null);
        try {
            updateURIs(usd, url);
        } catch (MalformedURLException ex) { }
        ((AbstractViewCSS)dv).setComputedStyle(def, null, usd);
        for (Node un = use.getFirstChild(), dn = def.getFirstChild();
View Full Code Here

     * @exception BridgeException if an error occured while constructing
     * the GVT tree
     */
    public GraphicsNode build(BridgeContext ctx, Document document) {
        // set the media type
        AbstractViewCSS view;
        view = (AbstractViewCSS)((DocumentView)document).getDefaultView();
        view.setMedia(ctx.getUserAgent().getMedia());

        // inform the bridge context the builder to use
        ctx.setGVTBuilder(this);

        // build the GVT tree
View Full Code Here

    if (!href.equals("")) {
        XLinkSupport.setXLinkHref(def, new URL(url, href).toString());
    }

    CSSOMReadOnlyStyleDeclaration usd;
    AbstractViewCSS uview = (AbstractViewCSS)uv;

    usd = (CSSOMReadOnlyStyleDeclaration)uview.computeStyle(use, null);
    updateURIs(usd, url);
    ((AbstractViewCSS)dv).setComputedStyle(def, null, usd);

    for (Node un = use.getFirstChild(), dn = def.getFirstChild();
         un != null;
View Full Code Here

TOP

Related Classes of org.apache.batik.css.AbstractViewCSS$ComputedStyleCache$StrongReference

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.