Package org.gephi.clustering.spi

Examples of org.gephi.clustering.spi.Clusterer


                    if (model.getSelectedClusterer() != null) {
                        model.setSelectedClusterer(null);
                    }
                } else {
                    ClustererBuilder selectedBuilder = (ClustererBuilder) algorithmComboBox.getSelectedItem();
                    Clusterer savedData = getSavedClusterer(selectedBuilder);
                    if (savedData != null) {
                        model.setSelectedClusterer(savedData);
                    } else {
                        Clusterer newClusterer = selectedBuilder.getClusterer();
                        model.addClusterer(newClusterer);
                        model.setSelectedClusterer(newClusterer);
                    }
                }
            }
View Full Code Here


        }
    }

    private void run() {
        if (!model.isRunning()) {
            Clusterer clusterer = model.getSelectedClusterer();
            ClusteringController controller = Lookup.getDefault().lookup(ClusteringController.class);
            controller.clusterize(clusterer);
        } else {
            //stop
            Clusterer clusterer = model.getSelectedClusterer();
            ClusteringController controller = Lookup.getDefault().lookup(ClusteringController.class);
            controller.cancelClusterize(clusterer);
        }

    }
View Full Code Here

    }

    private void reset() {
        model.removeClusterer(model.getSelectedClusterer());
        ClustererBuilder selectedBuilder = (ClustererBuilder) algorithmComboBox.getSelectedItem();
        Clusterer newClusterer = selectedBuilder.getClusterer();
        model.addClusterer(newClusterer);
        model.setSelectedClusterer(newClusterer);
    }
View Full Code Here

        ClusterExplorer clusterExplorer = (ClusterExplorer) resultPanel;
        if (model == null || model.getSelectedClusterer() == null) {
            clusterExplorer.resetExplorer();
            return;
        }
        Clusterer clusterer = model.getSelectedClusterer();
        Cluster[] clusters = clusterer.getClusters();
        clusterExplorer.initExplorer(clusters);
    }
View Full Code Here

                    if (model.getSelectedClusterer() != null) {
                        model.setSelectedClusterer(null);
                    }
                } else {
                    ClustererBuilder selectedBuilder = (ClustererBuilder) algorithmComboBox.getSelectedItem();
                    Clusterer savedData = getSavedClusterer(selectedBuilder);
                    if (savedData != null) {
                        model.setSelectedClusterer(savedData);
                    } else {
                        Clusterer newClusterer = selectedBuilder.getClusterer();
                        model.addClusterer(newClusterer);
                        model.setSelectedClusterer(newClusterer);
                    }
                }
            }
View Full Code Here

        }
    }

    private void run() {
        if (!model.isRunning()) {
            Clusterer clusterer = model.getSelectedClusterer();
            ClusteringController controller = Lookup.getDefault().lookup(ClusteringController.class);
            controller.clusterize(clusterer);
        } else {
            //stop
            Clusterer clusterer = model.getSelectedClusterer();
            ClusteringController controller = Lookup.getDefault().lookup(ClusteringController.class);
            controller.cancelClusterize(clusterer);
        }

    }
View Full Code Here

    }

    private void reset() {
        model.removeClusterer(model.getSelectedClusterer());
        ClustererBuilder selectedBuilder = (ClustererBuilder) algorithmComboBox.getSelectedItem();
        Clusterer newClusterer = selectedBuilder.getClusterer();
        model.addClusterer(newClusterer);
        model.setSelectedClusterer(newClusterer);
    }
View Full Code Here

        ClusterExplorer clusterExplorer = (ClusterExplorer) resultPanel;
        if (model == null || model.getSelectedClusterer() == null) {
            clusterExplorer.resetExplorer();
            return;
        }
        Clusterer clusterer = model.getSelectedClusterer();
        Cluster[] clusters = clusterer.getClusters();
        clusterExplorer.initExplorer(clusters);
    }
View Full Code Here

TOP

Related Classes of org.gephi.clustering.spi.Clusterer

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.