Examples of StyleReference


Examples of org.apache.batik.bridge.StyleReference

            // A mutation on a style element (for example a Gradient)
           
            List references = context.getStyleReferenceList(element);
            if (!references.isEmpty()) {

                StyleReference reference;
                BridgeMutationEvent elevt;
                mevent = new BridgeMutationEvent(element,
                                                 context,
                                                 BridgeMutationEvent.PROPERTY_MUTATION_TYPE);
               
                mevent.setAttrName(event.getAttrName());
                mevent.setAttrNewValue(event.getNewValue());
               
               
                for (Iterator it = references.iterator(); it.hasNext();) {
                    reference = (StyleReference)it.next();
                    elevt = new  BridgeMutationEvent(context.getElement(reference.getGraphicsNode()),
                                                     context,
                                                     BridgeMutationEvent.STYLE_MUTATION_TYPE);
                    elevt.setGraphicsNode(reference.getGraphicsNode());
                    elevt.setAttrName(reference.getStyleAttribute());
                    elevt.setStyleMutationEvent(mevent);
                    context.getBridgeUpdateManager().addDirtyNode(gn, elevt);
                }
            }
        }
View Full Code Here

Examples of org.apache.batik.bridge.StyleReference

        if (elementStyleAttMap == null) return;
        LinkedList list = (LinkedList)elementStyleAttMap.get(style);
        List removed = null;
        if (list == null) return;
        for (Iterator it = list.iterator(); it.hasNext();){
            StyleReference styleRef = (StyleReference)it.next();
            if (styleRef.getGraphicsNode()==node) {
                if (removed == null)
                    removed = new LinkedList();
                removed.add(styleRef);
            }
        }
View Full Code Here

Examples of org.pentaho.reporting.libraries.css.dom.StyleReference

    }

    final StyleReference[] refs = dc.getStyleReferences();
    for (int i = 0; i < refs.length; i++)
    {
      final StyleReference ref = refs[i];
      if (ref.getType() == StyleReference.LINK)
      {
        handleLinkNode(dc, ref, styleRules, pageRules, counterRules);
      }
      else
      {
View Full Code Here

Examples of org.xhtmlrenderer.context.StyleReference

    public SharedContext(UserAgentCallback uac) {
        font_resolver = new AWTFontResolver();
        _replacedElementFactory = new SwingReplacedElementFactory();
        setMedia("screen");
        this.uac = uac;
        setCss(new StyleReference(uac));
        XRLog.render("Using CSS implementation from: " + getCss().getClass().getName());
        setTextRenderer(new Java2DTextRenderer());
        try {
            setDPI(Toolkit.getDefaultToolkit().getScreenResolution());
        } catch (HeadlessException e) {
View Full Code Here

Examples of org.xhtmlrenderer.context.StyleReference

    public UserAgentCallback getUserAgentCallback() {
        return uac;
    }
   
    public void setUserAgentCallback(UserAgentCallback userAgentCallback) {
        StyleReference styleReference = getCss();
        if (styleReference != null) {
            styleReference.setUserAgentCallback(userAgentCallback);
        }
        uac = userAgentCallback;
    }
View Full Code Here

Examples of org.xhtmlrenderer.context.StyleReference

    public SharedContext(UserAgentCallback uac) {
        font_resolver = new AWTFontResolver();
        replacedElementFactory = new SwingReplacedElementFactory();
        setMedia("screen");
        this.uac = uac;
        setCss(new StyleReference(uac));
        XRLog.render("Using CSS implementation from: " + getCss().getClass().getName());
        setTextRenderer(new Java2DTextRenderer());
        try {
            setDPI(Toolkit.getDefaultToolkit().getScreenResolution());
        } catch (HeadlessException e) {
View Full Code Here

Examples of org.xhtmlrenderer.context.StyleReference

    public UserAgentCallback getUserAgentCallback() {
        return uac;
    }
   
    public void setUserAgentCallback(UserAgentCallback userAgentCallback) {
        StyleReference styleReference = getCss();
        if (styleReference != null) {
            styleReference.setUserAgentCallback(userAgentCallback);
        }
        uac = userAgentCallback;
    }
View Full Code Here

Examples of org.xhtmlrenderer.context.StyleReference

    public SharedContext(UserAgentCallback uac) {
        font_resolver = new AWTFontResolver();
        replacedElementFactory = new SwingReplacedElementFactory();
        setMedia("screen");
        this.uac = uac;
        setCss(new StyleReference(uac));
        XRLog.render("Using CSS implementation from: " + getCss().getClass().getName());
        setTextRenderer(new Java2DTextRenderer());
        try {
            setDPI(Toolkit.getDefaultToolkit().getScreenResolution());
        } catch (HeadlessException e) {
View Full Code Here

Examples of org.xhtmlrenderer.context.StyleReference

    public SharedContext(UserAgentCallback uac, FontResolver fr, ReplacedElementFactory ref, TextRenderer tr, float dpi) {
        font_resolver = fr;
        replacedElementFactory = ref;
        setMedia("screen");
        this.uac = uac;
        setCss(new StyleReference(uac));
        XRLog.render("Using CSS implementation from: " + getCss().getClass().getName());
        setTextRenderer(tr);
        setDPI(dpi);
    }
View Full Code Here

Examples of org.xhtmlrenderer.context.StyleReference

    public UserAgentCallback getUserAgentCallback() {
        return uac;
    }

    public void setUserAgentCallback(UserAgentCallback userAgentCallback) {
        StyleReference styleReference = getCss();
        if (styleReference != null) {
            styleReference.setUserAgentCallback(userAgentCallback);
        }
        uac = userAgentCallback;
    }
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.