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 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:
      handleEvent in interface org.cytoscape.session.events.SessionLoadedListener