作者:风之伤ASH | 来源:互联网 | 2023-09-08 14:22
本文整理了Java中org.esa.snap.core.gpf.ui.OperatorMenu.getOperatorName()
方法的一些代码示例,展示了OperatorMenu.getOperatorName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OperatorMenu.getOperatorName()
方法的具体详情如下:
包路径:org.esa.snap.core.gpf.ui.OperatorMenu
类名称:OperatorMenu
方法名:getOperatorName
暂无
代码示例
代码示例来源:origin: senbox-org/snap-desktop
@Override
public void actionPerformed(ActionEvent event) {
showInformationDialog("About " + getOperatorName(), new JLabel(getOperatorAboutText()));
}
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public void actionPerformed(ActionEvent event) {
String parameterXml;
try {
DomElement domElement = parameterSupport.toDomElement();
parameterXml = domElement.toXml();
} catch (Exception e) {
Debug.trace(e);
Dialogs.showError(TITLE, "Failed to convert parameters to XML." + e.getMessage());
return;
}
JTextArea textArea = new JTextArea(parameterXml);
textArea.setEditable(false);
JScrollPane textAreaScrollPane = new JScrollPane(textArea);
textAreaScrollPane.setPreferredSize(new Dimension(360, 360));
showInformationDialog(getOperatorName() + " Parameters", textAreaScrollPane);
}
代码示例来源:origin: senbox-org/snap-desktop
String getOperatorAboutText() {
return makeHtmlConform(String.format("" +
"" +
"%s Operator
" +
"" +
"Name: | %s |
" +
"Version: | %s |
" +
"Full name: | %s |
" +
"Description: | %s |
" +
"Authors: | %s |
" +
"Copyright: | %s |
",
getOperatorName(),
getOperatorName(),
opDescriptor.getVersion(),
opDescriptor.getName(),
opDescriptor.getDescription(),
opDescriptor.getAuthors(),
opDescriptor.getCopyright()
));
}
代码示例来源:origin: senbox-org/snap-desktop
@Test
public void testOperatorAboutText() throws Exception {
DefaultAppContext appCOntext= new DefaultAppContext("test");
final OperatorMenu support = new OperatorMenu(null, testOpSpi.getOperatorDescriptor(), null, appContext, "");
assertEquals("Tester", support.getOperatorName());
String operatorDescription = support.getOperatorAboutText();
assertTrue(operatorDescription.length() > 80);
}