Commit 77ae32d9 authored by apvrille's avatar apvrille

Update on atd countermeasures: icons

parent 287a0375
#Java code generated from TURTLE models
To compile the jttool package, do as follows:
* go into the jttool directory, and type: javac*.java
* go up one directory, and do rmic jttool.Transfer
\ No newline at end of file
* go up one directory, and do rmic jttool.Transfer
......@@ -116,7 +116,7 @@ public class IconManager {
// Attack Tree Diagrams
public static ImageIcon imgic1070, imgic1072, imgic1074, imgic1076, imgic1078;
public static ImageIcon imgic1080, imgic1082;
public static ImageIcon imgic1080, imgic1082, imgic1084;
// TMLDD
public static ImageIcon imgic1100, imgic1102, imgic1104, imgic1106, imgic1108;
......@@ -473,6 +473,7 @@ public class IconManager {
private static String icon1078 = "images/atdcons.gif";
private static String icon1080 = "images/atdlink.gif";
private static String icon1082 = "images/atdcountermeasure.gif";
private static String icon1084 = "images/atdcountermeasureconnector.gif";
// DIPLODOCUS architecture
private static String icon1100 = "images/tmlcpunode.gif";
......@@ -891,6 +892,7 @@ public class IconManager {
imgic1078 = getIcon(icon1078);
imgic1080 = getIcon(icon1080);
imgic1082 = getIcon(icon1082);
imgic1084 = getIcon(icon1084);
imgic1100 = getIcon(icon1100);
imgic1102 = getIcon(icon1102);
......
......@@ -1076,7 +1076,7 @@ public class TGUIAction extends AbstractAction {
actions[ATD_COMPOSITION_CONNECTOR] = new TAction("atd-composition-connector", "Add a composition connector between blocks", IconManager.imgic1076, IconManager.imgic1076, "Composition connector", "Add a composition between blocks of the currently opened attack tree diagram", 0);
actions[ATD_CONSTRAINT] = new TAction("atd-constraint", "Add an constraint", IconManager.imgic1078, IconManager.imgic1078, "Constraint", "Add a constraint to the currently opened attack tree diagram", 0);
actions[ATD_COUNTERMEASURE] = new TAction("atd-countermeasure", "Add a countermeasure", IconManager.imgic1082, IconManager.imgic1082, "Countermeasure", "Add a countermeasure to the currently opened attack tree diagram", 0);
actions[ATD_COUNTERMEASURE_CONNECTOR] = new TAction("atd-countermeasure-connector", "Add a connector between attacks / countermeasures", IconManager.imgic1080, IconManager.imgic1080, "Connector", "Add a connector between attacks / countermeasures of the currently opened attack tree diagram", 0);
actions[ATD_COUNTERMEASURE_CONNECTOR] = new TAction("atd-countermeasure-connector", "Add a connector between attacks / countermeasures", IconManager.imgic1084, IconManager.imgic1084, "Connect countermeasure", "Add a connector between attacks / countermeasures of the currently opened attack tree diagram", 0);
// TURTLE-OS
actions[TOS_TCLASS] = new TAction("add-tclass-os", "Add Tclass", IconManager.imgic104, IconManager.imgic104, "Tclass", "Add a TClass to the currently opened class diagram", 0);
......
......@@ -67,6 +67,8 @@ public class ATDCountermeasure extends TGCScalableWithInternalComponent implemen
protected String description = "";
private String stereotype = "countermeasure";
private static int decPar = 20;
private static int maxFontSize = 14;
private static int minFontSize = 4;
private int currentFontSize = -1;
......@@ -137,8 +139,9 @@ public class ATDCountermeasure extends TGCScalableWithInternalComponent implemen
setValue(value, g);
}
}
// Core of the attack
// Core of the countermeasure
Color c = g.getColor();
Polygon p = new Polygon();
g.draw3DRect(x, y, width, height, true);
g.setColor(ColorManager.ATD_COUNTERMEASURE);
......
src/ui/images/atdlink.gif

120 Bytes | W: | H:

src/ui/images/atdlink.gif

118 Bytes | W: | H:

src/ui/images/atdlink.gif
src/ui/images/atdlink.gif
src/ui/images/atdlink.gif
src/ui/images/atdlink.gif
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment