01: package org.osbl.riskmanagement.gui;
02:
03: import org.osbl.client.wings.XIcons;
04: import org.osbl.riskmanagement.model.Criticality;
05: import org.wings.SIcon;
06: import org.wings.SURLIcon;
07:
08: import java.util.Map;
09: import java.util.HashMap;
10:
11: public class RiskManagementIcons extends XIcons {
12: public static final SIcon RISKTYPE = new SURLIcon(
13: "../icon/16x16/risktype.png", 16, 16);
14: public static final SIcon CLASSIFICATION = new SURLIcon(
15: "../icon/16x16/organisation.png", 16, 16);
16:
17: public static final SIcon LIGHT_OFF = new SURLIcon(
18: "../icon/16x16/light_off.png", 16, 16);
19: public static final SIcon LIGHT_GREEN = new SURLIcon(
20: "../icon/16x16/light_green.png", 16, 16);
21: public static final SIcon LIGHT_YELLOW = new SURLIcon(
22: "../icon/16x16/light_yellow.png", 16, 16);
23: public static final SIcon LIGHT_ORANGE = new SURLIcon(
24: "../icon/16x16/light_orange.png", 16, 16);
25: public static final SIcon LIGHT_RED = new SURLIcon(
26: "../icon/16x16/light_red.png", 16, 16);
27:
28: public static final Map<Object, SIcon> ICONS = new HashMap<Object, SIcon>(
29: 4);
30: static {
31: ICONS.put(Criticality.UNKNOWN, LIGHT_OFF);
32: ICONS.put(Criticality.LOW, LIGHT_GREEN);
33: ICONS.put(Criticality.MEDIUM, LIGHT_YELLOW);
34: ICONS.put(Criticality.HIGH, LIGHT_ORANGE);
35: ICONS.put(Criticality.CRITICAL, LIGHT_RED);
36: }
37: }
|