Package org.xhtmlrenderer.swing

Examples of org.xhtmlrenderer.swing.ImageResourceLoader



    manager = new PanelManager();
        view = new ScalableXHTMLPanel(manager);
        manager.setRepaintListener(view);
        ImageResourceLoader irl = new ImageResourceLoader();
        irl.setRepaintListener(view);
        manager.setImageResourceLoader(irl);
        view.getSharedContext().setReplacedElementFactory(new SwingReplacedElementFactory(view, irl));
        view.addDocumentListener(manager);
        view.setCenteredPagedView(true);
        view.setBackground(Color.LIGHT_GRAY);
View Full Code Here


    }

    private void setupUserAgentCallback(XHTMLPanel panel) {
        uac = new DelegatingUserAgent();

        ImageResourceLoader irl = new ImageResourceLoader();
        irl.setRepaintListener(panel);
        ((DelegatingUserAgent) uac).setImageResourceLoader(irl);
       
        panel.getSharedContext().setUserAgentCallback(uac);
        panel.getSharedContext().setReplacedElementFactory(new SwingReplacedElementFactory(panel, irl));
    }
View Full Code Here

TOP

Related Classes of org.xhtmlrenderer.swing.ImageResourceLoader

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.