Lines Matching refs:new

73 		menu = add(new JMenu(mxResources.get("file")));
75 menu.add(editor.bind(mxResources.get("clear"), new NewAction(),
76 "/com/mxgraph/examples/swing/images/new.gif"));
77 menu.add(editor.bind(mxResources.get("reload"), new OpenAction(),
82 menu.add(editor.bind(mxResources.get("save"), new SaveAction(false),
84 // menu.add(editor.bind(mxResources.get("saveAs"), new SaveAction(true),
90 // new PageSetupAction(),
92 // menu.add(editor.bind(mxResources.get("print"), new PrintAction(),
97 // menu.add(editor.bind(mxResources.get("exit"), new ExitAction()));
100 menu = add(new JMenu(mxResources.get("edit")));
102 menu.add(editor.bind(mxResources.get("undo"), new HistoryAction(true),
104 menu.add(editor.bind(mxResources.get("redo"), new HistoryAction(false),
133 menu.add(editor.bind(mxResources.get("warning"), new WarningAction()));
138 menu = add(new JMenu(mxResources.get("view")));
140 JMenuItem item = menu.add(new TogglePropertyItem(graphComponent,
142 new ActionListener()
162 item.addActionListener(new ActionListener()
180 SwingUtilities.invokeLater(new Runnable()
202 new mxPoint());
209 menu.add(new TogglePropertyItem(graphComponent, mxResources
214 menu.add(new ToggleGridItem(editor, mxResources.get("grid")));
215 menu.add(new ToggleRulersItem(editor, mxResources.get("rulers")));
219 submenu = (JMenu) menu.add(new JMenu(mxResources.get("zoom")));
221 submenu.add(editor.bind("400%", new ScaleAction(4)));
222 submenu.add(editor.bind("200%", new ScaleAction(2)));
223 submenu.add(editor.bind("150%", new ScaleAction(1.5)));
224 submenu.add(editor.bind("100%", new ScaleAction(1)));
225 submenu.add(editor.bind("75%", new ScaleAction(0.75)));
226 submenu.add(editor.bind("50%", new ScaleAction(0.5)));
230 submenu.add(editor.bind(mxResources.get("custom"), new ScaleAction(0)));
241 menu.add(editor.bind(mxResources.get("page"), new ZoomPolicyAction(
243 menu.add(editor.bind(mxResources.get("width"), new ZoomPolicyAction(
252 menu = add(new JMenu(mxResources.get("format")));
257 menu = add(new JMenu(mxResources.get("shape")));
262 menu = add(new JMenu(mxResources.get("diagram")));
264 menu.add(new ToggleOutlineItem(editor, mxResources.get("outline")));
268 submenu = (JMenu) menu.add(new JMenu(mxResources.get("background")));
271 new BackgroundAction()));
273 new BackgroundImageAction()));
278 new PageBackgroundAction()));
280 submenu = (JMenu) menu.add(new JMenu(mxResources.get("grid")));
283 new PromptPropertyAction(graph, "Grid Size", "GridSize")));
285 new GridColorAction()));
289 submenu.add(editor.bind(mxResources.get("dashed"), new GridStyleAction(
291 submenu.add(editor.bind(mxResources.get("dot"), new GridStyleAction(
293 submenu.add(editor.bind(mxResources.get("line"), new GridStyleAction(
295 submenu.add(editor.bind(mxResources.get("cross"), new GridStyleAction(
300 submenu = (JMenu) menu.add(new JMenu(mxResources.get("layout")));
330 submenu = (JMenu) menu.add(new JMenu(mxResources.get("selection")));
333 new SelectShortestPathAction(false)));
335 new SelectShortestPathAction(true)));
340 new SelectSpanningTreeAction(false)));
342 new SelectSpanningTreeAction(true)));
346 submenu = (JMenu) menu.add(new JMenu(mxResources.get("stylesheet")));
352 new StylesheetAction(
358 new StylesheetAction(
362 menu = add(new JMenu(mxResources.get("options")));
364 submenu = (JMenu) menu.add(new JMenu(mxResources.get("display")));
365 submenu.add(new TogglePropertyItem(graphComponent, mxResources
368 submenu.add(new TogglePropertyItem(graphComponent, mxResources
370 new ActionListener()
382 //submenu.add(new TogglePropertyItem(graphComponent, mxResources
388 new PromptPropertyAction(graphComponent, "Tolerance")));
391 new ToggleDirtyAction()));
393 submenu = (JMenu) menu.add(new JMenu(mxResources.get("zoom")));
395 submenu.add(new TogglePropertyItem(graphComponent, mxResources
397 submenu.add(new TogglePropertyItem(graphComponent, mxResources
402 submenu.add(new TogglePropertyItem(graphComponent, mxResources
403 .get("centerPage"), "CenterPage", true, new ActionListener()
420 submenu = (JMenu) menu.add(new JMenu(mxResources.get("dragAndDrop")));
422 submenu.add(new TogglePropertyItem(graphComponent, mxResources
424 submenu.add(new TogglePropertyItem(graph, mxResources
429 submenu.add(new TogglePropertyItem(graphComponent.getGraphHandler(),
432 submenu = (JMenu) menu.add(new JMenu(mxResources.get("labels")));
434 submenu.add(new TogglePropertyItem(graph,
436 submenu.add(new TogglePropertyItem(graph,
441 submenu.add(new TogglePropertyItem(graph, mxResources
443 submenu.add(new TogglePropertyItem(graph, mxResources
448 submenu.add(new TogglePropertyItem(graphComponent,
453 submenu = (JMenu) menu.add(new JMenu(mxResources.get("connections")));
455 submenu.add(new TogglePropertyItem(graphComponent, mxResources
457 submenu.add(new TogglePropertyItem(graph, mxResources
462 submenu.add(new ToggleCreateTargetItem(editor, mxResources
464 submenu.add(new TogglePropertyItem(graph, mxResources
470 new ToggleConnectModeAction()));
472 submenu = (JMenu) menu.add(new JMenu(mxResources.get("validation")));
474 submenu.add(new TogglePropertyItem(graph, mxResources
476 submenu.add(new TogglePropertyItem(graph, mxResources
481 submenu.add(new TogglePropertyItem(graph,
483 submenu.add(new TogglePropertyItem(graph,
487 // menu = add(new JMenu(mxResources.get("window")));
494 // menu.add(new AbstractAction(lafs[i].getName())
504 // menu = add(new JMenu(mxResources.get("help")));
506 // item = menu.add(new JMenuItem(mxResources.get("aboutGraphEditor")));
507 // item.addActionListener(new ActionListener()
578 JMenu submenu = (JMenu) menu.add(new JMenu(mxResources.get("align")));
580 submenu.add(editor.bind(mxResources.get("left"), new AlignCellsAction(
584 new AlignCellsAction(mxConstants.ALIGN_CENTER),
586 submenu.add(editor.bind(mxResources.get("right"), new AlignCellsAction(
592 submenu.add(editor.bind(mxResources.get("top"), new AlignCellsAction(
596 new AlignCellsAction(mxConstants.ALIGN_MIDDLE),
599 new AlignCellsAction(mxConstants.ALIGN_BOTTOM),
606 new AutosizeAction()));
616 JMenu submenu = (JMenu) menu.add(new JMenu(mxResources
619 submenu.add(editor.bind(mxResources.get("fillcolor"), new ColorAction(
622 submenu.add(editor.bind(mxResources.get("gradient"), new ColorAction(
628 new PromptValueAction(mxConstants.STYLE_IMAGE, "Image")));
629 submenu.add(editor.bind(mxResources.get("shadow"), new ToggleAction(
635 new PromptValueAction(mxConstants.STYLE_OPACITY,
638 submenu = (JMenu) menu.add(new JMenu(mxResources.get("label")));
640 submenu.add(editor.bind(mxResources.get("fontcolor"), new ColorAction(
646 submenu.add(editor.bind(mxResources.get("labelFill"), new ColorAction(
649 new ColorAction("Label Border",
655 new ToggleAction(mxConstants.STYLE_HORIZONTAL, true)));
658 new PromptValueAction(mxConstants.STYLE_TEXT_OPACITY,
663 JMenu subsubmenu = (JMenu) submenu.add(new JMenu(mxResources
667 new SetLabelPositionAction(mxConstants.ALIGN_TOP,
670 new SetLabelPositionAction(mxConstants.ALIGN_MIDDLE,
673 new SetLabelPositionAction(mxConstants.ALIGN_BOTTOM,
679 new SetLabelPositionAction(mxConstants.ALIGN_LEFT,
682 new SetLabelPositionAction(mxConstants.ALIGN_CENTER,
685 new SetLabelPositionAction(mxConstants.ALIGN_RIGHT,
690 submenu.add(editor.bind(mxResources.get("hide"), new ToggleAction(
695 submenu = (JMenu) menu.add(new JMenu(mxResources.get("line")));
697 submenu.add(editor.bind(mxResources.get("linecolor"), new ColorAction(
703 submenu.add(editor.bind(mxResources.get("dashed"), new ToggleAction(
706 new PromptValueAction(mxConstants.STYLE_STROKEWIDTH,
709 submenu = (JMenu) menu.add(new JMenu(mxResources.get("connector")));
712 new SetStyleAction("straight"),
716 new SetStyleAction(""),
719 new SetStyleAction("vertical"),
725 new SetStyleAction("edgeStyle=mxEdgeStyle.EntityRelation"),
727 submenu.add(editor.bind(mxResources.get("arrow"), new SetStyleAction(
732 submenu.add(editor.bind(mxResources.get("plain"), new ToggleAction(
737 submenu = (JMenu) menu.add(new JMenu(mxResources.get("linestart")));
739 submenu.add(editor.bind(mxResources.get("open"), new KeyValueAction(
742 submenu.add(editor.bind(mxResources.get("classic"), new KeyValueAction(
745 submenu.add(editor.bind(mxResources.get("block"), new KeyValueAction(
751 submenu.add(editor.bind(mxResources.get("diamond"), new KeyValueAction(
754 submenu.add(editor.bind(mxResources.get("oval"), new KeyValueAction(
760 submenu.add(editor.bind(mxResources.get("none"), new KeyValueAction(
762 submenu.add(editor.bind(mxResources.get("size"), new PromptValueAction(
765 submenu = (JMenu) menu.add(new JMenu(mxResources.get("lineend")));
767 submenu.add(editor.bind(mxResources.get("open"), new KeyValueAction(
770 submenu.add(editor.bind(mxResources.get("classic"), new KeyValueAction(
773 submenu.add(editor.bind(mxResources.get("block"), new KeyValueAction(
779 submenu.add(editor.bind(mxResources.get("diamond"), new KeyValueAction(
782 submenu.add(editor.bind(mxResources.get("oval"), new KeyValueAction(
788 submenu.add(editor.bind(mxResources.get("none"), new KeyValueAction(
790 submenu.add(editor.bind(mxResources.get("size"), new PromptValueAction(
795 submenu = (JMenu) menu.add(new JMenu(mxResources.get("alignment")));
797 submenu.add(editor.bind(mxResources.get("left"), new KeyValueAction(
800 submenu.add(editor.bind(mxResources.get("center"), new KeyValueAction(
803 submenu.add(editor.bind(mxResources.get("right"), new KeyValueAction(
809 submenu.add(editor.bind(mxResources.get("top"), new KeyValueAction(
812 submenu.add(editor.bind(mxResources.get("middle"), new KeyValueAction(
815 submenu.add(editor.bind(mxResources.get("bottom"), new KeyValueAction(
819 submenu = (JMenu) menu.add(new JMenu(mxResources.get("spacing")));
821 submenu.add(editor.bind(mxResources.get("top"), new PromptValueAction(
824 new PromptValueAction(mxConstants.STYLE_SPACING_RIGHT,
827 new PromptValueAction(mxConstants.STYLE_SPACING_BOTTOM,
829 submenu.add(editor.bind(mxResources.get("left"), new PromptValueAction(
835 new PromptValueAction(mxConstants.STYLE_SPACING, "Spacing")));
840 new PromptValueAction(
844 new PromptValueAction(
851 new PromptValueAction(mxConstants.STYLE_PERIMETER_SPACING,
854 submenu = (JMenu) menu.add(new JMenu(mxResources.get("direction")));
856 submenu.add(editor.bind(mxResources.get("north"), new KeyValueAction(
858 submenu.add(editor.bind(mxResources.get("east"), new KeyValueAction(
860 submenu.add(editor.bind(mxResources.get("south"), new KeyValueAction(
862 submenu.add(editor.bind(mxResources.get("west"), new KeyValueAction(
868 new PromptValueAction(mxConstants.STYLE_ROTATION,
873 menu.add(editor.bind(mxResources.get("rounded"), new ToggleAction(
876 menu.add(editor.bind(mxResources.get("style"), new StyleAction()));