public class IDAREImageNodeApp extends Object implements org.cytoscape.session.events.SessionAboutToBeSavedListener
| Constructor and Description | 
|---|
IDAREImageNodeApp(org.cytoscape.service.util.CyServiceRegistrar reg,
                 IDARESettingsManager ism)
Basic constructor that gets the IDareSettingsManager along with a CyServiceRegistrar to obtain all necessary services. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
deRegisterDataSetProperties(Class<? extends DataSet> dataSetClass,
                           DataSetLayoutProperties props)
Deregister DataSetProperties from a DataSet of the given Type. 
 | 
void | 
deRegisterDataSetReader(IDAREDatasetReader reader)
Deregister an  
IDAREDatasetReader from being available in the app. | 
void | 
deregisterDataSetType(DataSet ds)
Deregister a the an available  
DataSet class based on an instance of the class. | 
void | 
deRegisterPlugin(IDAREPlugin plugin)
UnRegister a plugin. 
 | 
Vector<org.cytoscape.application.swing.AbstractCyAction> | 
getActions()
Get the actions used in this app 
 | 
ActiveNodeManager | 
getActiveNodeManager()
Get the  
ActiveNodeManager created by this App | 
DataSetManager | 
getDatasetManager()
Get the  
DataSetManager created by this App | 
DataSetControlPanel | 
getDataSetPanel()
Obtain the  
DataSetControlPanel generated by this instance of IDARE. | 
HashMap<org.cytoscape.work.AbstractTaskFactory,Vector<Properties>> | 
getFactories()
Get the Task Factories used in the App. 
 | 
ImageStorage | 
getImageStorage()
Get the  
ImageStorage created by this App | 
LayoutIOManager | 
getLayoutIOManager()
Get The LayoutIOManager 
 | 
IDARELegend | 
getLegend()
Get the  
IDARELegend generated by this instance of IDARE. | 
NodeManager | 
getNodeManager()
Get the  
NodeManager created by this App | 
IDARESettingsManager | 
getSettingsManager()
Get the  
IDARESettingsManager created by this App | 
StyleManager | 
getStyleManager()
Obtain the  
StyleManager generated by this instance of IDARE. | 
IDAREVisualStyle | 
getVisualStyle()
Get the  
IDAREVisualStyle created by this App | 
void | 
handleEvent(org.cytoscape.session.events.SessionAboutToBeSavedEvent arg0)  | 
void | 
handleSessionLoadedEvent(org.cytoscape.session.events.SessionLoadedEvent arg0)
Handle a session load event. 
 | 
Collection<DataSetLayoutProperties> | 
registerDataSetProperties(Class<? extends DataSet> dataSetClass,
                         Collection<DataSetLayoutProperties> props)
Register DataSetProperties for a DataSet of the given Type. 
 | 
boolean | 
registerDataSetProperties(Class<? extends DataSet> dataSetClass,
                         DataSetLayoutProperties props)
Register DataSetProperties for a DataSet of the given Type. 
 | 
void | 
registerDataSetReader(IDAREDatasetReader reader)
Register an  
IDAREDatasetReader to be available in the app. | 
void | 
registerDataSetType(DataSet ds)
Register a the type of a dataset provided to the set of avilable  
DataSet classes | 
void | 
registerPlugin(IDAREPlugin plugin)
Register a plugin. 
 | 
void | 
unregisterAll()
Unregister all Types of  
DataSet, that were before registered. | 
protected void | 
updateServices(IDAREPlugin plugin,
              Vector<IDAREService> services,
              boolean registered,
              org.cytoscape.work.TaskMonitor monitor)  | 
public IDAREImageNodeApp(org.cytoscape.service.util.CyServiceRegistrar reg,
                         IDARESettingsManager ism)
reg - The CyServiceRegistrar for the current bundleism - The IDARESettingsManager used in this apppublic StyleManager getStyleManager()
StyleManager generated by this instance of IDARE.StyleManager used by this instancepublic DataSetControlPanel getDataSetPanel()
DataSetControlPanel generated by this instance of IDARE.DataSetControlPanel used by this instancepublic IDARELegend getLegend()
IDARELegend generated by this instance of IDARE.IDARELegend used by this instancepublic IDAREVisualStyle getVisualStyle()
IDAREVisualStyle created by this AppIDAREVisualStyle used by this instancepublic ImageStorage getImageStorage()
ImageStorage created by this AppImageStorage used by this instancepublic NodeManager getNodeManager()
NodeManager created by this AppNodeManager used by this instancepublic DataSetManager getDatasetManager()
DataSetManager created by this AppDataSetManager used by this instancepublic ActiveNodeManager getActiveNodeManager()
ActiveNodeManager created by this AppActiveNodeManager used by this instancepublic void registerDataSetType(DataSet ds) throws DuplicateIDException
DataSet classesds - An instance of a DataSet which is of the class to register.DuplicateIDException - if there are two datasets with the same type namepublic void deregisterDataSetType(DataSet ds)
DataSet class based on an instance of the class.ds - An instance of a DataSet object that belongs t the class that is supposed to be registeredpublic boolean registerDataSetProperties(Class<? extends DataSet> dataSetClass, DataSetLayoutProperties props)
dataSetClass - the classname of the DataSet, for which to add the propertiesprops - The DataSetproperties to make available.public Collection<DataSetLayoutProperties> registerDataSetProperties(Class<? extends DataSet> dataSetClass, Collection<DataSetLayoutProperties> props)
dataSetClass - the classname of the DataSet, for which to add the propertiesprops - The collection of DataSetproperties to make available to this type of dataset.public void deRegisterDataSetProperties(Class<? extends DataSet> dataSetClass, DataSetLayoutProperties props)
dataSetClass - the classname of the DataSet to deregister the properties fromprops - The properties to deregister.public void deRegisterDataSetReader(IDAREDatasetReader reader)
IDAREDatasetReader from being available in the app.reader - the IDAREDatasetReader to deregister.public void registerDataSetReader(IDAREDatasetReader reader)
IDAREDatasetReader to be available in the app.reader - the IDAREDatasetReader to register.public void unregisterAll()
DataSet, that were before registered. 
 This will reset the NodeManager, as all Sets have been disabled and will also reset the ImageStorage.public IDARESettingsManager getSettingsManager()
IDARESettingsManager created by this AppIDARESettingsManager used by this instancepublic void handleSessionLoadedEvent(org.cytoscape.session.events.SessionLoadedEvent arg0)
SessionLoadedListener itself, as the order of loading is relevant.arg0 - The SessionLoadedEvent that provides information on the state of the app in the loaded session.public void handleEvent(org.cytoscape.session.events.SessionAboutToBeSavedEvent arg0)
handleEvent in interface org.cytoscape.session.events.SessionAboutToBeSavedListenerpublic HashMap<org.cytoscape.work.AbstractTaskFactory,Vector<Properties>> getFactories()
public LayoutIOManager getLayoutIOManager()
public Vector<org.cytoscape.application.swing.AbstractCyAction> getActions()
public void registerPlugin(IDAREPlugin plugin)
plugin - the plugin to registerpublic void deRegisterPlugin(IDAREPlugin plugin)
plugin - the plugin to unregister.protected void updateServices(IDAREPlugin plugin, Vector<IDAREService> services, boolean registered, org.cytoscape.work.TaskMonitor monitor) throws IllegalAccessException, InstantiationException
Copyright © 2018. All rights reserved.