Search in sources :

Example 6 with VizMapperProxy

use of org.cytoscape.view.vizmap.gui.internal.model.VizMapperProxy in project cytoscape-impl by cytoscape.

the class RemoveVisualMappingsCommand method execute.

@Override
@SuppressWarnings("unchecked")
public void execute(final INotification notification) {
    final Set<VisualMappingFunction<?, ?>> set = (Set<VisualMappingFunction<?, ?>>) notification.getBody();
    final VizMapperProxy proxy = (VizMapperProxy) getFacade().retrieveProxy(VizMapperProxy.NAME);
    final VisualStyle style = proxy.getCurrentVisualStyle();
    final TaskIterator iterator = new TaskIterator(new RemoveVisualMappingsTask(set, style, servicesUtil));
    final DialogTaskManager taskManager = servicesUtil.get(DialogTaskManager.class);
    taskManager.execute(iterator);
}
Also used : VizMapperProxy(org.cytoscape.view.vizmap.gui.internal.model.VizMapperProxy) Set(java.util.Set) TaskIterator(org.cytoscape.work.TaskIterator) VisualMappingFunction(org.cytoscape.view.vizmap.VisualMappingFunction) VisualStyle(org.cytoscape.view.vizmap.VisualStyle) RemoveVisualMappingsTask(org.cytoscape.view.vizmap.gui.internal.task.RemoveVisualMappingsTask) DialogTaskManager(org.cytoscape.work.swing.DialogTaskManager)

Aggregations

VizMapperProxy (org.cytoscape.view.vizmap.gui.internal.model.VizMapperProxy)6 TaskIterator (org.cytoscape.work.TaskIterator)4 DialogTaskManager (org.cytoscape.work.swing.DialogTaskManager)4 HashSet (java.util.HashSet)2 CyIdentifiable (org.cytoscape.model.CyIdentifiable)2 CyNetworkView (org.cytoscape.view.model.CyNetworkView)2 View (org.cytoscape.view.model.View)2 VisualProperty (org.cytoscape.view.model.VisualProperty)2 LockedValuesVO (org.cytoscape.view.vizmap.gui.internal.model.LockedValuesVO)2 Properties (java.util.Properties)1 Set (java.util.Set)1 CyServiceRegistrar (org.cytoscape.service.util.CyServiceRegistrar)1 VisualMappingFunction (org.cytoscape.view.vizmap.VisualMappingFunction)1 VisualMappingManager (org.cytoscape.view.vizmap.VisualMappingManager)1 VisualStyle (org.cytoscape.view.vizmap.VisualStyle)1 ContinuousMappingCellRendererFactory (org.cytoscape.view.vizmap.gui.editor.ContinuousMappingCellRendererFactory)1 EditSelectedDiscreteValuesAction (org.cytoscape.view.vizmap.gui.internal.action.EditSelectedDiscreteValuesAction)1 RemoveSelectedDiscreteValuesAction (org.cytoscape.view.vizmap.gui.internal.action.RemoveSelectedDiscreteValuesAction)1 StartupCommand (org.cytoscape.view.vizmap.gui.internal.controller.StartupCommand)1 VizMapEventHandlerManagerImpl (org.cytoscape.view.vizmap.gui.internal.event.VizMapEventHandlerManagerImpl)1