⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 elancommandfactory.java

📁 编辑视频文件
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
/* * File:     ELANCommandFactory.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.ElanLayoutManager;import mpi.eudico.client.annotator.ElanLocale;import mpi.eudico.client.annotator.ViewerManager2;import mpi.eudico.client.annotator.timeseries.TSTrackManager;import mpi.eudico.client.util.TableSubHeaderObject;import mpi.eudico.server.corpora.clom.Transcription;import java.awt.Toolkit;import java.awt.event.ActionEvent;import java.awt.event.InputEvent;import java.awt.event.KeyEvent;import java.util.ArrayList;import java.util.Collection;import java.util.Hashtable;import java.util.Locale;import java.util.Vector;import javax.swing.Action;import javax.swing.JFrame;import javax.swing.KeyStroke;/** * DOCUMENT ME! * $Id: ELANCommandFactory.java,v 1.36 2007/04/16 15:40:35 hasloe Exp $ * @author $Author: hasloe $ * @version $Revision: 1.36 $ */public class ELANCommandFactory {    // all Hashtables have Transcription as their key    private static Hashtable commandActionHash = new Hashtable();    private static Hashtable undoCAHash = new Hashtable();    private static Hashtable redoCAHash = new Hashtable();    private static Hashtable commandHistoryHash = new Hashtable();    //	private UndoCA undoCA = null;    //	private RedoCA redoCA = null;    //	private CommandHistory commandHistory;    // the viewer manager for this document / frame    //	public ViewerManager2 viewerManager = null;    //	public ElanLayoutManager layoutManager = null;    private static Hashtable viewerManagerHash = new Hashtable();    private static Hashtable layoutManagerHash = new Hashtable();    private static Hashtable trackManagerHash = new Hashtable();    // root frame for dialogs    //	public JFrame frame = null;    private static Hashtable rootFrameHash = new Hashtable();    // a table for the available languages     /** Holds value of property DOCUMENT ME! */    private static final Hashtable languages = new Hashtable();    // list of commands/command actions    /** Holds value of property DOCUMENT ME! */    public static final String SET_TIER_NAME = "CommandActions.SetTierName";    /** Holds value of property DOCUMENT ME! */    public static final String CHANGE_TIER = "Menu.Tier.ChangeTier";    /** Holds value of property DOCUMENT ME! */    public static final String ADD_TIER = "Menu.Tier.AddNewTier";    /** Holds value of property DOCUMENT ME! */    public static final String DELETE_TIER = "Menu.Tier.DeleteTier";    /** Holds value of property DOCUMENT ME! */    public static final String EDIT_TIER = "CommandActions.EditTier";    /** Holds value of property DOCUMENT ME! */    public static final String IMPORT_TIERS = "Menu.Tier.ImportTiers";    /** Holds value of property DOCUMENT ME! */    public static final String EDIT_TYPE = "CommandActions.EditType";    /** Holds value of property DOCUMENT ME! */    public static final String IMPORT_TYPES = "Menu.Type.ImportTypes";    /** Holds value of property DOCUMENT ME! */    public static final String ADD_TYPE = "Menu.Type.AddNewType";    /** Holds value of property DOCUMENT ME! */    public static final String CHANGE_TYPE = "Menu.Type.ChangeType";    /** Holds value of property DOCUMENT ME! */    public static final String DELETE_TYPE = "Menu.Type.DeleteType";    /** Holds value of property DOCUMENT ME! */    public static final String ADD_CV = "CommandActions.AddCV";    /** Holds value of property DOCUMENT ME! */    public static final String CHANGE_CV = "CommandActions.ChangeCV";    /** Holds value of property DOCUMENT ME! */    public static final String DELETE_CV = "CommandActions.DeleteCV";    /** Holds value of property DOCUMENT ME! */    public static final String REPLACE_CV = "CommandActions.ReplaceCV";    /** Holds value of property DOCUMENT ME! */    public static final String MERGE_CVS = "CommandActions.MergeCV";    /** Holds value of property DOCUMENT ME! */    public static final String ADD_CV_ENTRY = "CommandActions.AddCVEntry";    /** Holds value of property DOCUMENT ME! */    public static final String CHANGE_CV_ENTRY = "CommandActions.ChangeCVEntry";    /** Holds value of property DOCUMENT ME! */    public static final String DELETE_CV_ENTRY = "CommandActions.DeleteCVEntry";    /** only for Command: String is currently not in the language files! */    public static final String MOVE_CV_ENTRIES = "MoveEntries";    /** only for Command: String is currently not in the language files! */    public static final String REPLACE_CV_ENTRIES = "ReplaceEntries";    /** Holds value of property DOCUMENT ME! */    public static final String EDIT_CV_DLG = "Menu.Edit.EditCV";    /** Holds value of property DOCUMENT ME! */    public static final String NEW_ANNOTATION = "Menu.Annotation.NewAnnotation";    /** Holds value of property DOCUMENT ME! */    public static final String NEW_ANNOTATION_ALT = "NA_Alt";    /** Holds value of property DOCUMENT ME! */    public static final String NEW_ANNOTATION_BEFORE = "Menu.Annotation.NewAnnotationBefore";    /** Holds value of property DOCUMENT ME! */    public static final String NEW_ANNOTATION_AFTER = "Menu.Annotation.NewAnnotationAfter";    /** Holds value of property DOCUMENT ME! */    public static final String MODIFY_ANNOTATION = "Menu.Annotation.ModifyAnnotation";    /** Holds value of property DOCUMENT ME! */    public static final String MODIFY_ANNOTATION_ALT = "MA_Alt";    /** Holds value of property DOCUMENT ME! */    public static final String MODIFY_ANNOTATION_DLG = "ModifyAnnotationDialog";    /** Holds value of property DOCUMENT ME! */    public static final String DELETE_ANNOTATION = "Menu.Annotation.DeleteAnnotation";    /** Holds value of property DOCUMENT ME! */    public static final String DELETE_ANNOTATION_ALT = "DA_Alt";    /** Holds value of property DOCUMENT ME! */    public static final String COPY_ANNOTATION = "Menu.Annotation.CopyAnnotation";    /** Holds value of property DOCUMENT ME! */    public static final String COPY_ANNOTATION_TREE = "Menu.Annotation.CopyAnnotationTree";    /** Holds value of property DOCUMENT ME! */    public static final String PASTE_ANNOTATION = "Menu.Annotation.PasteAnnotation";    /** Holds value of property DOCUMENT ME! */    public static final String PASTE_ANNOTATION_HERE = "Menu.Annotation.PasteAnnotationHere";    /** Holds value of property DOCUMENT ME! */    public static final String PASTE_ANNOTATION_TREE = "Menu.Annotation.PasteAnnotationTree";    /** Holds value of property DOCUMENT ME! */    public static final String PASTE_ANNOTATION_TREE_HERE = "Menu.Annotation.PasteAnnotationTreeHere";    /** Holds value of property DOCUMENT ME! */    public static final String DUPLICATE_ANNOTATION = "Menu.Annotation.DuplicateAnnotation";    /** Holds value of property DOCUMENT ME! */    public static final String MODIFY_ANNOTATION_TIME = "CommandActions.ModifyAnnotationTime";    /** Holds value of property DOCUMENT ME! */    public static final String MODIFY_GRAPHIC_ANNOTATION = "Menu.Annotation.ModifyGraphicAnnotation";    /** Holds value of property DOCUMENT ME! */    public static final String MODIFY_GRAPHIC_ANNOTATION_DLG = "ModifyGraphicAnnotationDialog";    /** Holds value of property DOCUMENT ME! */    public static final String SHIFT_ALL_DLG = "ShiftAllAnn";    /** Holds value of property DOCUMENT ME! */    public static final String SHIFT_ALL_ANNOTATIONS = "Menu.Annotation.ShiftAll";    /** Holds value of property DOCUMENT ME! */    public static final String TOKENIZE_DLG = "Menu.Tier.Tokenize";    /** Holds value of property DOCUMENT ME! */    public static final String ANN_FROM_OVERLAP = "Menu.Tier.AnnotationsFromOverlaps";    /** only used as internal identifier for a command! */    public static final String ANN_FROM_OVERLAP_COM = "AnnsFromOverlaps";    /** Holds value of property DOCUMENT ME! */    public static final String TOKENIZE_TIER = "CommandActions.Tokenize";    /** Holds value of property DOCUMENT ME! */    public static final String SHOW_TIMELINE = "Menu.View.ShowTimeline";    /** Holds value of property DOCUMENT ME! */    public static final String SHOW_INTERLINEAR = "Menu.View.ShowInterlinear";    /** Holds value of property DOCUMENT ME! */    public static final String SHOW_MULTITIER_VIEWER = "Commands.ShowMultitierViewer";    /** Holds value of property DOCUMENT ME! */    public static final String GOTO_DLG = "Menu.Search.GoTo";    /** Holds value of property DOCUMENT ME! */    public static final String SEARCH_DLG = "Menu.Search.Find";    /** Holds string for search in multiple files */    public static final String SEARCH_MULTIPLE_DLG = "Menu.Search.Multiple";    /** Holds string for structured search in multiple files */    public static final String STRUCTURED_SEARCH_MULTIPLE_DLG = "Menu.Search.StructuredMultiple";    /** Command action name of replacing matches with string */    public static final String REPLACE = "CommandActions.Replace";    /** Holds value of property DOCUMENT ME! */    public static final String TIER_DEPENDENCIES = "Menu.View.Dependencies";    /** Holds value of property DOCUMENT ME! */    public static final String SHORTCUTS = "Menu.View.Shortcuts";    /** Holds value of property DOCUMENT ME! */    public static final String ABOUT_DLG = "Menu.Help.About";    /** Holds value of property DOCUMENT ME! */    public static final String SYNC_MODE = "Menu.Options.SyncMode";    /** Holds value of property DOCUMENT ME! */    public static final String ANNOTATION_MODE = "Menu.Options.AnnotationMode";    /** Holds value of property DOCUMENT ME! */    public static final String BULLDOZER_MODE = "Menu.Options.BulldozerMode";    /** Holds value of property DOCUMENT ME! */    public static final String TIMEPROP_NORMAL = "Menu.Options.NormalPropagationMode";    /** Holds value of property DOCUMENT ME! */    public static final String SHIFT_MODE = "Menu.Options.ShiftMode";    /** Holds value of property DOCUMENT ME! */    public static final String SELECTION_MODE = "CommandActions.SelectionMode";    /** Holds value of property DOCUMENT ME! */    public static final String LOOP_MODE = "CommandActions.LoopMode";    /** Holds value of property DOCUMENT ME! */    public static final String CLEAR_SELECTION = "Menu.Play.ClearSelection";    /** Holds value of property DOCUMENT ME! */    public static final String PLAY_SELECTION = "Menu.Play.PlaySelection";    /** Holds value of property DOCUMENT ME! */    public static final String PLAY_AROUND_SELECTION = "CommandActions.PlayAroundSelection";    /** Holds value of property DOCUMENT ME! */    public static final String PLAY_AROUND_SELECTION_DLG = "Menu.Options.PlayAroundSelectionDialog";    /** Holds value of property DOCUMENT ME! */    public static final String PLAYBACK_TOGGLE_DLG = "Menu.Options.PlaybackToggleDialog";    /** Holds value of property DOCUMENT ME! */    public static final String PLAYBACK_TOGGLE = "PLAYBACK_TOGGLE";    /** Holds value of property DOCUMENT ME! */    public static final String PLAYBACK_RATE_TOGGLE = "CommandActions.PlaybackRateToggle";    /** Holds value of property DOCUMENT ME! */    public static final String PLAYBACK_VOLUME_TOGGLE = "CommandActions.PlaybackVolumeToggle";    /** Holds value of property DOCUMENT ME! */    public static final String SET_PAL = "Menu.Options.FrameLength.PAL";    /** Holds value of property DOCUMENT ME! */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -