toolAction = new ConnectionToolAction();
toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"require_connection.png"));
toolAction.putValue(Action.SMALL_ICON, toolIcon);
toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Require-Relation Figure");
ConstraintConnection prototype = new ConstraintConnection(FeatureRelation.REQUIRE);
prototype.setEndDecoration(new ArrowTip());
toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, prototype);
toolAction.putValue(ToolAction.TOOL, rcTool);
controller.addToolAction(toolAction);
toolAction.setSelected(false);
tooButton = new ToolButton(toolAction);
this.add(tooButton);
toolAction = new ConnectionToolAction();
toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"mutex_connection.png"));
toolAction.putValue(Action.SMALL_ICON, toolIcon);
toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Exclude-Relation Figure");
prototype = new ConstraintConnection(FeatureRelation.EXCLUDE);
prototype.setMidDecoration(new CrossDecoration(5));
toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, prototype);
toolAction.putValue(ToolAction.TOOL, mcTool);
controller.addToolAction(toolAction);
toolAction.setSelected(false);
tooButton = new ToolButton(toolAction);
this.add(tooButton);
this.addSeparator();
toolAction = new CreationToolAction();
toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"vp_contraint.png"));
toolAction.putValue(Action.SMALL_ICON, toolIcon);
toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a VP Constraint Figure");
toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new VPConstraintFigure());
toolAction.putValue(ToolAction.TOOL, vpcTool);
controller.addToolAction(toolAction);
toolAction.setSelected(false);
tooButton = new ToolButton(toolAction);
this.add(tooButton);
toolAction = new CreationToolAction();
toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"group_contraint.png"));
toolAction.putValue(Action.SMALL_ICON, toolIcon);
toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Group Constraint Figure");
toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new GroupConstraintFigure());
toolAction.putValue(ToolAction.TOOL, gcTool);
controller.addToolAction(toolAction);
toolAction.setSelected(false);
tooButton = new ToolButton(toolAction);
this.add(tooButton);
toolAction = new CreationToolAction();
toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"composite_contraint.png"));
toolAction.putValue(Action.SMALL_ICON, toolIcon);
toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Composite Constraint Figure");
toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new PLFigure());
toolAction.putValue(ToolAction.TOOL, plcTool);
controller.addToolAction(toolAction);
toolAction.setSelected(false);
tooButton = new ToolButton(toolAction);
this.add(tooButton);
toolAction = new ConnectionToolAction();
toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"c2f.png"));
toolAction.putValue(Action.SMALL_ICON, toolIcon);
toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Constraint Relation Figure");
toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new PLConnection());
toolAction.putValue(ToolAction.TOOL, plccTool);
controller.addToolAction(toolAction);
toolAction.setSelected(false);
tooButton = new ToolButton(toolAction);
this.add(tooButton);
toolAction = new ConnectionToolAction();
toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"c2fn.png"));
toolAction.putValue(Action.SMALL_ICON, toolIcon);
toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Negation Constraint Relation Figure");
toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new PLConnection(true));
toolAction.putValue(ToolAction.TOOL, plccTool);
controller.addToolAction(toolAction);
toolAction.setSelected(false);
tooButton = new ToolButton(toolAction);
this.add(tooButton);
/**
toolAction = new TextAreaToolAction();
toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"comment.png"));
toolAction.putValue(Action.SMALL_ICON, toolIcon);
toolAction.putValue(Action.SHORT_DESCRIPTION, "Create a Comment Figure");
toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, new TextAreaFigure());
toolAction.putValue(ToolAction.TOOL, new ConnectedTextAreaTool());
controller.addToolAction(toolAction);
toolAction.setSelected(false);
tooButton = new ToolButton(toolAction);
this.add(tooButton);
**/
this.addSeparator();
toolAction = new ConnectionToolAction();
toolIcon = new ImageIcon(new URL(WebConstantDefinition.RES_HOST+"interaction_connection.png"));
toolAction.putValue(Action.SMALL_ICON, toolIcon);
toolAction.putValue(Action.SHORT_DESCRIPTION, "Create an Interaction Figure");
InteractionConnection proto = new InteractionConnection();
toolAction.putValue(CreationToolAction.PROTOTYPE_FIGURE, proto);
proto.setEndDecoration(new ArrowTip());
toolAction.putValue(ToolAction.TOOL, icTool);
controller.addToolAction(toolAction);
toolAction.setSelected(false);
tooButton = new ToolButton(toolAction);
this.add(tooButton);