Package org.gephi.graph.api

Examples of org.gephi.graph.api.GraphController


    /** Creates new form ConnectedComponentPanel */
    public ConnectedComponentPanel() {
        initComponents();
       
        //Disable directed if the graph is undirecteds
        GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
        if(graphController.getGraphModel().isUndirected()){
            directedRadioButton.setEnabled(false);
        }
    }
View Full Code Here


    private void fetchTable(Ranking ranking, Transformer transformer) {
        final List<RankCell> cells = new ArrayList<RankCell>();

        if (ranking.getElementType().equals(Ranking.NODE_ELEMENT)) {
            GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
            Graph graph = graphController.getGraphModel().getGraphVisible();
            for (Node n : graph.getNodes()) {
                Number rank = ranking.getValue(n);
                if (transformer instanceof AbstractColorTransformer) {
                    Color c = n.getColor();
                    RankCellColor rankCellColor = new RankCellColor(c, rank, n.getLabel());
                    cells.add(rankCellColor);
                } else if (transformer instanceof AbstractSizeTransformer) {
                    float size = n.size();
                    RankCellSize rankCellSize = new RankCellSize(size, rank, n.getLabel());
                    cells.add(rankCellSize);
                }
            }

        } else if (ranking.getElementType().equals(Ranking.EDGE_ELEMENT)) {
            GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
            Graph graph = graphController.getGraphModel().getGraphVisible();
            for (Edge e : graph.getEdges()) {
                Number rank = ranking.getValue(e);
                if (transformer instanceof AbstractColorTransformer) {
                    Color c = e.getColor();
                    RankCellColor rankCellColor = new RankCellColor(c, rank, e.getLabel());
View Full Code Here

     *
     */
    private boolean isDirected;

    public PageRank() {
        GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
        if (graphController != null && graphController.getGraphModel() != null) {
            isDirected = graphController.getGraphModel().isDirected();
        }
    }
View Full Code Here

     */
    private boolean isCanceled;
    private boolean isDirected;

    public EigenvectorCentrality() {
        GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
        if (graphController != null && graphController.getGraphModel() != null) {
            isDirected = graphController.getGraphModel().isDirected();
        }
    }
View Full Code Here

    //Average
    private Column dynamicAverageCoefficientColumn;
    private Map<Double, Double> averages;

    public DynamicClusteringCoefficient() {
        GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
        if (graphController != null && graphController.getGraphModel()!= null) {
            isDirected = graphController.getGraphModel().isDirected();
        }
    }
View Full Code Here

    public HitsPanel() {
        initComponents();
       
        //Disable directed if the graph is undirecteds
        GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
        if(graphController.getGraphModel().isUndirected()){
            directedRadioButton.setEnabled(false);
        }
    }
View Full Code Here

    public GraphDensityPanel() {
        initComponents();
       
        //Disable directed if the graph is undirecteds
        GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
        if(graphController.getGraphModel().isUndirected()){
            directedRadioButton.setEnabled(false);
        }
    }
View Full Code Here

    /** Creates new form EigenvectorCentralityPanel */
    public EigenvectorCentralityPanel() {
        initComponents();
       
        //Disable directed if the graph is undirecteds
        GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
        if(graphController.getGraphModel().isUndirected()){
            directedRadioButton.setEnabled(false);
        }
    }
View Full Code Here

    public DegreeDistributionPanel() {
        initComponents();
       
        //Disable directed if the graph is undirecteds
        GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
        if(graphController.getGraphModel().isUndirected()){
            directedRadioButton.setEnabled(false);
        }
    }
View Full Code Here

    public GraphDistancePanel() {
        initComponents();
       
        //Disable directed if the graph is undirecteds
        GraphController graphController = Lookup.getDefault().lookup(GraphController.class);
        if(graphController.getGraphModel().isUndirected()){
            directedRadioButton.setEnabled(false);
        }
    }
View Full Code Here

TOP

Related Classes of org.gephi.graph.api.GraphController

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.