Package es.imim.DISGENET.styles
Class DisGenetStyleManager
java.lang.Object
es.imim.DISGENET.styles.DisGenetStyleManager
- All Implemented Interfaces:
org.cytoscape.event.CyListener,org.cytoscape.session.events.SessionLoadedListener
public class DisGenetStyleManager
extends Object
implements org.cytoscape.session.events.SessionLoadedListener
Class that loads the DISGENET style if the current session of the user doesn't contains it.
- Author:
- jsauch
-
Method Summary
Modifier and TypeMethodDescriptionstatic DisGenetStyleManagergetInstance(org.cytoscape.task.read.LoadVizmapFileTaskFactory loadVizmapFileTaskFactory, org.cytoscape.view.vizmap.VisualMappingManager vmm, org.cytoscape.view.vizmap.VisualStyleFactory vsf) static org.cytoscape.view.vizmap.VisualStylegetVisualStyleByName(org.cytoscape.view.vizmap.VisualMappingManager vmm, String styleName) Get the visual style by name.voidhandleEvent(org.cytoscape.session.events.SessionLoadedEvent e) voidLoad the visual styles of the app.
-
Method Details
-
getInstance
public static DisGenetStyleManager getInstance(org.cytoscape.task.read.LoadVizmapFileTaskFactory loadVizmapFileTaskFactory, org.cytoscape.view.vizmap.VisualMappingManager vmm, org.cytoscape.view.vizmap.VisualStyleFactory vsf) -
loadStyles
public void loadStyles()Load the visual styles of the app. -
getVisualStyleByName
public static org.cytoscape.view.vizmap.VisualStyle getVisualStyleByName(org.cytoscape.view.vizmap.VisualMappingManager vmm, String styleName) Get the visual style by name.- Parameters:
vmm- the visualmappingmanager of the Cytoscape session.styleName- the name of the style to load.- Returns:
- the visual style with the given name or the default style if the given style is not found.
-
handleEvent
public void handleEvent(org.cytoscape.session.events.SessionLoadedEvent e) - Specified by:
handleEventin interfaceorg.cytoscape.session.events.SessionLoadedListener
-