本文整理汇总了Java中org.cytoscape.view.vizmap.VisualMappingManager类的典型用法代码示例。如果您正苦于以下问题:Java VisualMappingManager类的具体用法?Java VisualMappingManager怎么用?Java VisualMappingManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
VisualMappingManager类属于org.cytoscape.view.vizmap包,在下文中一共展示了VisualMappingManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AttributeBrowserController
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
public AttributeBrowserController(VisualMappingManager visualMappingManager,
StyleFactory styleFactory,
EventService eventService,
DialogTaskManager taskManager) {
this.visualMappingManager = visualMappingManager;
this.styleFactory = styleFactory;
this.eventService = eventService;
this.taskManager = taskManager;
eventService.addNodeSelectionChangedListener(nodeSuids -> {
lastNodeSuids = nodeSuids;
applyRowVisibility();
});
eventService.addPresentationStateChangedListener(isClean -> {
if (!isClean || statusLabel == null) {
return;
}
statusLabel.setVisible(false);
panel.setOpaque(false);
});
}
示例2: DomainBrowserController
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
public DomainBrowserController(VisualMappingManager visualMappingManager,
StyleFactory styleFactory,
DialogTaskManager taskManager,
EventService eventService) {
this.visualMappingManager = visualMappingManager;
this.styleFactory = styleFactory;
this.taskManager = taskManager;
this.eventService = eventService;
eventService.addNodeSelectionChangedListener(nodeSuids -> {
lastNodeSuids = nodeSuids;
applyRowVisibility();
});
eventService.addPresentationStateChangedListener(isClean -> {
if (!isClean || statusLabel == null) {
return;
}
statusLabel.setVisible(false);
panel.setOpaque(false);
});
}
示例3: AdjNetworkReaderFactory
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
public AdjNetworkReaderFactory(final CyFileFilter adjFileFilter, final CyApplicationManager appMgr,
final CyNetworkViewFactory cyNetworkViewFactory, final CyNetworkFactory cyNetworkFactory,
final CyNetworkManager cyNetworkManager, final CyNetworkViewManager cyNetworkViewManager,
final CyRootNetworkManager cyRootNetworkManager, final CyTableFactory cyTableFactory,
final CyTableManager cyTableManager, final VisualMappingManager visMgr,
final CyEventHelper eventHelper) {
this.adjFileFilter = adjFileFilter;
this.appMgr = appMgr;
this.cyNetworkFactory = cyNetworkFactory;
this.cyNetworkViewFactory = cyNetworkViewFactory;
this.cyNetworkManager = cyNetworkManager;
this.cyNetworkViewManager = cyNetworkViewManager;
this.cyRootNetworkManager = cyRootNetworkManager;
this.cyTableFactory = cyTableFactory;
this.cyTableManager = cyTableManager;
this.visMgr = visMgr;
this.eventHelper = eventHelper;
}
示例4: AdjNetworkReader
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
public AdjNetworkReader(InputStream inputStream, String inputName,
CyApplicationManager appMgr, CyNetworkViewFactory networkViewFactory,
CyNetworkFactory networkFactory, CyNetworkManager networkMgr,
CyNetworkViewManager networkViewMgr, CyRootNetworkManager rootNetworkMgr,
CyTableFactory tableFactory, CyTableManager tableMgr,
VisualMappingManager visMgr, CyEventHelper eventHelper) {
super(inputStream, networkViewFactory, networkFactory, networkMgr, rootNetworkMgr);
this.inputStream = inputStream;
this.inputName = inputName;
this.appMgr = appMgr;
this.networkMgr = networkMgr;
this.networkViewMgr = networkViewMgr;
this.tableFactory = tableFactory;
this.tableMgr = tableMgr;
this.visMgr = visMgr;
this.eventHelper = eventHelper;
this.networkFactory = networkFactory;
this.networkViewFactory = networkViewFactory;
}
示例5: start
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {
CyApplicationManager manager = getService(context, CyApplicationManager.class);
CySwingAppAdapter adapter = getService(context, CySwingAppAdapter.class);
CySwingApplication desktopApp = adapter.getCySwingApplication();
OpenBrowser openBrowser = getService(context,OpenBrowser.class);
CyEventHelper eventHelper = getService(context, CyEventHelper.class);
CyNetworkFactory networkFactory = getService(context, CyNetworkFactory.class);
CyNetworkManager networkManager = getService(context, CyNetworkManager.class);
CyNetworkViewFactory networkViewFactory = getService(context, CyNetworkViewFactory.class);
CyNetworkViewManager networkViewManager = getService(context, CyNetworkViewManager.class);
VisualMappingManager visualMappingManager = getService(context,VisualMappingManager.class);
Properties properties = new Properties();
SlimPanel slimPanel = new SlimPanel(manager, adapter, openBrowser, eventHelper, networkFactory, networkManager,
networkViewFactory, networkViewManager, visualMappingManager);
registerService(context, slimPanel, CytoPanelComponent.class, properties);
SlimscapePluginAction slimscapePluginAction = new SlimscapePluginAction(manager, adapter, desktopApp, slimPanel);
registerService(context, slimscapePluginAction, CyAction.class, properties);
}
示例6: start
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {
CyApplicationManager applicationManager = getService(context, CyApplicationManager.class);
CySwingApplication swingApplication = getService(context, CySwingApplication.class);
CyServiceRegistrar serviceRegistrar = getService(context, CyServiceRegistrar.class);
VisualMappingManager visualMappingManager = getService(context, VisualMappingManager.class);
VizmapReaderManager vizmapReaderManager = getService(context, VizmapReaderManager.class);
TaskManager taskManager = getService(context, TaskManager.class);
CySwing.init(swingApplication, serviceRegistrar);
NetworkController.init(applicationManager, visualMappingManager);
// UI controls
MenuAction menuAction = new MenuAction(taskManager);
registerService(context, menuAction, CyAction.class, new Properties());
taskManager.execute(new TaskIterator(new ImportGFDNetVisualStylesTask(visualMappingManager, vizmapReaderManager)));
serviceRegistrar.registerService(new ClickOnViewListener(), RowsSetListener.class, new Properties());
serviceRegistrar.registerService(new NetworkClosedListener(), NetworkAboutToBeDestroyedListener.class, new Properties());
}
示例7: JGFNetworkReaderFactory
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
public JGFNetworkReaderFactory(final CyFileFilter cyFileFilter, final CyApplicationManager appMgr,
final CyNetworkViewFactory cyNetworkViewFactory, final CyNetworkFactory cyNetworkFactory,
final CyNetworkManager cyNetworkManager, final CyNetworkViewManager cyNetworkViewManager,
final CyRootNetworkManager cyRootNetworkManager, final CyTableFactory cyTableFactory,
final CyTableManager cyTableManager, final VisualMappingManager visMgr,
final CyEventHelper eventHelper, final GraphReader graphReader,
final GraphConverter belGraphConverter, final BELEvidenceMapper belEvidenceMapper) {
this.cyFileFilter = cyFileFilter;
this.appMgr = appMgr;
this.cyNetworkFactory = cyNetworkFactory;
this.cyNetworkViewFactory = cyNetworkViewFactory;
this.cyNetworkManager = cyNetworkManager;
this.cyNetworkViewManager = cyNetworkViewManager;
this.cyRootNetworkManager = cyRootNetworkManager;
this.cyTableFactory = cyTableFactory;
this.cyTableManager = cyTableManager;
this.visMgr = visMgr;
this.eventHelper = eventHelper;
this.graphReader = graphReader;
this.belGraphConverter = belGraphConverter;
this.belEvidenceMapper = belEvidenceMapper;
}
示例8: JGFNetworkReader
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
public JGFNetworkReader(InputStream inputStream, String inputName,
GraphReader graphReader, GraphConverter belGraphConverter,
BELEvidenceMapper belEvidenceMapper, CyApplicationManager appMgr,
CyNetworkViewFactory networkViewFactory, CyNetworkFactory networkFactory,
CyNetworkManager networkMgr, CyNetworkViewManager networkViewMgr,
CyRootNetworkManager rootNetworkMgr, CyTableFactory tableFactory,
CyTableManager tableMgr, VisualMappingManager visMgr, CyEventHelper eventHelper) {
super(inputStream, networkViewFactory, networkFactory, networkMgr, rootNetworkMgr);
if (inputStream == null) throw new NullPointerException("inputStream cannot be null");
if (inputName == null) throw new NullPointerException("inputName cannot be null");
if (appMgr == null) throw new NullPointerException("appMgr cannot be null");
if (networkMgr == null) throw new NullPointerException("networkMgr cannot be null");
this.inputStream = inputStream;
this.inputName = inputName;
this.graphReader = graphReader;
this.belGraphConverter = belGraphConverter;
this.belEvidenceMapper = belEvidenceMapper;
this.appMgr = appMgr;
this.networkMgr = networkMgr;
this.networkViewMgr = networkViewMgr;
this.tableFactory = tableFactory;
this.tableMgr = tableMgr;
this.visMgr = visMgr;
this.eventHelper = eventHelper;
}
示例9: VariationAction
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
/**
* Create a new variation action.
*
* @param applicationManager application manager, must not be null
* @param dialogTaskManager dialog task manager, must not be null
* @param visualMappingManager visual mapping manager, must not be null
* @param continuousMappingFactory continuous mapping factory, must not be null
* @param discreteMappingFactory discrete mapping factory, must not be null
* @param passthroughMappingFactory passthrough mapping factory, must not be null
*/
VariationAction(final CyApplicationManager applicationManager,
final DialogTaskManager dialogTaskManager,
final VisualMappingManager visualMappingManager,
final VisualMappingFunctionFactory continuousMappingFactory,
final VisualMappingFunctionFactory discreteMappingFactory,
final VisualMappingFunctionFactory passthroughMappingFactory)
{
super("Variation");
setPreferredMenu("Apps");
checkNotNull(applicationManager);
checkNotNull(dialogTaskManager);
checkNotNull(visualMappingManager);
checkNotNull(continuousMappingFactory);
checkNotNull(discreteMappingFactory);
checkNotNull(passthroughMappingFactory);
this.applicationManager = applicationManager;
this.dialogTaskManager = dialogTaskManager;
this.visualMappingManager = visualMappingManager;
this.continuousMappingFactory = continuousMappingFactory;
this.discreteMappingFactory = discreteMappingFactory;
this.passthroughMappingFactory = passthroughMappingFactory;
}
示例10: start
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
@Override
public void start(final BundleContext bundleContext)
{
if (bundleContext == null)
{
throw new NullPointerException("bundleContext must not be null");
}
CyApplicationManager applicationManager = getService(bundleContext, CyApplicationManager.class);
DialogTaskManager dialogTaskManager = getService(bundleContext, DialogTaskManager.class);
VisualMappingManager visualMappingManager = getService(bundleContext, VisualMappingManager.class);
VisualMappingFunctionFactory continuousMappingFactory = getService(bundleContext, VisualMappingFunctionFactory.class, "(mapping.type=continuous)");
VisualMappingFunctionFactory discreteMappingFactory = getService(bundleContext, VisualMappingFunctionFactory.class, "(mapping.type=discrete)");
VisualMappingFunctionFactory passthroughMappingFactory = getService(bundleContext, VisualMappingFunctionFactory.class, "(mapping.type=passthrough)");
VariationAction variationAction = new VariationAction(applicationManager,
dialogTaskManager,
visualMappingManager,
continuousMappingFactory,
discreteMappingFactory,
passthroughMappingFactory);
Properties properties = new Properties();
registerService(bundleContext, variationAction, CyAction.class, properties);
}
示例11: start
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {
CyApplicationManager cyApplicationManager = getService(context, CyApplicationManager.class);
CySwingApplication cySwingApplication = getService(context, CySwingApplication.class);
CyNetworkFactory cyNetworkFactory = getService(context, CyNetworkFactory.class);
CyNetworkManager cyNetMgr = getService(context,CyNetworkManager.class);
CyTableFactory tableFactory = getService(context, CyTableFactory.class);
CyNetworkViewManager cyNetViewMgr = getService(context, CyNetworkViewManager.class);
DialogTaskManager diagTaskManager = getService(context, DialogTaskManager.class);
CyNetworkViewFactory cyNetworkViewFactory = getService(context, CyNetworkViewFactory.class);
CyLayoutAlgorithmManager cyLayoutAlgorithmMgr = getService(context,CyLayoutAlgorithmManager.class);
VisualMappingManager visualMappingMgr = getService(context,VisualMappingManager.class);
plugin = new Plugin(cyApplicationManager,cySwingApplication,cyNetworkFactory,tableFactory,cyNetMgr,cyNetViewMgr,diagTaskManager,cyNetworkViewFactory,cyLayoutAlgorithmMgr,visualMappingMgr);
ConnectInstanceMenuAction connectAction = new ConnectInstanceMenuAction(cyApplicationManager,plugin);
SyncUpMenuAction syncUpAction = new SyncUpMenuAction(cyApplicationManager, plugin);
SyncDownMenuAction syncDownAction = new SyncDownMenuAction(cyApplicationManager, plugin);
registerAllServices(context, connectAction, new Properties());
registerAllServices(context, syncUpAction, new Properties());
registerAllServices(context, syncDownAction, new Properties());
}
示例12: SyncDownTaskFactory
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
public SyncDownTaskFactory(CyNetworkManager cyNetworkMgr,
boolean mergeInCurrent, CyNetworkFactory cyNetworkFactory,
String instanceLocation, String cypherURL,
String auth,
CyNetworkViewManager cyNetworkViewMgr,
CyNetworkViewFactory cyNetworkViewFactory,
CyLayoutAlgorithmManager cyLayoutAlgorithmMgr,
VisualMappingManager visualMappingMgr) {
super();
this.cyNetworkMgr = cyNetworkMgr;
this.mergeInCurrent = mergeInCurrent;
this.cyNetworkFactory = cyNetworkFactory;
this.instanceLocation = instanceLocation;
this.cypherURL = cypherURL;
this.auth = auth;
this.cyNetworkViewMgr = cyNetworkViewMgr;
this.cyNetworkViewFactory = cyNetworkViewFactory;
this.cyLayoutAlgorithmMgr = cyLayoutAlgorithmMgr;
this.visualMappingMgr = visualMappingMgr;
}
示例13: SyncDownTask
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
public SyncDownTask(boolean mergeInCurrent, String cypherURL,
String instanceLocation,
String auth,
CyNetworkFactory cyNetworkFactory,
CyNetworkManager cyNetworkMgr,
CyNetworkViewManager cyNetworkViewMgr,
CyNetworkViewFactory cyNetworkViewFactory,
CyLayoutAlgorithmManager cyLayoutAlgorithmMgr,
VisualMappingManager visualMappingMgr) {
super();
this.mergeInCurrent = mergeInCurrent;
this.cypherURL = cypherURL;
this.instanceLocation = instanceLocation;
this.auth = auth;
this.cyNetworkFactory = cyNetworkFactory;
this.cyNetworkMgr = cyNetworkMgr;
this.cyNetworkViewMgr = cyNetworkViewMgr;
this.cyNetworkViewFactory = cyNetworkViewFactory;
this.cyLayoutAlgorithmMgr = cyLayoutAlgorithmMgr;
this.visualMappingMgr = visualMappingMgr;
}
示例14: configure
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
@Override
protected void configure() {
// Bind cytoscape OSGi services
bindService(CyServiceRegistrar.class);
bindService(CyApplicationManager.class);
bindService(CySwingApplication.class);
bindService(CyNetworkManager.class);
bindService(CyNetworkViewFactory.class);
bindService(CyNetworkViewManager.class);
bindService(CyNetworkFactory.class);
bindService(IconManager.class);
bindService(CyLayoutAlgorithmManager.class);
bindService(CyGroupManager.class);
bindService(CyGroupFactory.class);
bindService(CyGroupAggregationManager.class);
bindService(CyGroupSettingsManager.class);
bindService(AvailableCommands.class);
bindService(CommandExecutorTaskFactory.class);
bindService(CySessionManager.class);
bindService(CyEventHelper.class);
bindService(OpenBrowser.class);
bindService(VisualMappingManager.class);
bindService(CyNetworkTableManager.class);
bindService(CyTableManager.class);
bindService(CyTableFactory.class);
bindService(FileUtil.class);
bindService(CyRootNetworkManager.class);
bindService(DialogTaskManager.class);
TypeLiteral<SynchronousTaskManager<?>> synchronousManager = new TypeLiteral<SynchronousTaskManager<?>>(){};
bind(synchronousManager).toProvider(service(synchronousManager).single());
bindService(AnnotationManager.class);
TypeLiteral<AnnotationFactory<ShapeAnnotation>> shapeFactory = new TypeLiteral<AnnotationFactory<ShapeAnnotation>>(){};
bind(shapeFactory).toProvider(service(shapeFactory).filter(ldap("(type=ShapeAnnotation.class)")).single());
TypeLiteral<AnnotationFactory<TextAnnotation>> textFactory = new TypeLiteral<AnnotationFactory<TextAnnotation>>(){};
bind(textFactory).toProvider(service(textFactory).filter(ldap("(type=TextAnnotation.class)")).single());
}
示例15: CyServices
import org.cytoscape.view.vizmap.VisualMappingManager; //导入依赖的package包/类
public CyServices(CySwingApplication cySwingApplication,
TaskManager taskManager, OpenBrowser openBrowser,
CyNetworkManager networkManager,
CyApplicationManager applicationManager,
CyNetworkViewManager networkViewManager,
CyNetworkReaderManager networkViewReaderManager,
CyNetworkNaming naming, CyNetworkFactory networkFactory,
CyLayoutAlgorithmManager layoutManager, UndoSupport undoSupport,
VisualMappingManager mappingManager,
CyProperty<Properties> cyProperty,
CyNetworkViewFactory networkViewFactory,
CyRootNetworkManager rootNetworkManager )
{
this.cySwingApplication = cySwingApplication;
this.taskManager = taskManager;
this.openBrowser = openBrowser;
this.networkManager = networkManager;
this.applicationManager = applicationManager;
this.networkViewManager = networkViewManager;
this.networkViewReaderManager = networkViewReaderManager;
this.naming = naming;
this.networkFactory = networkFactory;
this.layoutManager = layoutManager;
this.undoSupport = undoSupport;
this.mappingManager = mappingManager;
this.cyProperty = cyProperty;
this.networkViewFactory = networkViewFactory;
this.rootNetworkManager = rootNetworkManager;
}