Package org.apache.batik.gvt

Examples of org.apache.batik.gvt.GraphicsNodeTreeIterator


    /**
     * Associate selectable elements in the current tree with
     * Selector instances.
     */
    public void initSelectors(GraphicsNode treeRoot) {
        Iterator nodeIter = new GraphicsNodeTreeIterator(treeRoot);
        if (textSelector == null) {
            textSelector =
                new ConcreteTextSelector(
                    getRendererFactory().getRenderContext());
            textSelector.addSelectionListener(this);
        }
        while (nodeIter.hasNext()) {
            GraphicsNode node = (GraphicsNode) nodeIter.next();
            if (node instanceof Selectable) {
                node.addGraphicsNodeMouseListener(
                             (GraphicsNodeMouseListener) textSelector);
                // should make sure this does not add duplicates
            }
View Full Code Here

TOP

Related Classes of org.apache.batik.gvt.GraphicsNodeTreeIterator

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.