Changeset 134 in tmcsimulator-scriptbuilder for trunk/src/event/editor/frame/Properties.java
- Timestamp:
- 10/23/2017 05:27:01 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/event/editor/frame/Properties.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/event/editor/frame/Properties.java
r93 r134 6 6 import java.awt.Image; 7 7 import java.awt.image.BufferedImage; 8 import scriptbuilder.structures.ScriptEvent; 9 import scriptbuilder.structures.ScriptEvent; 10 import scriptbuilder.structures.events.*; 11 import scriptbuilder.structures.events.I_ScriptEvent; 8 12 9 13 public enum Properties 10 14 { 11 15 ATMS ("ATMS", PropertyTypes.Optional, 12 loadImage(Images.getImage("ATMSEval.png")) ),16 loadImage(Images.getImage("ATMSEval.png")), new ATMSEvaluationEvent()), 13 17 ActivityLog ("Activity Log", PropertyTypes.Optional, 14 loadImage(Images.getImage("ActivityLogEval.png")) ),18 loadImage(Images.getImage("ActivityLogEval.png")), new ActivityLogEvaluationEvent()), 15 19 CAD ("CAD", PropertyTypes.Optional, 16 loadImage(Images.getImage("CADEval.png")) ),20 loadImage(Images.getImage("CADEval.png")), new CADEvaluationEvent()), 17 21 Facilitator ("Faciliatator", PropertyTypes.Optional, 18 loadImage(Images.getImage("FacilitatorEval.png")) ),22 loadImage(Images.getImage("FacilitatorEval.png")), new FacilitatorEvaluationEvent()), 19 23 Radio ("Radio", PropertyTypes.Optional, 20 loadImage(Images.getImage("RadioEval.png")) ),24 loadImage(Images.getImage("RadioEval.png")), new RadioEvaluationEvent()), 21 25 MaintenanceRadio ("Maintenance Radio", PropertyTypes.Optional, 22 loadImage(Images.getImage("MaintenanceRadio.png")) ),26 loadImage(Images.getImage("MaintenanceRadio.png")), new MaintenanceRadioEvent()), 23 27 TMTRadio ("TMT Radio", PropertyTypes.Optional, 24 loadImage(Images.getImage("TMTRadio.png")) ),28 loadImage(Images.getImage("TMTRadio.png")), new TMTRadioEvent()), 25 29 Telephone ("Telephone", PropertyTypes.Optional, 26 loadImage(Images.getImage("Telephone.png")) ),30 loadImage(Images.getImage("Telephone.png")), new TelephoneEvent()), 27 31 CHPRadio ("CHP Radio",PropertyTypes.Optional, 28 loadImage(Images.getImage("CHPRadio.png")) ),32 loadImage(Images.getImage("CHPRadio.png")), new CHPRadioEvent()), 29 33 CMS ("CMS", PropertyTypes.Multiple, 30 loadImage(Images.getImage("CMSEval.png")) ),34 loadImage(Images.getImage("CMSEval.png")), new CMSEvaluationEvent()), 31 35 Audio ("Audio", PropertyTypes.Multiple, 32 loadImage(Images.getImage("Audio.png")) ),36 loadImage(Images.getImage("Audio.png")), new AudioEvent()), 33 37 CCTV ("CCTV", PropertyTypes.Multiple, 34 loadImage(Images.getImage("CCTV.png")) ),38 loadImage(Images.getImage("CCTV.png")), new CCTVEvent()), 35 39 CADLog ("CAD Log", PropertyTypes.Multiple, 36 loadImage(Images.getImage("CAD.png")) ),40 loadImage(Images.getImage("CAD.png")), new CADEvent()), 37 41 Paramics ("Paramics", PropertyTypes.Multiple, 38 loadImage(Images.getImage("Paramics.png")) ),42 loadImage(Images.getImage("Paramics.png")), new ParamicsEvent()), 39 43 Tow ("Tow", PropertyTypes.Multiple, 40 loadImage(Images.getImage("Tow.png")) ),44 loadImage(Images.getImage("Tow.png")), new TowEvent()), 41 45 Unit ("Unit", PropertyTypes.Multiple, 42 loadImage(Images.getImage("Unit.png")) ),46 loadImage(Images.getImage("Unit.png")), new UnitEvent()), 43 47 Witness ("Witness", PropertyTypes.Multiple, 44 loadImage(Images.getImage("Witness.png")) );48 loadImage(Images.getImage("Witness.png")), new WitnessEvent()); 45 49 46 50 private String title; 47 51 private PropertyTypes type; 48 52 private ImageIcon image; 53 private I_ScriptEvent sevt; 49 54 50 private Properties(String theTitle, PropertyTypes theType, ImageIcon theImage )55 private Properties(String theTitle, PropertyTypes theType, ImageIcon theImage, I_ScriptEvent se) 51 56 { 52 57 title = theTitle; 53 58 type = theType; 54 59 image = theImage; 60 sevt = se; 55 61 } 56 62 … … 58 64 { 59 65 return title; 66 } 67 68 public I_ScriptEvent getEvent() 69 { 70 return ScriptEvent.factoryByType(sevt.getScriptEventType()); 60 71 } 61 72
Note: See TracChangeset
for help on using the changeset viewer.
