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

📄 optionpanel.java

📁 思维导图(Mind Mapping)以放射性思考(Radiant Thinking)为基础的收放自如方式
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
		/* ***************************************************************** */		controls.add(new NextLineProperty());		controls.add(new SeparatorProperty("initial_map_size"));		controls.add(new StringProperty("mapxsize.tooltip", "mapxsize")); //  1000		controls.add(new StringProperty(null, "mapysize")); //  3200		/* ***************************************************************** */		controls.add(new NextLineProperty());		controls.add(new SeparatorProperty("hyperlink_types"));		controls.add(new ComboProperty("links.tooltip", "links", new String[] {				"relative", "absolute" })); //  relative		/* ***************************************************************** */		controls.add(new NextLineProperty());		controls.add(new SeparatorProperty("edit_long_node_window"));		controls.add(new StringProperty("el__buttons_position.tooltip",				"el__buttons_position")); //  above		controls				.add(new BooleanProperty(null, "el__position_window_below_node")); //  true		controls.add(new StringProperty(null, "el__min_default_window_height")); //  150		controls.add(new StringProperty(null, "el__max_default_window_height")); //  500		controls.add(new StringProperty(null, "el__min_default_window_width")); //  600		controls.add(new StringProperty(null, "el__max_default_window_width")); //  600		controls				.add(new BooleanProperty(null, "el__enter_confirms_by_default")); //  true		/***********************************************************************		 * Keystrokes		 * ****************************************************************		 */		String form = "right:max(40dlu;p), 4dlu, 80dlu, 7dlu";		controls.add(new NewTabProperty("Keystrokes", form+ ","+form)); //", right:max(40dlu;p), 4dlu, 60dlu"));		//		 		//		 These are the accelerators for the menu items. Valid modifiers are:		//		 shift | control | alt | meta | button1 | button2 | button3		//		 Valid keys should be all that are defined in java.awt.event.KeyEvent		//		 (without the "VK_" prefix), but I found this buggy. All normal char's		// should work.		//		 The ideas employed in choice of keyboard shortcuts are:		//		   If there is a standard for a feature, use it		//		   Use control modifier whereever possible		//		Commands for the program		controls.add(new SeparatorProperty("commands_for_the_program"));		controls.add(new KeyProperty(frame, null, "keystroke_newMap")); //  control		// N		controls.add(new KeyProperty(frame, null, "keystroke_open")); //  control		// O		controls.add(new KeyProperty(frame, null, "keystroke_save")); //  control		// S		controls.add(new KeyProperty(frame, null, "keystroke_saveAs")); //  control		// shift		// S		controls.add(new KeyProperty(frame, null, "keystroke_print")); //  control		// P		controls.add(new KeyProperty(frame, null, "keystroke_close")); //  control		// W		controls.add(new KeyProperty(frame, null, "keystroke_quit")); //  control		// Q		controls.add(new KeyProperty(frame, null, "keystroke_option_dialog")); //  control COMMA		controls.add(new KeyProperty(frame, null, "keystroke_export_to_html")); //  control		// E		controls.add(new KeyProperty(frame, null,				"keystroke_export_branch_to_html")); //  control		// H		controls.add(new KeyProperty(frame, null,				"keystroke_open_first_in_history")); //  control		// shift		// W		controls.add(new KeyProperty(frame, null, "keystroke_previousMap")); //  control		// LEFT		controls.add(new KeyProperty(frame, null, "keystroke_nextMap")); //  control		// RIGHT		controls.add(new KeyProperty(frame, null, "keystroke_mode_MindMap")); //  alt		// 1		controls.add(new KeyProperty(frame, null, "keystroke_mode_Browse")); //  alt		// 2		controls.add(new KeyProperty(frame, null, "keystroke_mode_File")); //  alt		// 3		controls.add(new KeyProperty(frame, null,				"keystroke_node_toggle_italic")); //  control		// I		controls.add(new KeyProperty(frame, null,				"keystroke_node_toggle_boldface")); //  control		// B		controls.add(new KeyProperty(frame, null,				"keystroke_node_toggle_underlined")); //  control		// U		controls				.add(new KeyProperty(frame, null, "keystroke_node_toggle_cloud")); //  control		// shift		// B		controls.add(new KeyProperty(frame, null, "keystroke_undo")); //  control		// Z		controls.add(new KeyProperty(frame, null, "keystroke_redo")); //  control		// Y		controls.add(new KeyProperty(frame, null, "keystroke_delete_child")); //  DELETE		controls.add(new KeyProperty(frame, null, "keystroke_select_all")); //  control		// A		controls.add(new KeyProperty(frame, null, "keystroke_select_branch")); //  control		// shift A		controls.add(new KeyProperty(frame, null, "keystroke_zoom_out")); //  alt		// UP		controls.add(new KeyProperty(frame, null, "keystroke_zoom_in")); //  alt		// DOWN		//		Node editing commands		controls.add(new NextLineProperty());		controls.add(new SeparatorProperty("node_editing_commands"));		controls.add(new KeyProperty(frame, null, "keystroke_cut")); //  control		// X		controls.add(new KeyProperty(frame, null, "keystroke_copy")); //  control		// C		controls.add(new KeyProperty(frame, null, "keystroke_copy_single")); //  control		// shift C		controls.add(new KeyProperty(frame, null, "keystroke_paste")); //  control		// V		controls.add(new KeyProperty(frame, null, "keystroke_remove")); //  none		controls.add(new KeyProperty(frame, null,				"keystroke_add_arrow_link_action")); // control		// L		controls.add(new KeyProperty(frame, null,				"keystroke_add_local_link_action")); // alt		// L		//		 Unline with control X, the node you remove with action remove cannot		// be		//		 pasted again. Therefore, we do not provide any quick shortcut. We		// suggest		//		 that you use cut instead of remove.		//		Node navigation commands		controls.add(new NextLineProperty());		controls.add(new SeparatorProperty("node_navigation_commands"));		controls.add(new KeyProperty(frame, null, "keystroke_moveToRoot")); //  ESCAPE		controls.add(new KeyProperty(frame, null, "keystroke_move_up")); //  E		controls.add(new KeyProperty(frame, null, "keystroke_move_down")); //  D		controls.add(new KeyProperty(frame, null, "keystroke_move_left")); //  S		controls.add(new KeyProperty(frame, null, "keystroke_move_right")); //  F		controls.add(new KeyProperty(frame, null, "keystroke_follow_link")); //  control		// ENTER		//		New node commands		controls.add(new NextLineProperty());		controls.add(new SeparatorProperty("new_node_commands"));		controls.add(new KeyProperty(frame, null, "keystroke_add")); //  ENTER		controls.add(new KeyProperty(frame, null, "keystroke_add_child")); //  INSERT		controls.add(new KeyProperty(frame, null, "keystroke_add_child_mac")); //  TAB		controls.add(new KeyProperty(frame, null,				"keystroke_add_sibling_before")); //  shift		// ENTER		//		Node editing commands		controls.add(new NextLineProperty());		controls.add(new SeparatorProperty("node_editing_commands"));		controls.add(new KeyProperty(frame, null, "keystroke_edit")); //  F2		controls.add(new KeyProperty(frame, null, "keystroke_edit_long_node")); //  alt		// ENTER		controls.add(new KeyProperty(frame, null, "keystroke_join_nodes")); //  control		// J		controls.add(new KeyProperty(frame, null, "keystroke_toggle_folded")); //  SPACE		controls.add(new KeyProperty(frame, null,				"keystroke_toggle_children_folded")); //  control		// SPACE		controls.add(new KeyProperty(frame, null,				"keystroke_set_link_by_filechooser")); //  control		// shift		// K		controls.add(new KeyProperty(frame, null,				"keystroke_set_link_by_textfield")); //  control		// K		controls.add(new KeyProperty(frame, null,				"keystroke_set_image_by_filechooser")); //  alt		// K		controls.add(new KeyProperty(frame, null, "keystroke_node_up")); //  control		// UP		controls.add(new KeyProperty(frame, null, "keystroke_node_down")); //  control		// DOWN		controls.add(new KeyProperty(frame, null,				"keystroke_node_increase_font_size")); //  control		// PLUS		controls.add(new KeyProperty(frame, null,				"keystroke_node_decrease_font_size")); //  control		// MINUS		//		controls.add(new KeyProperty(frame, null,		//				"keystroke_branch_increase_font_size")); // control		//		// shift		//		// PLUS		//		//		controls.add(new KeyProperty(frame, null,		//				"keystroke_branch_decrease_font_size")); // control		//		// shift		//		// MINUS		//		controls.add(new KeyProperty(frame, null, "keystroke_export_branch")); //  alt		// A		//		controls.add(new KeyProperty(frame, null, "keystroke_node_color")); //  alt		// F		controls				.add(new KeyProperty(frame, null, "keystroke_node_color_blend")); //  alt		// B		controls.add(new KeyProperty(frame, null, "keystroke_edge_color")); //  alt		// E		controls.add(new KeyProperty(frame, null, "keystroke_find")); //  ctrl F		controls.add(new KeyProperty(frame, null, "keystroke_find_next")); //  ctrl		// G		//		 Apply patterns		//		 There is no limiting number of the pattern, you can have as many		// keystrokes for patterns as you want. The reason I do not follow to		// F10 and further in this default is that F10 has special function on		// Windows.		controls.add(new NextLineProperty());		controls.add(new SeparatorProperty("patterns"));		controls.add(new KeyProperty(frame, null, "keystroke_apply_pattern_1")); //  F1		controls.add(new KeyProperty(frame, null, "keystroke_apply_pattern_2")); //  control		// shift		// N		controls.add(new KeyProperty(frame, null, "keystroke_apply_pattern_3")); //  F3		controls.add(new KeyProperty(frame, null, "keystroke_apply_pattern_4")); //  F4		controls.add(new KeyProperty(frame, null, "keystroke_apply_pattern_5")); //  F5		controls.add(new KeyProperty(frame, null, "keystroke_apply_pattern_6")); //  F6		controls.add(new KeyProperty(frame, null, "keystroke_apply_pattern_7")); //  F7		controls.add(new KeyProperty(frame, null, "keystroke_apply_pattern_8")); //  F8		controls.add(new KeyProperty(frame, null, "keystroke_apply_pattern_9")); //  F9		controls				.add(new KeyProperty(frame, null, "keystroke_apply_pattern_10")); //  control		// F1		controls				.add(new KeyProperty(frame, null, "keystroke_apply_pattern_11")); //  control		// F2		controls				.add(new KeyProperty(frame, null, "keystroke_apply_pattern_12")); //  control		// F3		controls				.add(new KeyProperty(frame, null, "keystroke_apply_pattern_13")); //  control		// F4		controls				.add(new KeyProperty(frame, null, "keystroke_apply_pattern_14")); //  control		// F5		controls				.add(new KeyProperty(frame, null, "keystroke_apply_pattern_15")); //  control		// F6		controls				.add(new KeyProperty(frame, null, "keystroke_apply_pattern_16")); //  control		// F7		controls				.add(new KeyProperty(frame, null, "keystroke_apply_pattern_17")); //  control		// F8		controls				.add(new KeyProperty(frame, null, "keystroke_apply_pattern_18")); //  control		// F9		/***********************************************************************		 * Misc ****************************************************************		 */		controls.add(new NewTabProperty("Behaviour"));		controls.add(new SeparatorProperty("behaviour"));		controls.add(new ComboProperty(		"placenewbranches.tooltip", "placenewbranches", new String[] { "first",				"last" })); //  last		controls.add(new BooleanProperty("draganddrop.tooltip", "draganddrop")); //  true		controls.add(new BooleanProperty(		"disable_cursor_move_paper.tooltip", "disable_cursor_move_paper")); //  false		controls.add(new BooleanProperty(		"enable_leaves_folding.tooltip", "enable_leaves_folding")); //  false		controls.add(new StringProperty(		"foldingsymbolwidth.tooltip", "foldingsymbolwidth")); //  6		controls.add(new NextLineProperty());		controls.add(new SeparatorProperty("key_typing"));		controls.add(new BooleanProperty(		"disable_key_type.tooltip", "disable_key_type")); //  false		controls.add(new BooleanProperty(		"key_type_adds_new.tooltip", "key_type_adds_new")); //  false		controls.add(new NextLineProperty());		controls				.add(new SeparatorProperty(FreeMind.RESOURCES_SELECTION_METHOD));		controls				.add(new ComboProperty(				"selection_method.tooltip",						FreeMind.RESOURCES_SELECTION_METHOD, new String[] {								"selection_method_direct",								"selection_method_delayed",								"selection_method_by_click" })); //  selection_method_direct		controls.add(new StringProperty(		"time_for_delayed_selection.tooltip", "time_for_delayed_selection")); // 500        controls.add(new NextLineProperty());		controls		.add(new SeparatorProperty("undo"));        controls.add(new NumberProperty("undo_levels.tooltip", "undo_levels", 2,1000,1));		/***********************************************************************		 * Browser/external apps		 * ****************************************************************		 */		controls.add(new NewTabProperty("HTML"));		controls.add(new SeparatorProperty("browser"));		//		//		 The default browser setting		//		//		 For Windows (the \"\" signs are necessary due to links, that have "="		// in their URL).		//		 default_browser_command_windows_nt = explorer "{0}"		//		//		 The next setting works for the default browser, but eventually starts		// programs without questions, so be careful!		//		//		 default_browser_command_windows_nt = rundll32		// url.dll,FileProtocolHandler {0}		controls.add(new StringProperty(		"default_browser_command_windows_nt.tooltip",				"default_browser_command_windows_nt")); //  cmd.exe		// /c		// start		// ""		// "{0}"		controls.add(new StringProperty(		"default_browser_command_windows_9x.tooltip",				"default_browser_command_windows_9x")); //  command.com		// /c		// start		// "{0}"		//		 Dimitri proposed:		//		 default_browser_command_windows_9x = explorer "{0}"		//		//		 Here the default browser for other operating systems goes:		//		controls.add(new StringProperty(				"default_browser_command_other_os.tooltip",				"default_browser_command_other_os")); //  mozilla {0}		//		controls.add(new StringProperty("default_browser_command_mac.tooltip",				"default_browser_command_mac")); //  open -a		// /Applications/Safari.app {0}		//		controls				.add(new ComboProperty(null, "html_export_folding",						new String[] { "html_export_no_folding",								"html_export_fold_currently_folded",								"html_export_fold_all",								"html_export_based_on_headings" })); //  html_export_fold_currently_folded		controls.add(new NextLineProperty());		controls.add(new SeparatorProperty("html_export"));		controls.add(new BooleanProperty(		"export_icons_in_html.tooltip", "export_icons_in_html")); //  false		return controls;	}	public void closeWindow() {		try {			OptionPanelWindowConfigurationStorage storage = fmMain.getController()					.getActionXmlFactory()					.createOptionPanelWindowConfigurationStorage();			storage.setPanel(selectedPanel);			fmMain.getController().storeDialogPositions(frame, storage,					PREFERENCE_STORAGE_PROPERTY);		} catch (JAXBException e) {			// TODO: handle exception			e.printStackTrace();		}//		frame.hide();		frame.dispose();	}}

⌨️ 快捷键说明

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