Search in sources :

Example 1 with GraphLOD

use of org.cytoscape.graph.render.stateful.GraphLOD in project cytoscape-impl by cytoscape.

the class ShowGraphicsDetailsTask method run.

@Override
public void run(TaskMonitor taskMonitor) {
    if (view instanceof DGraphView) {
        final GraphLOD lod = ((DGraphView) view).getGraphLOD();
        if (lod instanceof DingGraphLODAll)
            ((DGraphView) view).setGraphLOD(dingGraphLOD);
        else
            ((DGraphView) view).setGraphLOD(dingGraphLODAll);
        view.updateView();
    }
}
Also used : GraphLOD(org.cytoscape.graph.render.stateful.GraphLOD) DingGraphLOD(org.cytoscape.ding.impl.DingGraphLOD) DingGraphLODAll(org.cytoscape.ding.impl.DingGraphLODAll) DGraphView(org.cytoscape.ding.impl.DGraphView)

Aggregations

DGraphView (org.cytoscape.ding.impl.DGraphView)1 DingGraphLOD (org.cytoscape.ding.impl.DingGraphLOD)1 DingGraphLODAll (org.cytoscape.ding.impl.DingGraphLODAll)1 GraphLOD (org.cytoscape.graph.render.stateful.GraphLOD)1