Search in sources :

Example 1 with EditorValueRangeTracer

use of org.cytoscape.view.vizmap.gui.internal.view.editor.mappingeditor.EditorValueRangeTracer in project cytoscape-impl by cytoscape.

the class VizMapperMediator method selectCurrentVisualStyle.

private void selectCurrentVisualStyle(final VisualStyle vs) {
    invokeOnEDT(() -> {
        final VisualStyle selectedVs = vizMapperMainPanel.getSelectedVisualStyle();
        // Switching styles.  Need to reset the range tracer
        ContinuousMappingEditorPanel.setTracer(new EditorValueRangeTracer(servicesUtil));
        if (vs != null && !vs.equals(selectedVs))
            vizMapperMainPanel.setSelectedVisualStyle(vs);
    });
}
Also used : VisualStyle(org.cytoscape.view.vizmap.VisualStyle) EditorValueRangeTracer(org.cytoscape.view.vizmap.gui.internal.view.editor.mappingeditor.EditorValueRangeTracer)

Aggregations

VisualStyle (org.cytoscape.view.vizmap.VisualStyle)1 EditorValueRangeTracer (org.cytoscape.view.vizmap.gui.internal.view.editor.mappingeditor.EditorValueRangeTracer)1