Changeset 30737 in osm for applications/editors/josm/plugins/smed/src/panels
- Timestamp:
- 2014-10-18T23:07:52+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/smed/src/panels
- Files:
-
- 15 edited
-
PanelChr.java (modified) (1 diff)
-
PanelCol.java (modified) (2 diffs)
-
PanelFog.java (modified) (1 diff)
-
PanelHaz.java (modified) (1 diff)
-
PanelLights.java (modified) (10 diffs)
-
PanelLit.java (modified) (3 diffs)
-
PanelMore.java (modified) (4 diffs)
-
PanelPat.java (modified) (1 diff)
-
PanelPort.java (modified) (1 diff)
-
PanelRadar.java (modified) (2 diffs)
-
PanelSaw.java (modified) (1 diff)
-
PanelSectors.java (modified) (1 diff)
-
PanelSpec.java (modified) (3 diffs)
-
PanelStbd.java (modified) (1 diff)
-
PanelTop.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/src/panels/PanelChr.java
r29894 r30737 36 36 public JToggleButton morseButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/MorseButton.png"))); 37 37 public JToggleButton alternatingButton = new JToggleButton(new ImageIcon(getClass().getResource("/images/AlternatingButton.png"))); 38 private EnumMap<Chr, JToggleButton> buttons = new EnumMap< Chr, JToggleButton>(Chr.class);38 private EnumMap<Chr, JToggleButton> buttons = new EnumMap<>(Chr.class); 39 39 private ActionListener alCharButton = new ActionListener() { 40 40 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelCol.java
r29894 r30737 34 34 public JRadioButton magentaButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/MagentaButton.png"))); 35 35 public JRadioButton pinkButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PinkButton.png"))); 36 public EnumMap<Col, JRadioButton> colours = new EnumMap< Col, JRadioButton>(Col.class);36 public EnumMap<Col, JRadioButton> colours = new EnumMap<>(Col.class); 37 37 private ActionListener alColour = new ActionListener() { 38 38 public void actionPerformed(java.awt.event.ActionEvent e) { … … 94 94 private JPanel stack; 95 95 private ButtonGroup stackColours = new ButtonGroup(); 96 private ArrayList<JRadioButton> stackCol = new ArrayList< JRadioButton>();96 private ArrayList<JRadioButton> stackCol = new ArrayList<>(); 97 97 private int stackIdx = 0; 98 98 private ActionListener alStack = new ActionListener() { -
applications/editors/josm/plugins/smed/src/panels/PanelFog.java
r29894 r30737 24 24 public JRadioButton gongButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FogGongButton.png"))); 25 25 public JRadioButton explosButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FogExplosButton.png"))); 26 private EnumMap<Fog, JRadioButton> fogs = new EnumMap< Fog, JRadioButton>(Fog.class);26 private EnumMap<Fog, JRadioButton> fogs = new EnumMap<>(Fog.class); 27 27 private ActionListener alFog = new ActionListener() { 28 28 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelHaz.java
r29894 r30737 82 82 public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BeaconButton.png"))); 83 83 public JRadioButton towerButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TowerButton.png"))); 84 public EnumMap<Shp, JRadioButton> shapes = new EnumMap< Shp, JRadioButton>(Shp.class);85 public EnumMap<Shp, Obj> carObjects = new EnumMap< Shp, Obj>(Shp.class);86 public EnumMap<Shp, Obj> isdObjects = new EnumMap< Shp, Obj>(Shp.class);84 public EnumMap<Shp, JRadioButton> shapes = new EnumMap<>(Shp.class); 85 public EnumMap<Shp, Obj> carObjects = new EnumMap<>(Shp.class); 86 public EnumMap<Shp, Obj> isdObjects = new EnumMap<>(Shp.class); 87 87 private ActionListener alShape = new ActionListener() { 88 88 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelLights.java
r30532 r30737 19 19 20 20 public JComboBox<String> landCatBox; 21 public EnumMap<Cat, Integer> landCats = new EnumMap< Cat, Integer>(Cat.class);21 public EnumMap<Cat, Integer> landCats = new EnumMap<>(Cat.class); 22 22 private ActionListener alLandCatBox = new ActionListener() { 23 23 public void actionPerformed(java.awt.event.ActionEvent e) { … … 32 32 }; 33 33 public JComboBox<String> trafficCatBox; 34 public EnumMap<Cat, Integer> trafficCats = new EnumMap< Cat, Integer>(Cat.class);34 public EnumMap<Cat, Integer> trafficCats = new EnumMap<>(Cat.class); 35 35 private ActionListener alTrafficCatBox = new ActionListener() { 36 36 public void actionPerformed(java.awt.event.ActionEvent e) { … … 45 45 }; 46 46 public JComboBox<String> warningCatBox; 47 public EnumMap<Cat, Integer> warningCats = new EnumMap< Cat, Integer>(Cat.class);47 public EnumMap<Cat, Integer> warningCats = new EnumMap<>(Cat.class); 48 48 private ActionListener alWarningCatBox = new ActionListener() { 49 49 public void actionPerformed(java.awt.event.ActionEvent e) { … … 58 58 }; 59 59 public JComboBox<String> platformCatBox; 60 public EnumMap<Cat, Integer> platformCats = new EnumMap< Cat, Integer>(Cat.class);60 public EnumMap<Cat, Integer> platformCats = new EnumMap<>(Cat.class); 61 61 private ActionListener alPlatformCatBox = new ActionListener() { 62 62 public void actionPerformed(java.awt.event.ActionEvent e) { … … 71 71 }; 72 72 public JComboBox<String> pilotCatBox; 73 public EnumMap<Cat, Integer> pilotCats = new EnumMap< Cat, Integer>(Cat.class);73 public EnumMap<Cat, Integer> pilotCats = new EnumMap<>(Cat.class); 74 74 private ActionListener alPilotCatBox = new ActionListener() { 75 75 public void actionPerformed(java.awt.event.ActionEvent e) { … … 84 84 }; 85 85 public JComboBox<String> rescueCatBox; 86 public EnumMap<Cat, Integer> rescueCats = new EnumMap< Cat, Integer>(Cat.class);86 public EnumMap<Cat, Integer> rescueCats = new EnumMap<>(Cat.class); 87 87 private ActionListener alRescueCatBox = new ActionListener() { 88 88 public void actionPerformed(java.awt.event.ActionEvent e) { … … 97 97 }; 98 98 public JComboBox<String> radioCatBox; 99 public EnumMap<Cat, Integer> radioCats = new EnumMap< Cat, Integer>(Cat.class);99 public EnumMap<Cat, Integer> radioCats = new EnumMap<>(Cat.class); 100 100 private ActionListener alRadioCatBox = new ActionListener() { 101 101 public void actionPerformed(java.awt.event.ActionEvent e) { … … 110 110 }; 111 111 public JComboBox<String> radarCatBox; 112 public EnumMap<Cat, Integer> radarCats = new EnumMap< Cat, Integer>(Cat.class);112 public EnumMap<Cat, Integer> radarCats = new EnumMap<>(Cat.class); 113 113 private ActionListener alRadarCatBox = new ActionListener() { 114 114 public void actionPerformed(java.awt.event.ActionEvent e) { … … 124 124 public JLabel functionLabel; 125 125 public JComboBox<String> functionBox; 126 public EnumMap<Fnc, Integer> functions = new EnumMap< Fnc, Integer>(Fnc.class);126 public EnumMap<Fnc, Integer> functions = new EnumMap<>(Fnc.class); 127 127 private ActionListener alfunctionBox = new ActionListener() { 128 128 public void actionPerformed(java.awt.event.ActionEvent e) { … … 151 151 public JRadioButton radioButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RadioStationButton.png"))); 152 152 public JRadioButton radarButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RadarStationButton.png"))); 153 public EnumMap<Obj, JRadioButton> objects = new EnumMap< Obj, JRadioButton>(Obj.class);153 public EnumMap<Obj, JRadioButton> objects = new EnumMap<>(Obj.class); 154 154 private ActionListener alObj = new ActionListener() { 155 155 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelLit.java
r30532 r30737 40 40 public JLabel visibilityLabel; 41 41 public JComboBox<String> visibilityBox; 42 public EnumMap<Vis, Integer> visibilities = new EnumMap< Vis, Integer>(Vis.class);42 public EnumMap<Vis, Integer> visibilities = new EnumMap<>(Vis.class); 43 43 private ActionListener alVisibility = new ActionListener() { 44 44 public void actionPerformed(java.awt.event.ActionEvent e) { … … 80 80 public JLabel categoryLabel; 81 81 public JComboBox<String> categoryBox; 82 public EnumMap<Lit, Integer> categories = new EnumMap< Lit, Integer>(Lit.class);82 public EnumMap<Lit, Integer> categories = new EnumMap<>(Lit.class); 83 83 private ActionListener alCategory = new ActionListener() { 84 84 public void actionPerformed(java.awt.event.ActionEvent e) { … … 116 116 public JLabel exhibitionLabel; 117 117 public JComboBox<String> exhibitionBox; 118 public EnumMap<Exh, Integer> exhibitions = new EnumMap< Exh, Integer>(Exh.class);118 public EnumMap<Exh, Integer> exhibitions = new EnumMap<>(Exh.class); 119 119 private ActionListener alExhibition = new ActionListener() { 120 120 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelMore.java
r30532 r30737 45 45 public JLabel statusLabel; 46 46 public JComboBox<String> statusBox; 47 public EnumMap<Sts, Integer> statuses = new EnumMap< Sts, Integer>(Sts.class);47 public EnumMap<Sts, Integer> statuses = new EnumMap<>(Sts.class); 48 48 private ActionListener alStatus = new ActionListener() { 49 49 public void actionPerformed(java.awt.event.ActionEvent e) { … … 57 57 public JLabel constrLabel; 58 58 public JComboBox<String> constrBox; 59 public EnumMap<Cns, Integer> constructions = new EnumMap< Cns, Integer>(Cns.class);59 public EnumMap<Cns, Integer> constructions = new EnumMap<>(Cns.class); 60 60 private ActionListener alConstr = new ActionListener() { 61 61 public void actionPerformed(java.awt.event.ActionEvent e) { … … 69 69 public JLabel conLabel; 70 70 public JComboBox<String> conBox; 71 public EnumMap<Con, Integer> conspicuities = new EnumMap< Con, Integer>(Con.class);71 public EnumMap<Con, Integer> conspicuities = new EnumMap<>(Con.class); 72 72 private ActionListener alCon = new ActionListener() { 73 73 public void actionPerformed(java.awt.event.ActionEvent e) { … … 81 81 public JLabel reflLabel; 82 82 public JComboBox<String> reflBox; 83 public EnumMap<Con, Integer> reflectivities = new EnumMap< Con, Integer>(Con.class);83 public EnumMap<Con, Integer> reflectivities = new EnumMap<>(Con.class); 84 84 private ActionListener alRefl = new ActionListener() { 85 85 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelPat.java
r29894 r30737 25 25 public JRadioButton squareButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SquaredButton.png"))); 26 26 public JRadioButton borderButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BorderButton.png"))); 27 public EnumMap<Pat, JRadioButton> patterns = new EnumMap< Pat, JRadioButton>(Pat.class);27 public EnumMap<Pat, JRadioButton> patterns = new EnumMap<>(Pat.class); 28 28 private ActionListener alPat = new ActionListener() { 29 29 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelPort.java
r29894 r30737 24 24 public JRadioButton perchButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PerchPButton.png"))); 25 25 public JRadioButton stakeButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/StakeButton.png"))); 26 public EnumMap<Shp, JRadioButton> shapes = new EnumMap< Shp, JRadioButton>(Shp.class);27 public EnumMap<Shp, Obj> objects = new EnumMap< Shp, Obj>(Shp.class);26 public EnumMap<Shp, JRadioButton> shapes = new EnumMap<>(Shp.class); 27 public EnumMap<Shp, Obj> objects = new EnumMap<>(Shp.class); 28 28 public ActionListener alShape = new ActionListener() { 29 29 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelRadar.java
r30532 r30737 29 29 }; 30 30 private JComboBox<String> radioCatBox; 31 private EnumMap<Cat, Integer> radioCats = new EnumMap< Cat, Integer>(Cat.class);31 private EnumMap<Cat, Integer> radioCats = new EnumMap<>(Cat.class); 32 32 private ActionListener alRadioCatBox = new ActionListener() { 33 33 public void actionPerformed(java.awt.event.ActionEvent e) { … … 46 46 public JRadioButton raconButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RaconButton.png"))); 47 47 public JRadioButton leadingButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/LeadingRaconButton.png"))); 48 private EnumMap<Rtb, JRadioButton> rads = new EnumMap< Rtb, JRadioButton>(Rtb.class);48 private EnumMap<Rtb, JRadioButton> rads = new EnumMap<>(Rtb.class); 49 49 private ActionListener alRad = new ActionListener() { 50 50 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelSaw.java
r29894 r30737 20 20 public JRadioButton floatButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/FloatButton.png"))); 21 21 public JRadioButton beaconButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BeaconButton.png"))); 22 public EnumMap<Shp, JRadioButton> shapes = new EnumMap< Shp, JRadioButton>(Shp.class);23 public EnumMap<Shp, Obj> objects = new EnumMap< Shp, Obj>(Shp.class);22 public EnumMap<Shp, JRadioButton> shapes = new EnumMap<>(Shp.class); 23 public EnumMap<Shp, Obj> objects = new EnumMap<>(Shp.class); 24 24 public ActionListener alShape = new ActionListener() { 25 25 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelSectors.java
r30532 r30737 37 37 }; 38 38 public JComboBox<ImageIcon> colourBox; 39 public EnumMap<Col, ImageIcon> colours = new EnumMap< Col, ImageIcon>(Col.class);39 public EnumMap<Col, ImageIcon> colours = new EnumMap<>(Col.class); 40 40 public JComboBox<String> visibilityBox; 41 public EnumMap<Vis, String> visibilities = new EnumMap< Vis, String>(Vis.class);41 public EnumMap<Vis, String> visibilities = new EnumMap<>(Vis.class); 42 42 public JComboBox<String> exhibitionBox; 43 public EnumMap<Exh, String> exhibitions = new EnumMap< Exh, String>(Exh.class);43 public EnumMap<Exh, String> exhibitions = new EnumMap<>(Exh.class); 44 44 45 45 public PanelSectors(SmedAction dia) { -
applications/editors/josm/plugins/smed/src/panels/PanelSpec.java
r30532 r30737 18 18 public JLabel categoryLabel; 19 19 public JComboBox<String> categoryBox; 20 public EnumMap<Cat, Integer> categories = new EnumMap< Cat, Integer>(Cat.class);20 public EnumMap<Cat, Integer> categories = new EnumMap<>(Cat.class); 21 21 private ActionListener alCategoryBox = new ActionListener() { 22 22 public void actionPerformed(java.awt.event.ActionEvent e) { … … 29 29 }; 30 30 public JComboBox<String> mooringBox; 31 public EnumMap<Cat, Integer> moorings = new EnumMap< Cat, Integer>(Cat.class);31 public EnumMap<Cat, Integer> moorings = new EnumMap<>(Cat.class); 32 32 private ActionListener alMooringBox = new ActionListener() { 33 33 public void actionPerformed(java.awt.event.ActionEvent e) { … … 62 62 public JRadioButton stakeButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/StakeButton.png"))); 63 63 public JRadioButton cairnButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CairnButton.png"))); 64 public EnumMap<Shp, JRadioButton> shapes = new EnumMap< Shp, JRadioButton>(Shp.class);65 public EnumMap<Shp, Obj> objects = new EnumMap< Shp, Obj>(Shp.class);64 public EnumMap<Shp, JRadioButton> shapes = new EnumMap<>(Shp.class); 65 public EnumMap<Shp, Obj> objects = new EnumMap<>(Shp.class); 66 66 public ActionListener alShape = new ActionListener() { 67 67 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelStbd.java
r29894 r30737 24 24 public JRadioButton perchButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/PerchSButton.png"))); 25 25 public JRadioButton stakeButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/StakeButton.png"))); 26 public EnumMap<Shp, JRadioButton> shapes = new EnumMap< Shp, JRadioButton>(Shp.class);27 public EnumMap<Shp, Obj> objects = new EnumMap< Shp, Obj>(Shp.class);26 public EnumMap<Shp, JRadioButton> shapes = new EnumMap<>(Shp.class); 27 public EnumMap<Shp, Obj> objects = new EnumMap<>(Shp.class); 28 28 public ActionListener alShape = new ActionListener() { 29 29 public void actionPerformed(java.awt.event.ActionEvent e) { -
applications/editors/josm/plugins/smed/src/panels/PanelTop.java
r29894 r30737 32 32 public JRadioButton squareDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/SquareDayButton.png"))); 33 33 public JRadioButton circleDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/CircleDayButton.png"))); 34 private EnumMap<Top, JRadioButton> tops = new EnumMap< Top, JRadioButton>(Top.class);34 private EnumMap<Top, JRadioButton> tops = new EnumMap<>(Top.class); 35 35 private ActionListener alTop = new ActionListener() { 36 36 public void actionPerformed(java.awt.event.ActionEvent e) {
Note:
See TracChangeset
for help on using the changeset viewer.
