📄 graphsettings.java
字号:
// SetTransitionStyleNoRoutingSpline action = new SetTransitionStyleNoRoutingSpline(comp); icon = new ImageIcon(ResourceManager.class.getClassLoader() .getResource("org/enhydra/jawe/images/transitionspline.gif")); langDepName = "SetTransitionStyleNoRoutingSpline"; ja = new JaWEAction(action, icon, langDepName); componentAction.put(action.getValue(Action.NAME), ja); // SetTransitionStyleSimpleRoutingBezier action = new SetTransitionStyleNoRoutingBezier(comp); icon = new ImageIcon(ResourceManager.class.getClassLoader() .getResource("org/enhydra/jawe/images/transitionbeziersr.gif")); langDepName = "SetTransitionStyleSimpleRoutingBezier"; ja = new JaWEAction(action, icon, langDepName); componentAction.put(action.getValue(Action.NAME), ja); // SetTransitionStyleSimpleRoutingOrthogonal action = new SetTransitionStyleSimpleRoutingOrthogonal(comp); icon = new ImageIcon(ResourceManager.class.getClassLoader() .getResource("org/enhydra/jawe/images/transitionortogonalsr.gif")); langDepName = "SetTransitionStyleSimpleRoutingOrthogonal"; ja = new JaWEAction(action, icon, langDepName); componentAction.put(action.getValue(Action.NAME), ja); // SetTransitionStyleSimpleRoutingSpline action = new SetTransitionStyleSimpleRoutingSpline(comp); icon = new ImageIcon(ResourceManager.class.getClassLoader() .getResource("org/enhydra/jawe/images/transitionsplinesr.gif")); langDepName = "SetTransitionStyleSimpleRoutingSpline"; ja = new JaWEAction(action, icon, langDepName); componentAction.put(action.getValue(Action.NAME), ja); // SelectConnectingActivitiesForSelectedTransitions try { String clsName = "org.enhydra.jawe.components.graph.actions.SelectConnectingActivitiesForSelectedTransitions"; try { action = (ActionBase) Class.forName(clsName).getConstructor(new Class[] { JaWEComponent.class }).newInstance(new Object[] { comp }); } catch (Exception e) { action = null; } icon = null; langDepName = "SelectConnectingActivitiesForSelectedTransitions"; ja = new JaWEAction(action, icon, langDepName); componentAction.put(langDepName, ja); } catch (Exception ex) { } // ZoomIn action = new ZoomIn(comp); icon = new ImageIcon(ResourceManager.class.getClassLoader() .getResource("org/enhydra/jawe/images/zoomin.gif")); langDepName = "ZoomIn"; ja = new JaWEAction(action, icon, langDepName); componentAction.put(action.getValue(Action.NAME), ja); // ZoomOut action = new ZoomOut(comp); icon = new ImageIcon(ResourceManager.class.getClassLoader() .getResource("org/enhydra/jawe/images/zoomout.gif")); langDepName = "ZoomOut"; ja = new JaWEAction(action, icon, langDepName); componentAction.put(action.getValue(Action.NAME), ja); } public String getMenuActionOrder(String menuName) { return (String) componentSettings.get(menuName + "Menu"); } public String getToolbarActionOrder(String toolbarName) { return (String) componentSettings.get(toolbarName + "Toolbar"); } public boolean shouldDrawBlockLines() { return ((Boolean) componentSettings.get("DrawBlockLines")).booleanValue(); } public boolean shouldDrawSubflowLines() { return ((Boolean) componentSettings.get("DrawSubflowLines")).booleanValue(); } public boolean isNameWrappingEnabled() { return ((Boolean) componentSettings.get("NameWrapping")).booleanValue(); } public boolean isWordWrappingEnabled() { return ((Boolean) componentSettings.get("WordWrapping")).booleanValue(); } public boolean shouldShowGrid() { return ((Boolean) componentSettings.get("ShowGrid")).booleanValue(); } public boolean shouldShowIcons() { return ((Boolean) componentSettings.get("ShowIcons")).booleanValue(); } public boolean isShadowEnabled() { return ((Boolean) componentSettings.get("ShowShadow")).booleanValue(); } public boolean shouldShowTransitionCondition() { return ((Boolean) componentSettings.get("ShowTransitionCondition")).booleanValue(); } public boolean shouldShowTransitionNameForCondition() { return ((Boolean) componentSettings.get("ShowTransitionNameForCondition")).booleanValue(); } public boolean shouldUseBubbles() { return ((Boolean) componentSettings.get("UseBubbles")).booleanValue(); } public boolean useParticipantChoiceButton() { return ((Boolean) componentSettings.get("UseParticipantChoiceButton")).booleanValue(); } public boolean useActivitySetChoiceButton() { return ((Boolean) componentSettings.get("UseActivitySetChoiceButton")).booleanValue(); } public boolean shouldShowGraphOverview() { return ((Boolean) componentSettings.get("ShowGraphOverview")).booleanValue(); } public String getGraphObjectFactory() { return (String) componentSettings.get("GraphObjectFactoryClass"); } public String getGraphObjectRendererFactory() { return (String) componentSettings.get("GraphObjectRendererFactoryClass"); } public String getGraphMarqueeHandler() { return (String) componentSettings.get("GraphMarqueeHandlerClass"); } public String getGraphClass() { return (String) componentSettings.get("GraphClass"); } public String getGraphModelClass() { return (String) componentSettings.get("GraphModelClass"); } public String getGraphManager() { return (String) componentSettings.get("GraphManagerClass"); } public String getDefaultTransitionStyle() { return (String) componentSettings.get("DefaultTransitionStyle"); } public ImageIcon getDefaultActivityIcon() { return (ImageIcon) componentSettings.get("DefaultActivityIcon"); } public ImageIcon getBubbleStartIcon() { return (ImageIcon) componentSettings.get("BubbleStart"); } public ImageIcon getBubbleEndIcon() { return (ImageIcon) componentSettings.get("BubbleEnd"); } public ImageIcon getFreeTextParticipantIcon() { return (ImageIcon) componentSettings.get("FreeTextParticipant"); } public ImageIcon getCommonExpresionParticipantIcon() { return (ImageIcon) componentSettings.get("CommonExpresionParticipant"); } public ImageIcon getParticipantsIcon() { return (ImageIcon) componentSettings.get("Participants"); } public ImageIcon getActivitySetSelectIcon() { return (ImageIcon) componentSettings.get("ActivitySetSelect"); } public ImageIcon getSelectionIcon() { return (ImageIcon) componentSettings.get("Selection"); } public int getGridSize() { return ((Integer) componentSettings.get("GridSize")).intValue(); } public int getShadowWidth() { return ((Integer) componentSettings.get("ShadowWidth")).intValue(); } public int getTextPos() { return ((Integer) componentSettings.get("TextPosition")).intValue(); } public int getGraphFontSize() { return ((Integer) componentSettings.get("GraphFontSize")).intValue(); } public int getActivityHeight() { return ((Integer) componentSettings.get("ActivityHeight")).intValue(); } public int getActivityWidth() { return ((Integer) componentSettings.get("ActivityWidth")).intValue(); } public int getMinParWidth() { return ((Integer) componentSettings.get("MinParWidth")).intValue(); } public int getMinParHeight() { return ((Integer) componentSettings.get("MinParHeight")).intValue(); } public int getParticipantNameWidth() { return ((Integer) componentSettings.get("ParticipantNameWidth")).intValue(); } public Color getBubbleColor() { return (Color) componentSettings.get("BubbleColor"); } public Color getBubbleConectionColor() { return (Color) componentSettings.get("BubbleConectionColor"); } public Color getSelectedActivityColor() { return (Color) componentSettings.get("ActivitySelectedColor"); } public Color getStartActivityColor() { return (Color) componentSettings.get("StartActivityColor"); } public Color getEndActivityColor() { return (Color) componentSettings.get("EndActivityColor"); } public Color getStartEndActivityColor() { return (Color) componentSettings.get("StartEndActivityColor"); } public Color getBackgroundColor() { return (Color) componentSettings.get("BackgroundColor"); } public Color getGridColor() { return (Color) componentSettings.get("GridColor"); } public Color getTextColor() { return (Color) componentSettings.get("TextColor"); } public Color getParticipantBorderColor() { return (Color) componentSettings.get("ParticipantBorderColor"); } public Color getParticipantFreeTextExpressionColor() { return (Color) componentSettings.get("ParticipantFreeTextExpressionColor"); } public Color getParticipantCommonExpressionColor() { return (Color) componentSettings.get("ParticipantCommonExpressionColor"); } public Color getHandleColor() { return (Color) componentSettings.get("HandleColor"); } public Color getMarqueeColor() { return (Color) componentSettings.get("MarqueeColor"); } public String historyManagerClass() { return (String) componentSettings.get("Graph.HistoryManager.Class"); } public int historySize() { return ((Integer) componentSettings.get("Graph.HistorySize")).intValue(); } public String overviewClass() { return (String) componentSettings.get("GraphOverview.Class"); } public boolean performAutomaticLayoutOnInsertion() { return (JaWEManager.getInstance().getXPDLHandler().getXPDLRepositoryHandler() instanceof XPDLRepHandler); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -