"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);
// 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);
}