📄 aboutdialogcommand.java
字号:
/* * File: AboutDialogCommand.java * Project: MPI Linguistic Application * Date: 02 May 2007 * * Copyright (C) 2001-2007 Max Planck Institute for Psycholinguistics * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */package mpi.eudico.client.annotator.commands;import mpi.eudico.client.annotator.ELAN;import mpi.eudico.client.annotator.ElanLocale;import mpi.eudico.server.corpora.clom.Transcription;import java.awt.Font;import javax.swing.Icon;import javax.swing.ImageIcon;import javax.swing.JLabel;import javax.swing.JOptionPane;/** * */public class AboutDialogCommand implements Command { private String commandName; private Transcription transcription; /** * Creates a new AboutDialogCommand instance * * @param name DOCUMENT ME! */ public AboutDialogCommand(String name) { commandName = name; } /** * DOCUMENT ME! * * @param receiver DOCUMENT ME! * @param arguments DOCUMENT ME! */ public void execute(Object receiver, Object[] arguments) { transcription = (Transcription) (arguments[0]); Icon icon = new ImageIcon(this.getClass().getResource("/mpi/eudico/client/annotator/resources/ELAN256.png")); StringBuffer textBuf = new StringBuffer("<html>"); textBuf.append("<b>"); textBuf.append("E L A N - ELAN Linguistic Annotator"); textBuf.append("<br>"); textBuf.append("Version: "); textBuf.append(ELAN.getVersionString()); textBuf.append("<br><br>"); textBuf.append("Copyright \u00A9 2001 - 2007"); textBuf.append("<br>"); textBuf.append("Max-Planck-Institute for Psycholinguistics"); textBuf.append("<br>"); textBuf.append("Nijmegen, The Netherlands"); textBuf.append("</b><br><br><br>"); textBuf.append(ElanLocale.getString("Menu.Help.AboutText.GPL")); textBuf.append("<br><br>"); textBuf.append(ElanLocale.getString("Player.Framework") + ":"); textBuf.append("<br>"); textBuf.append(ELANCommandFactory.getViewerManager(transcription) .getMasterMediaPlayer() .getFrameworkDescription()); textBuf.append("</html>"); JLabel label = new JLabel(textBuf.toString().replaceAll("\\u000A", "<br>")); label.setFont(label.getFont().deriveFont(Font.PLAIN)); JOptionPane.showMessageDialog(ELANCommandFactory.getRootFrame( transcription), label, ElanLocale.getString("Menu.Help.AboutDialog"), JOptionPane.PLAIN_MESSAGE, icon); } /** * DOCUMENT ME! * * @return DOCUMENT ME! */ public String getName() { return commandName; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -