Package org.gephi.utils.longtask.api

Examples of org.gephi.utils.longtask.api.LongTaskListener


        //Create Statistics
        StatisticsController controller = Lookup.getDefault().lookup(StatisticsController.class);
        StatisticsBuilder builder = controller.getBuilder(statisticsUI.getStatisticsClass());
        currentStatistics = builder.getStatistics();
        if (currentStatistics != null) {
            LongTaskListener listener = new LongTaskListener() {

                public void taskFinished(LongTask task) {
                    showReport();
                }
            };
View Full Code Here


    public LayoutModelImpl() {
        listeners = new ArrayList<PropertyChangeListener>();
        savedProperties = new HashMap<LayoutPropertyKey, Object>();

        executor = new LongTaskExecutor(true, "layout", 5);
        executor.setLongTaskListener(new LongTaskListener() {

            public void taskFinished(LongTask task) {
                setRunning(false);
            }
        });
View Full Code Here

    }

    @Test
    public void testExecutor() {
        final LongTaskExecutor longTaskExecutor = new LongTaskExecutor(true);
        LongTaskListener longTaskListener = new LongTaskListener() {

            final int limit = 100;
            int count;

            public void taskFinished(LongTask task) {
View Full Code Here

                }
                NotifyDescriptor.Message msg = new NotifyDescriptor.Message(message, NotifyDescriptor.WARNING_MESSAGE);
                DialogDisplayer.getDefault().notify(msg);
            }
        });
        longTaskExecutor.setLongTaskListener(new LongTaskListener() {

            public void taskFinished(LongTask task) {
                unlockProjectActions();
            }
        });
View Full Code Here

    public LayoutModelImpl() {
        listeners = new ArrayList<PropertyChangeListener>();
        savedProperties = new HashMap<LayoutPropertyKey, Object>();

        executor = new LongTaskExecutor(true, "layout", 5);
        executor.setLongTaskListener(new LongTaskListener() {
            @Override
            public void taskFinished(LongTask task) {
                setRunning(false);
            }
        });
View Full Code Here

        StatisticsController controller = Lookup.getDefault().lookup(StatisticsController.class);
        StatisticsControllerUI controllerUI = Lookup.getDefault().lookup(StatisticsControllerUI.class);
        StatisticsBuilder builder = controller.getBuilder(statisticsUI.getStatisticsClass());
        currentStatistics = builder.getStatistics();
        if (currentStatistics != null) {
            LongTaskListener listener = new LongTaskListener() {

                public void taskFinished(LongTask task) {
                    showReport();
                }
            };
View Full Code Here

        for (StatisticsUI s : uis) {
            s.setup(statistics);
        }
        model.setRunning(statistics, true);

        controller.execute(statistics, new LongTaskListener() {

            public void taskFinished(LongTask task) {
                model.setRunning(statistics, false);
                for (StatisticsUI s : uis) {
                    model.addResult(s);
View Full Code Here

        for (StatisticsUI s : uis) {
            s.setup(statistics);
        }
        model.setRunning(statistics, true);

        controller.execute(statistics, new LongTaskListener() {

            public void taskFinished(LongTask task) {
                model.setRunning(statistics, false);
                for (StatisticsUI s : uis) {
                    model.addResult(s);
View Full Code Here

//                DialogDisplayer.getDefault().notify(msg);

                Logger.getLogger("").log(Level.SEVERE, "", t.getCause());
            }
        });
        longTaskExecutor.setLongTaskListener(new LongTaskListener() {
            public void taskFinished(LongTask task) {
                unlockProjectActions();
            }
        });
    }
View Full Code Here

TOP

Related Classes of org.gephi.utils.longtask.api.LongTaskListener

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.