Package rcm.awt

Examples of rcm.awt.ClosableFrame


    /**
     * Create a new Frame containing a Statistics panel connected to a crawler.
     */
    public static Frame monitor (Crawler crawler) {
        Frame win = new ClosableFrame ("Statistics: " + crawler.getName ());

        Statistics stats = new Statistics ();
        crawler.addCrawlListener (stats);

        win.add ("Center", BorderPanel.wrap (stats, 5, 5, 5, 5));
        win.pack ();
        win.show ();

        return win;
    }
View Full Code Here


   
    /**
     * Create a new Frame containing a WebGraph connected to a crawler.
     */
    public static Frame monitor (Crawler crawler) {
        Frame win = new ClosableFrame ("Graph: " + crawler.getName ());

        WebGraph g = new WebGraph ();
        crawler.addCrawlListener (g);
        crawler.addLinkListener (g);
        g.setNodeCharge (1000);
        g.setRestLength (50);

        win.add ("Center", g);
        win.pack ();
        win.show ();

        return win;
    }
View Full Code Here

    /**
     * Create a new Frame containing a WebOutline connected to a crawler.
     */
    public static Frame monitor (Crawler crawler) {
        Frame win = new ClosableFrame ("Outline: " + crawler.getName ());

        WebOutline g = new WebOutline ();
        crawler.addCrawlListener (g);
        crawler.addLinkListener (g);

        win.add ("Center", g);
        win.pack ();
        win.show ();

        return win;
    }
View Full Code Here

TOP

Related Classes of rcm.awt.ClosableFrame

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.