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

📄 graphsettings.java

📁 jawe的最新版本,基于Java的图形化工作流编辑器。图形化工作流编辑器 。使用JAVA语言开发
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
      else         cicon = new ImageIcon(ResourceManager.class.getClassLoader()            .getResource("org/enhydra/jawe/images/start.gif"));      componentSettings.put("BubbleStart", cicon);      iconURL = ResourceManager.getResource(properties, "Graph.XPDLElement.Image.End");      if (iconURL != null)         cicon = new ImageIcon(iconURL);      else         cicon = new ImageIcon(ResourceManager.class.getClassLoader()            .getResource("org/enhydra/jawe/images/end.gif"));      componentSettings.put("BubbleEnd", cicon);      iconURL = ResourceManager.getResource(properties,                                            "Graph.XPDLElement.Image.FreeTextParticipant");      if (iconURL != null)         cicon = new ImageIcon(iconURL);      else         cicon = new ImageIcon(ResourceManager.class.getClassLoader()            .getResource("org/enhydra/jawe/images/freetextparticipant.png"));      componentSettings.put("FreeTextParticipant", cicon);      iconURL = ResourceManager.getResource(properties,                                            "Graph.XPDLElement.Image.CommonExpresionParticipant");      if (iconURL != null)         cicon = new ImageIcon(iconURL);      else         cicon = new ImageIcon(ResourceManager.class.getClassLoader()            .getResource("org/enhydra/jawe/images/commonexpparticipant.png"));      componentSettings.put("CommonExpresionParticipant", cicon);      iconURL = ResourceManager.getResource(properties, "GraphPanel.Image.Participants");      if (iconURL != null)         cicon = new ImageIcon(iconURL);      else         cicon = new ImageIcon(ResourceManager.class.getClassLoader()            .getResource("org/enhydra/jawe/images/participantsselect.gif"));      componentSettings.put("Participants", cicon);      iconURL = ResourceManager.getResource(properties,                                            "GraphPanel.Image.ActivitySetSelect");      if (iconURL != null)         cicon = new ImageIcon(iconURL);      else         cicon = new ImageIcon(ResourceManager.class.getClassLoader()            .getResource("org/enhydra/jawe/images/activitysetselect.gif"));      componentSettings.put("ActivitySetSelect", cicon);      iconURL = ResourceManager.getResource(properties, "GraphPanel.Image.Selection");      if (iconURL != null)         cicon = new ImageIcon(iconURL);      else         cicon = new ImageIcon(ResourceManager.class.getClassLoader()            .getResource("org/enhydra/jawe/images/select.gif"));      componentSettings.put("Selection", cicon);      // menus, toolbars and actions      loadDefaultMenusToolbarsAndActions(comp);      componentSettings.putAll(Utils.loadAllMenusAndToolbars(properties));      componentAction.putAll(Utils.loadActions(properties, comp, componentAction));   }   protected void loadDefaultMenusToolbarsAndActions(JaWEComponent comp) {      // menu      componentSettings.put("ACTIVITYMenu",                            "jaweAction_Cut jaweAction_Copy jaweAction_Delete jaweAction_EditProperties - ActivityReferredDocument SelectConnectingTransitionsForSelectedActivities");      componentSettings.put("ACTIVITY_BLOCKMenu", "DescendInto");      componentSettings.put("ACTIVITY_SUBFLOWMenu", "DescendInto");      componentSettings.put("ENDMenu", "jaweAction_Delete");      componentSettings.put("PARTICIPANTMenu",                            "RemoveParticipant jaweAction_Delete jaweAction_EditProperties - MoveUpParticipant MoveDownParticipant");      componentSettings.put("SELECTMenu", "GraphPaste");      componentSettings.put("STARTMenu", "jaweAction_Delete");      componentSettings.put("TRANSITIONMenu",                            "AddPoint RemovePoint jaweAction_Delete *SetTransitionStyle jaweAction_EditProperties - SelectConnectingActivitiesForSelectedTransitions");      componentSettings.put("SetTransitionStyleMenu",                            "SetTransitionStyleNoRoutingBezier SetTransitionStyleNoRoutingOrthogonal SetTransitionStyleNoRoutingSpline - SetTransitionStyleSimpleRoutingBezier SetTransitionStyleSimpleRoutingOrthogonal SetTransitionStyleSimpleRoutingSpline");      componentSettings.put("SetTransitionStyleLangName", "SetTransitionStyle");      // toolbar      componentSettings.put("defaultToolbarToolbar", "*graphEditToolbar");      componentSettings.put("toolboxToolbar",                            "SetSelectMode - SetParticipantModePARTICIPANT_ROLE SetParticipantModeFreeTextExpression SetParticipantModeCommonExpression - SetStartMode SetEndMode - SetActivityMode* - SetTransitionMode*");      componentSettings.put("graphEditToolbarToolbar",                            "SaveAsJPG SaveAsSVG - ZoomIn ActualSize ZoomOut - MoveUpParticipant MoveDownParticipant - PreviousGraph NextGraph - InsertMissingStartAndEndBubbles RemoveStartAndEndBubbles - RotateProcess SimpleGraphLayout - InsertActivitySet");      // actions      ActionBase action = null;      ImageIcon icon;      String langDepName;      JaWEAction ja;      // SetPerformerExpression      try {         String clsName = "org.enhydra.jawe.components.graph.actions.SetPerformerExpression";         try {            action = (ActionBase) Class.forName(clsName).getConstructor(new Class[] {               JaWEComponent.class            }).newInstance(new Object[] {               comp            });         } catch (Exception e) {         }         icon = new ImageIcon(ResourceManager.class.getClassLoader()            .getResource("org/enhydra/jawe/images/commonexpparticipantsetexp.png"));         langDepName = "SetPerformerExpression";         ja = new JaWEAction(action, icon, langDepName);         componentAction.put(langDepName, ja);      } catch (Exception ex) {      }      // ActualSize      action = new ActualSize(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/actualsize.gif"));      langDepName = "ActualSize";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // ActivityReferredDocument      action = new ActivityReferredDocument(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/referred_document.png"));      langDepName = "ActivityReferredDocument";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // SelectConnectingTransitionsForSelectedActivities      try {         String clsName = "org.enhydra.jawe.components.graph.actions.SelectConnectingTransitionsForSelectedActivities";         try {            action = (ActionBase) Class.forName(clsName).getConstructor(new Class[] {               JaWEComponent.class            }).newInstance(new Object[] {               comp            });         } catch (Exception e) {            action = null;         }         icon = null;         langDepName = "SelectConnectingTransitionsForSelectedActivities";         ja = new JaWEAction(action, icon, langDepName);         componentAction.put(langDepName, ja);      } catch (Exception ex) {      }      // AddPoint      action = new AddPoint(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/addpoint.gif"));      langDepName = "AddPoint";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // DescendInto      action = new DescendInto(comp);      langDepName = "DescendInto";      ja = new JaWEAction(action, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // GraphPaste      action = new GraphPaste(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/paste.gif"));      langDepName = "Paste";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // InsertActivitySet      action = new InsertActivitySet(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/activitysetnew.gif"));      langDepName = "InsertActivitySet";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // MoveDownParticipant      action = new MoveDownParticipant(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/participantdownright.gif"));      langDepName = "MoveDownParticipant";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // MoveUpParticipant      action = new MoveUpParticipant(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/participantupleft.gif"));      langDepName = "MoveUpParticipant";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // NextGraph      action = new NextGraph(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/nav_right_red.png"));      langDepName = "NextGraph";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // PreviousGraph      action = new PreviousGraph(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/nav_left_red.png"));      langDepName = "PreviousGraph";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // InsertMissingStartAndEndBubbles      action = new InsertMissingStartAndEndBubbles(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/startend.gif"));      langDepName = "InsertMissingStartAndEndBubbles";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // RemoveStartAndEndBubbles      action = new RemoveStartAndEndBubbles(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/startend_remove.gif"));      langDepName = "RemoveStartAndEndBubbles";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // RemoveParticipant      action = new RemoveParticipant(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/participantremove.png"));      langDepName = "RemoveParticipant";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // RemovePoint      action = new RemovePoint(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/removepoint.gif"));      langDepName = "RemovePoint";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // RotateProcess      try {         String clsName = "org.enhydra.jawe.components.graph.actions.RotateProcess";         try {            action = (ActionBase) Class.forName(clsName).getConstructor(new Class[] {               JaWEComponent.class            }).newInstance(new Object[] {               comp            });         } catch (Exception e) {            action = null;         }         icon = new ImageIcon(ResourceManager.class.getClassLoader()            .getResource("org/enhydra/jawe/images/process_rotate.gif"));         langDepName = "RotateProcess";         ja = new JaWEAction(action, icon, langDepName);         componentAction.put(langDepName, ja);      } catch (Exception ex) {      }      // SimpleGraphLayout      action = new SimpleGraphLayout(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/graph_layout.png"));      langDepName = "SimpleGraphLayout";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // SaveAsJPG      action = new SaveAsJPG(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/saveasjpg.gif"));      langDepName = "SaveAsJPG";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // SaveAsSVG      action = new SaveAsSVG(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/saveassvg.gif"));      langDepName = "SaveAsSVG";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // SetTransitionStyleNoRoutingBezier      action = new SetTransitionStyleNoRoutingBezier(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/transitionbezier.gif"));      langDepName = "SetTransitionStyleNoRoutingBezier";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);      // SetTransitionStyleNoRoutingOrthogonal      action = new SetTransitionStyleNoRoutingOrthogonal(comp);      icon = new ImageIcon(ResourceManager.class.getClassLoader()         .getResource("org/enhydra/jawe/images/transitionortogonal.gif"));      langDepName = "SetTransitionStyleNoRoutingOrthogonal";      ja = new JaWEAction(action, icon, langDepName);      componentAction.put(action.getValue(Action.NAME), ja);

⌨️ 快捷键说明

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