本文整理匯總了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()
);
}
示例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() + ")");
}
}
示例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;
}
示例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);
}
示例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");
}
示例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);
}
示例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);
}
示例8: ShowFilesDialog
import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public ShowFilesDialog(PvDesktop desktop, Component listFiles)
{
super(desktop.getFrame(), "Install local plugins", listFiles, true, true);
}
示例9: StandaloneCompat
import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public StandaloneCompat (PvDesktop desktop)
{
this.desktop = desktop;
// desktop.getGexManager().addListener(this);
desktop.getSwingEngine().getGdbManager().addGdbEventListener(this);
}
示例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");
}
示例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);
}
}
示例12: getDesktop
import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public PvDesktop getDesktop() {
return desktop;
}
示例13: init
import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
@Override
public void init(PvDesktop desktop) {
this.desktop = desktop;
desktop.addPathwayElementMenuHook(this);
}
示例14: init
import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
/**
* Called on loading the plugin
*/
public void init(PvDesktop desktop);
示例15: init
import org.pathvisio.desktop.PvDesktop; //導入依賴的package包/類
public void init(PvDesktop desktop);