當前位置: 首頁>>代碼示例>>Java>>正文


Java PvDesktop類代碼示例

本文整理匯總了Java中org.pathvisio.desktop.PvDesktop的典型用法代碼示例。如果您正苦於以下問題:Java PvDesktop類的具體用法?Java PvDesktop怎麽用?Java PvDesktop使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PvDesktop類屬於org.pathvisio.desktop包,在下文中一共展示了PvDesktop類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: init

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public void init(PvDesktop aDesktop)
{
	swingEngine = aDesktop.getSwingEngine();
	desktop = aDesktop;
	StatisticsAction statisticsAction = new StatisticsAction(swingEngine,
			desktop.getGexManager());

	Logger.log.info ("Initializing statistics plugin");
	desktop.registerMenuAction ("Data", statisticsAction);
	
	PreferencesDlg pdlg = desktop.getPreferencesDlg();
	
	pdlg.addPanel("Statistics plugin", pdlg.builder().
			booleanField(StatisticsPreference.MAPPFINDER_COMPATIBILITY, 
					"Perform statistical calculation after mapping rows to pathways (similar to MAPPFinder)")
			.build()
			);
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:19,代碼來源:StatisticsPlugin.java

示例2: initPlugins

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
/**
 * calls init method of all registered plugins
 */
private void initPlugins() {
	try {
		ServiceReference[] refs = context.getServiceReferences(Plugin.class.getName(), null);
		if(refs != null) {
			for(int i = 0; i < refs.length; i++) {
				Plugin plugin = (Plugin) context.getService(refs[i]);
				if(!runningPlugins.containsKey(refs[i].getBundle().getSymbolicName())) {
					Logger.log.info("Initialize plugin " + refs[i].getBundle().getSymbolicName());
					
					ServiceReference ref = context.getServiceReference(PvDesktop.class.getName());
					checkTmpBundles(refs[i]);
					plugin.init((PvDesktop) context.getService(ref));
					runningPlugins.put(refs[i].getBundle().getSymbolicName(), plugin);
				} else {
					Logger.log.info("Plugin " + refs[i].getBundle().getSymbolicName() + " is running.");
				}
			}
		} else {
			Logger.log.info("No plugins loaded.");
		}
	} catch (InvalidSyntaxException e) {
		JOptionPane.showMessageDialog(desktop.getFrame(), "Problem occured when starting plugins.");
		Logger.log.error("Could not initialize plugins (" + e.getMessage() + ")");
	}
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:29,代碼來源:PluginManager.java

示例3: RunLocalPluginDialog

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public RunLocalPluginDialog(PvDesktop desktop)
{
	super();
	cbs = new HashMap<File, JCheckBox>();
	files = new ArrayList<File>();
	dlg = this;
	this.desktop = desktop;
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:9,代碼來源:RunLocalPluginDialog.java

示例4: init

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public void init(PvDesktop desktop)
{
	ImportGexDataAction importAction = new ImportGexDataAction(desktop);
	SelectGexAction selectAction = new SelectGexAction(desktop);

	desktop.registerMenuAction ("Data", importAction);
	desktop.registerMenuAction ("Data", selectAction);
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:9,代碼來源:GexPlugin.java

示例5: ImportGexDataAction

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public ImportGexDataAction(PvDesktop sae)
{
	super();
	this.sae = sae;
	putValue (NAME, "Import expression data");
	putValue (SHORT_DESCRIPTION, "Import data from a tab delimited text file, for example experimental data from a high-throughput experiment");
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:8,代碼來源:GexPlugin.java

示例6: GexImportWizard

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public GexImportWizard (PvDesktop standaloneEngine)
{
	this.standaloneEngine = standaloneEngine;

	getDialog().setTitle ("Expression data import wizard");
	Wizard wiz = new Wizard();
	wiz.getDialog();
       registerWizardPanel(fpd);
       registerWizardPanel(hpd);
       registerWizardPanel(cpd);
       registerWizardPanel(ipd);

       setCurrentPanel(FilePage.IDENTIFIER);
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:15,代碼來源:GexImportWizard.java

示例7: VisualizationAction

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public VisualizationAction(PvDesktop ste)
{
	this.ste = ste;
	putValue(NAME, "Visualization options");
	this.mainPanel = ste.getSwingEngine().getApplicationPanel();
	setEnabled(ste.getGexManager().isConnected());
	ste.getGexManager().addListener(this);
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:9,代碼來源:VisualizationPlugin.java

示例8: ShowFilesDialog

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public ShowFilesDialog(PvDesktop desktop, Component listFiles) 
{
	super(desktop.getFrame(), "Install local plugins", listFiles, true, true);
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:5,代碼來源:RunLocalPluginDialog.java

示例9: StandaloneCompat

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public StandaloneCompat (PvDesktop desktop)
	{
		this.desktop = desktop;
//		desktop.getGexManager().addListener(this);
		desktop.getSwingEngine().getGdbManager().addGdbEventListener(this);
	}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:7,代碼來源:StandaloneCompat.java

示例10: SelectGexAction

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public SelectGexAction(PvDesktop _desktop) {
	desktop = _desktop;
	putValue(NAME, "Select expression dataset");
	putValue(SHORT_DESCRIPTION, "Select expression dataset");
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:6,代碼來源:GexPlugin.java

示例11: init

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public void init(PvDesktop aDesktop)
{
	desktop = aDesktop;

	//Register the visualization methods
	VisualizationMethodRegistry reg =
		aDesktop.getVisualizationManager().getVisualizationMethodRegistry();

	reg.registerMethod(
			LegendVisualization.class.toString(),
			new VisualizationMethodProvider() {
				public VisualizationMethod create() {
					return new LegendVisualization(
							desktop.getVisualizationManager().getColorSetManager(),
							desktop.getSwingEngine().getEngine());
				}
		}
	);
	reg.registerMethod(
			ColorByExpression.class.toString(),
			new VisualizationMethodProvider() {
				public VisualizationMethod create() {
					return new ColorByExpression(desktop.getGexManager(), 
							desktop.getVisualizationManager().getColorSetManager());
				}
		}
	);
	reg.registerMethod(
			TextByExpression.class.toString(),
			new VisualizationMethodProvider() {
				public VisualizationMethod create() {
					return new TextByExpression(desktop.getGexManager());
				}
		}
	);
	reg.registerMethod(
			DataNodeLabel.class.toString(),
			new VisualizationMethodProvider() {
				public VisualizationMethod create() {
					return new DataNodeLabel();
				}
		}
	);
	//Register the menu items
	desktop.registerMenuAction ("Data", new VisualizationAction(
			aDesktop)
	);

	// combo box in toolbar to select visualization
		model = new VisualizationComboModel(desktop.getVisualizationManager());
	visualizationCombo = new JComboBox(model);
	desktop.getSwingEngine().getApplicationPanel().addToToolbar(visualizationCombo);

	LegendPanel legendPane = new LegendPanel(desktop.getVisualizationManager());
	JTabbedPane tabPane = desktop.getSideBarTabbedPane();
	if(tabPane != null) {
		tabPane.addTab ("Legend", legendPane);
	}
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:60,代碼來源:VisualizationPlugin.java

示例12: getDesktop

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public PvDesktop getDesktop() {
	return desktop;
}
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:4,代碼來源:PluginManager.java

示例13: init

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
@Override
public void init(PvDesktop desktop) {
	this.desktop = desktop;
	desktop.addPathwayElementMenuHook(this);
}
 
開發者ID:PathVisio,項目名稱:org.pathvisio.typeconverter,代碼行數:6,代碼來源:TypeConverter.java

示例14: init

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
/**
 * Called on loading the plugin
 */
public void init(PvDesktop desktop);
 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:5,代碼來源:Plugin.java

示例15: init

import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public void init(PvDesktop desktop); 
開發者ID:PathVisio,項目名稱:pathvisio,代碼行數:2,代碼來源:IPluginManager.java


注:本文中的org.pathvisio.desktop.PvDesktop類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。