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

📄 elanframe2.java

📁 编辑视频文件
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
        //		menuExport.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(        //				 transcriptionForThisFrame, ELANCommandFactory.EXPORT_TEX)));        // maybe test here if available and only show menu item if available:        //        //ExportMediaCA ca = (ExportMediaCA) ELANCommandFactory.getCommandAction(transcriptionForThisFrame, ELANCommandFactory.EXPORT_MEDIA);        //if (ca.isAvailable()) {        menuExport.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.EXPORT_MEDIA)));        //}        menuExport.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.EXPORT_IMAGE_FROM_WINDOW)));        menuImport.addSeparator();        menuImport.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.IMPORT_PRAAT_GRID)));        // enable menu's        menuEdit.setVisible(true);        // menu items with command actions        CommandAction undoCA = ELANCommandFactory.getUndoCA(transcriptionForThisFrame);        ElanMenuItem undoItem = new ElanMenuItem(undoCA);        menuEdit.add(undoItem);        CommandAction redoCA = ELANCommandFactory.getRedoCA(transcriptionForThisFrame);        ElanMenuItem redoItem = new ElanMenuItem(redoCA);        menuEdit.add(redoItem);        menuEdit.addSeparator();        menuEdit.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.EDIT_CV_DLG)));        menuEdit.addSeparator();        menuEdit.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.LINKED_FILES_DLG)));        menuAnnotation.setVisible(true);        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.NEW_ANNOTATION)));        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.NEW_ANNOTATION_BEFORE)));        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.NEW_ANNOTATION_AFTER)));        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.MODIFY_ANNOTATION)));        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.DELETE_ANNOTATION)));        if (SVGPrefs.getUseSVG() ||                (((TranscriptionImpl) transcriptionForThisFrame).getSVGFile() != null)) {            menuAnnotation.add(new ElanMenuItem(                    ELANCommandFactory.getCommandAction(                        transcriptionForThisFrame,                        ELANCommandFactory.MODIFY_GRAPHIC_ANNOTATION)));        }        menuAnnotation.addSeparator();        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.COPY_ANNOTATION)));        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.COPY_ANNOTATION_TREE)));        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.DUPLICATE_ANNOTATION)));        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.PASTE_ANNOTATION)));        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.PASTE_ANNOTATION_TREE)));        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.PASTE_ANNOTATION_HERE)));        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.PASTE_ANNOTATION_TREE_HERE)));        menuAnnotation.addSeparator();        menuAnnotation.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.SHIFT_ALL_ANNOTATIONS)));        menuTier.setVisible(true);        menuTier.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.ADD_TIER)));        menuTier.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.CHANGE_TIER)));        menuTier.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.REPARENT_TIER)));        menuTier.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.DELETE_TIER)));        menuTier.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.IMPORT_TIERS)));        menuTier.addSeparator();        menuTier.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.TOKENIZE_DLG)));        menuTier.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.FILTER_TIER_DLG)));        menuTier.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.COPY_TIER_DLG)));        menuTier.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.ANN_FROM_OVERLAP)));        menuTier.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.SEGMENTATION_DLG)));        //menuTier.addSeparator();        menuType.setVisible(true);        menuType.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.ADD_TYPE)));        menuType.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.CHANGE_TYPE)));        menuType.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.DELETE_TYPE)));        menuType.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.IMPORT_TYPES)));        menuSearch.setVisible(true);        menuSearch.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.SEARCH_DLG)));        menuSearch.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.SEARCH_MULTIPLE_DLG)));        menuSearch.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.STRUCTURED_SEARCH_MULTIPLE_DLG)));        menuSearch.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.GOTO_DLG)));        menuView.setVisible(true);        ElanMenuItem menuItemViewTierDependencies = new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.TIER_DEPENDENCIES));        menuView.add(menuItemViewTierDependencies);        menuView.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.SHORTCUTS)));        CommandAction syntaxViewerAction = ELANCommandFactory.getCommandAction(transcriptionForThisFrame,                ELANCommandFactory.SYNTAX_VIEWER);        if (syntaxViewerAction != null) {            menuView.add(new ElanMenuItem(syntaxViewerAction));        }        menuOptions.removeAll();        ma = new MenuAction("Menu.Options.TimeChangePropagationMode");        menuActions.add(ma);        menuChangeTimePropMode = new JMenu(ma);        ButtonGroup timePropGroup = new ButtonGroup();        JRadioButtonMenuItem normalModeMI = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.TIMEPROP_NORMAL));        JRadioButtonMenuItem bulldozerModeMI = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.BULLDOZER_MODE));        JRadioButtonMenuItem shiftModeMI = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.SHIFT_MODE));        timePropGroup.add(normalModeMI);        normalModeMI.setSelected(true);        timePropGroup.add(bulldozerModeMI);        timePropGroup.add(shiftModeMI);        menuChangeTimePropMode.add(normalModeMI);        menuChangeTimePropMode.add(bulldozerModeMI);        menuChangeTimePropMode.add(shiftModeMI);        menuOptions.add(menuChangeTimePropMode);        menuOptions.addSeparator();        ButtonGroup modeGroup = new ButtonGroup();        menuItemAnnoMode = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.ANNOTATION_MODE));        menuItemAnnoMode.setSelected(true);        menuItemSyncMode = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.SYNC_MODE));        modeGroup.add(menuItemAnnoMode);        modeGroup.add(menuItemSyncMode);        menuOptions.add(menuItemAnnoMode);        menuOptions.add(menuItemSyncMode);        menuOptions.addSeparator();        menuItemKioskMode = new JCheckBoxMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.KIOSK_MODE));        //menuOptions.add(menuItemKioskMode);        //menuOptions.addSeparator();        menuItemPlayAround = new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.PLAY_AROUND_SELECTION_DLG));        menuOptions.add(menuItemPlayAround);        menuItemRateVol = new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame,                    ELANCommandFactory.PLAYBACK_TOGGLE_DLG));        menuOptions.add(menuItemRateVol);        menuOptions.addSeparator();        ma = new MenuAction("Menu.Options.FrameLength");        menuActions.add(ma);        menuFrameLength = new JMenu(ma);        ButtonGroup videoGroup = new ButtonGroup();        JRadioButtonMenuItem palMI = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.SET_PAL));        JRadioButtonMenuItem ntscMI = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.SET_NTSC));        videoGroup.add(palMI);        palMI.setSelected(true);        videoGroup.add(ntscMI);        menuFrameLength.add(palMI);        menuFrameLength.add(ntscMI);        menuOptions.add(menuFrameLength);        menuOptions.addSeparator();        ma = new MenuAction("Menu.Options.Language");        menuActions.add(ma);        menuAppLanguage = new JMenu(ma);        menuOptions.add(menuAppLanguage);        languageBG = new ButtonGroup();        JMenuItem miCatalan = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.CATALAN));        languageBG.add(miCatalan);        menuAppLanguage.add(miCatalan);        JMenuItem miGerman = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.GERMAN));        languageBG.add(miGerman);        menuAppLanguage.add(miGerman);        menuItemOptionsEnglish = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.ENGLISH));        menuItemOptionsEnglish.setSelected(true);        languageBG.add(menuItemOptionsEnglish);        menuAppLanguage.add(menuItemOptionsEnglish);        JMenuItem miSpanish = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.SPANISH));        languageBG.add(miSpanish);        menuAppLanguage.add(miSpanish);        JMenuItem miFrench = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.FRENCH));        languageBG.add(miFrench);        menuAppLanguage.add(miFrench);        menuItemOptionsDutch = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.DUTCH));        languageBG.add(menuItemOptionsDutch);        menuAppLanguage.add(menuItemOptionsDutch);        JMenuItem miPortu = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.PORTUGUESE));        languageBG.add(miPortu);        menuAppLanguage.add(miPortu);        JMenuItem miSwedish = new JRadioButtonMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.SWEDISH));        languageBG.add(miSwedish);        menuAppLanguage.add(miSwedish);        if (elanP2P != null) {            menuItemPublishDoc = new JMenuItem();            menuItemPublishDoc.addActionListener(this);            menuItemPublishDoc.setActionCommand("PublishDoc");            menuP2P.add(menuItemPublishDoc);            //menuP2P.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(transcriptionForThisFrame, ELANCommandFactory.PUBLISH_DOC)), 0);        }        menuHelp.setVisible(true);        menuHelp.add(new ElanMenuItem(ELANCommandFactory.getCommandAction(                    transcriptionForThisFrame, ELANCommandFactory.ABOUT_DLG)));        updateLocale();    }    /**     * DOCUMENT ME!     */    public void updateLocale() {        setFrameTitle();        // updat

⌨️ 快捷键说明

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