Package org.apache.batik.bridge

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


        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

TOP

Related Classes of org.apache.batik.bridge.StyleReference

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.