当前位置: 首页>>代码示例>>Java>>正文


Java OperatorMenu类代码示例

本文整理汇总了Java中org.esa.snap.core.gpf.ui.OperatorMenu的典型用法代码示例。如果您正苦于以下问题:Java OperatorMenu类的具体用法?Java OperatorMenu怎么用?Java OperatorMenu使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


OperatorMenu类属于org.esa.snap.core.gpf.ui包,在下文中一共展示了OperatorMenu类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SimpleExampleDialog

import org.esa.snap.core.gpf.ui.OperatorMenu; //导入依赖的package包/类
public SimpleExampleDialog(String alias, AppContext appContext, String title, String helpId) {
    super(appContext, title, helpId);

    this.alias = alias;
    final OperatorSpi operatorSpi = GPF.getDefaultInstance().getOperatorSpiRegistry().getOperatorSpi(alias);

    parameterSupport = new OperatorParameterSupport(operatorSpi.getOperatorDescriptor());
    form = new SimpleForm(appContext, operatorSpi, parameterSupport.getPropertySet(),
                          getTargetProductSelector());
    OperatorMenu operatorMenu = new OperatorMenu(this.getJDialog(),
                                                 operatorSpi.getOperatorDescriptor(),
                                                 parameterSupport,
                                                 appContext,
                                                 helpId);
    getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
}
 
开发者ID:senbox-org,项目名称:snap-examples,代码行数:17,代码来源:SimpleExampleDialog.java

示例2: S2tbxMosaicDialog

import org.esa.snap.core.gpf.ui.OperatorMenu; //导入依赖的package包/类
S2tbxMosaicDialog(final String title, final String helpID, AppContext appContext) {
    super(appContext, title, ID_APPLY_CLOSE, helpID);
    final TargetProductSelector selector = getTargetProductSelector();
    selector.getModel().setSaveToFileSelected(false);
    selector.getModel().setProductName("Multi-size Mosaic");
    selector.getSaveToFileCheckBox().setEnabled(true);
    form = new S2tbxMosaicForm(selector, appContext);

    final OperatorSpi operatorSpi = GPF.getDefaultInstance().getOperatorSpiRegistry().getOperatorSpi("Multi-size Mosaic");

    S2tbxMosaicFormModel formModel = form.getFormModel();
    OperatorParameterSupport parameterSupport = new OperatorParameterSupport(operatorSpi.getOperatorDescriptor(),
            formModel.getPropertySet(),
            formModel.getParameterMap(),
            null);
    OperatorMenu operatorMenu = new OperatorMenu(this.getJDialog(),
            operatorSpi.getOperatorDescriptor(),
            parameterSupport,
            appContext,
            helpID);
    getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
}
 
开发者ID:senbox-org,项目名称:s2tbx,代码行数:23,代码来源:S2tbxMosaicDialog.java

示例3: BinningDialog

import org.esa.snap.core.gpf.ui.OperatorMenu; //导入依赖的package包/类
protected BinningDialog(AppContext appContext, String title, String helpID) {
    super(appContext, title, ID_APPLY_CLOSE_HELP, helpID, new TargetProductSelectorModel(), true);

    formModel = new BinningFormModel();
    form = new BinningForm(appContext, formModel, getTargetProductSelector());

    OperatorSpi operatorSpi = GPF.getDefaultInstance().getOperatorSpiRegistry().getOperatorSpi(OPERATOR_NAME);

    ParameterUpdater parameterUpdater = new BinningParameterUpdater();
    OperatorParameterSupport parameterSupport = new OperatorParameterSupport(operatorSpi.getOperatorDescriptor(),
            formModel.getPropertySet(),
            formModel.getParameterMap(),
            parameterUpdater);
    OperatorMenu operatorMenu = new OperatorMenu(this.getJDialog(),
            operatorSpi.getOperatorDescriptor(),
            parameterSupport,
            appContext,
            helpID);
    getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:21,代码来源:BinningDialog.java

示例4: ReprojectionDialog

import org.esa.snap.core.gpf.ui.OperatorMenu; //导入依赖的package包/类
ReprojectionDialog(boolean orthorectify, final String title, final String helpID, AppContext appContext) {
    super(appContext, title, ID_APPLY_CLOSE, helpID);
    form = new ReprojectionForm(getTargetProductSelector(), orthorectify, appContext);

    final OperatorSpi operatorSpi = GPF.getDefaultInstance().getOperatorSpiRegistry().getOperatorSpi(OPERATOR_NAME);

    ParameterUpdater parameterUpdater = new ReprojectionParameterUpdater();

    OperatorParameterSupport parameterSupport = new OperatorParameterSupport(operatorSpi.getOperatorDescriptor(),
                                                                             null,
                                                                             null,
                                                                             parameterUpdater);
    OperatorMenu operatorMenu = new OperatorMenu(this.getJDialog(),
                                                 operatorSpi.getOperatorDescriptor(),
                                                 parameterSupport,
                                                 appContext,
                                                 helpID);

    getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:21,代码来源:ReprojectionDialog.java

示例5: MosaicDialog

import org.esa.snap.core.gpf.ui.OperatorMenu; //导入依赖的package包/类
MosaicDialog(final String title, final String helpID, AppContext appContext) {
    super(appContext, title, ID_APPLY_CLOSE, helpID);
    final TargetProductSelector selector = getTargetProductSelector();
    selector.getModel().setSaveToFileSelected(true);
    selector.getModel().setProductName("mosaic");
    selector.getSaveToFileCheckBox().setEnabled(false);
    form = new MosaicForm(selector, appContext);

    final OperatorSpi operatorSpi = GPF.getDefaultInstance().getOperatorSpiRegistry().getOperatorSpi("Mosaic");

    MosaicFormModel formModel = form.getFormModel();
    OperatorParameterSupport parameterSupport = new OperatorParameterSupport(operatorSpi.getOperatorDescriptor(),
                                                                             formModel.getPropertySet(),
                                                                             formModel.getParameterMap(),
                                                                             null);
    OperatorMenu operatorMenu = new OperatorMenu(this.getJDialog(),
                                                 operatorSpi.getOperatorDescriptor(),
                                                 parameterSupport,
                                                 appContext,
                                                 helpID);
    getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:23,代码来源:MosaicDialog.java

示例6: CollocationDialog

import org.esa.snap.core.gpf.ui.OperatorMenu; //导入依赖的package包/类
public CollocationDialog(AppContext appContext) {
    super(appContext, "Collocation", ID_APPLY_CLOSE, HELP_ID);
    final OperatorSpi operatorSpi = GPF.getDefaultInstance().getOperatorSpiRegistry().getOperatorSpi(CollocateOp.Spi.class.getName());

    parameterSupport = new OperatorParameterSupport(operatorSpi.getOperatorDescriptor());
    OperatorMenu operatorMenu = new OperatorMenu(this.getJDialog(),
                                                 operatorSpi.getOperatorDescriptor(),
                                                 parameterSupport,
                                                 appContext,
                                                 HELP_ID);

    getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());

    form = new CollocationForm(parameterSupport.getPropertySet(), getTargetProductSelector(), appContext);

}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:17,代码来源:CollocationDialog.java

示例7: show

import org.esa.snap.core.gpf.ui.OperatorMenu; //导入依赖的package包/类
@Override
public int show() {
    ioParametersPanel.initSourceProductSelectors();
    if (form == null) {
        initForm();
        if (getJDialog().getJMenuBar() == null) {
            final OperatorMenu operatorMenu = createDefaultMenuBar();
            getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
        }
    }
    setContent(form);
    return super.show();
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:14,代码来源:SingleOperatorDialog.java

示例8: createDefaultMenuBar

import org.esa.snap.core.gpf.ui.OperatorMenu; //导入依赖的package包/类
private OperatorMenu createDefaultMenuBar() {
    return new OperatorMenu(getJDialog(),
            operatorDescriptor,
            parameterSupport,
            getAppContext(),
            getHelpID());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:8,代码来源:SingleOperatorDialog.java

示例9: show

import org.esa.snap.core.gpf.ui.OperatorMenu; //导入依赖的package包/类
@Override
public int show() {
    if (form == null) {
        initForm();
        if (getJDialog().getJMenuBar() == null) {
            final OperatorMenu operatorMenu = createDefaultMenuBar();
            getJDialog().setJMenuBar(operatorMenu.createDefaultMenu());
        }
    }
    ioParametersPanel.initSourceProductSelectors();
    setContent(form);
    return super.show();
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:14,代码来源:ResamplingDialog.java

示例10: createDefaultMenuBar

import org.esa.snap.core.gpf.ui.OperatorMenu; //导入依赖的package包/类
private OperatorMenu createDefaultMenuBar() {
    return new OperatorMenu(getJDialog(),
                            operatorDescriptor,
                            parameterSupport,
                            getAppContext(),
                            getHelpID());
}
 
开发者ID:senbox-org,项目名称:snap-desktop,代码行数:8,代码来源:ResamplingDialog.java


注:本文中的org.esa.snap.core.gpf.ui.OperatorMenu类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。