Examples of ViewCSS


Examples of org.w3c.dom.css.ViewCSS

    public static void computeStyleAndURIs(Element refElement,
                                           Element localRefElement) {

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

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

        URL url = refDocument.getURLObject();

        computeStyleAndURIs(refElement,
                            refView,
View Full Code Here

Examples of org.w3c.dom.css.ViewCSS

        // attach the referenced element to the current document
        ((HiddenChildElement)g).setParentElement(e);
        // compute the style of the <g> as it may have local
        // references we have to update
        ViewCSS viewCSS = (ViewCSS)document.getDefaultView();
        CSSOMReadOnlyStyleDeclaration decl =
            (CSSOMReadOnlyStyleDeclaration)(viewCSS).getComputedStyle(g, null);
        try {
            CSSUtilities.updateURIs(decl, refDocument.getURLObject());
        } catch (MalformedURLException ex) {
View Full Code Here

Examples of org.w3c.dom.css.ViewCSS

    public static void computeStyleAndURIs(Element refElement,
                                           Element localRefElement) {

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

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

        URL url = refDocument.getURLObject();

        computeStyleAndURIs(refElement,
                            refView,
View Full Code Here

Examples of org.w3c.dom.css.ViewCSS

    /**
     * Returns the font-size value.
     */
    public CSSPrimitiveValue getFontSize(SVGElement e) {
        ViewCSS v = (ViewCSS)e.getOwnerSVGElement();
        return UnitProcessor.getFontSize(e, v.getComputedStyle(e, null));
    }
View Full Code Here

Examples of org.w3c.dom.css.ViewCSS

                                new Object[] {clipPathElement.getLocalName()}));
             }
             ClipBridge clipBridge = (ClipBridge)bridge;
             SVGOMDocument doc =
                 (SVGOMDocument)clipPathElement.getOwnerDocument();
             ViewCSS v = ctx.getViewCSS();
             ctx.setViewCSS((ViewCSS)doc.getDefaultView());
             Clip clip = clipBridge.createClip(ctx,
                                               gn,
                                               clipPathElement,
                                               clipedElement);
View Full Code Here

Examples of org.w3c.dom.css.ViewCSS

                     Messages.formatMessage("mask.reference.illegal",
                                    new Object[] {maskElement.getLocalName()}));
             }
             MaskBridge maskBridge = (MaskBridge)bridge;
             SVGOMDocument doc = (SVGOMDocument)maskElement.getOwnerDocument();
             ViewCSS v = ctx.getViewCSS();
             ctx.setViewCSS((ViewCSS)doc.getDefaultView());
             Mask mask =  maskBridge.createMask(gn,
                                                ctx,
                                                maskElement,
                                                maskedElement);
View Full Code Here

Examples of org.w3c.dom.css.ViewCSS

                                   new Object[] {paintElement.getLocalName()}));

        }
        PaintBridge paintBridge = (PaintBridge)bridge;
        SVGOMDocument doc = (SVGOMDocument)paintElement.getOwnerDocument();
        ViewCSS v = ctx.getViewCSS();
        ctx.setViewCSS((ViewCSS)doc.getDefaultView());
        Paint paint = paintBridge.createStrokePaint(ctx,
                                                    node,
                                                    svgElement,
                                                    paintElement);
View Full Code Here

Examples of org.w3c.dom.css.ViewCSS

                     Messages.formatMessage("filter.reference.illegal",
                                  new Object[] {filterElement.getLocalName()}));
            }
            FilterBridge filterBridge = (FilterBridge)bridge;
            SVGOMDocument doc = (SVGOMDocument)filterElement.getOwnerDocument();
            ViewCSS v = ctx.getViewCSS();
            ctx.setViewCSS((ViewCSS)doc.getDefaultView());
            Filter filter = filterBridge.create(node,
                                                ctx,
                                                filterElement,
                                                element,
View Full Code Here

Examples of org.w3c.dom.css.ViewCSS

    protected GraphicsNode createSVGImageNode(BridgeContext ctx,
                                              SVGElement element,
                                              SVGDocument imgDocument) {

        Viewport oldViewport = ctx.getCurrentViewport();
        ViewCSS oldViewCSS = ctx.getViewCSS();

        ctx.setCurrentViewport(null);
        ctx.setViewCSS((ViewCSS)((SVGOMDocument)imgDocument).getDefaultView());
        SVGSVGElement svgElement = imgDocument.getRootElement();
View Full Code Here

Examples of org.w3c.dom.css.ViewCSS

    }

    public void buildGraphicsNode(GraphicsNode gn, BridgeContext ctx,
                                  Element element) {
        Document document = element.getOwnerDocument();
        ViewCSS viewCSS = (ViewCSS) ((DocumentView) document).getDefaultView();
        CSSStyleDeclaration decl = viewCSS.getComputedStyle(element, null);
        CSSPrimitiveValue val =
            (CSSPrimitiveValue)decl.getPropertyCSSValue(ATTR_OPACITY);
        Composite composite = CSSUtilities.convertOpacityToComposite(val);
        gn.setComposite(composite);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.