Changeset 31114 in osm for applications/editors/josm/plugins/public_transport/src
- Timestamp:
- 2015-05-03T18:52:19+02:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/public_transport/src/public_transport
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/public_transport/src/public_transport/GTFSImporterAction.java
r30701 r31114 67 67 } 68 68 69 public void actionPerformed(ActionEvent event) { 69 @Override 70 public void actionPerformed(ActionEvent event) { 70 71 71 72 if (dialog == null) … … 316 317 return; 317 318 box.enlargeBoundingBox(); 318 Main.map.mapView. recalculateCenterScale(box);319 Main.map.mapView.zoomTo(box); 319 320 } 320 321 … … 357 358 private class FocusAddAction extends AbstractAction 358 359 { 360 @Override 359 361 public void actionPerformed(ActionEvent e) 360 362 { -
applications/editors/josm/plugins/public_transport/src/public_transport/RoutePatternAction.java
r30532 r31114 64 64 } 65 65 66 @Override 66 67 public void valueChanged(ListSelectionEvent e) { 67 68 root.routesSelectionChanged(); … … 76 77 } 77 78 79 @Override 78 80 public int compareTo(RouteReference rr) { 79 81 if (route.get("route") != null) … … 124 126 } 125 127 128 @Override 126 129 public String toString() { 127 130 String buf = route.get("route"); … … 162 165 } 163 166 167 @Override 164 168 public boolean isCellEditable(int row, int column) { 165 169 if ((column == 0) && (hasFixedKeys)) … … 207 211 } 208 212 213 @Override 209 214 public void tableChanged(TableModelEvent e) 210 215 { … … 242 247 } 243 248 249 @Override 244 250 public TableCellEditor getCellEditor(int row, int column) { 245 251 TableCellEditor editor = null; … … 266 272 public Vector<Node> nodes = new Vector<Node>(); 267 273 274 @Override 268 275 public boolean isCellEditable(int row, int column) { 269 276 if (column != STOPLIST_ROLE_COLUMN) … … 272 279 } 273 280 281 @Override 274 282 public void addRow(Object[] obj) { 275 283 throw new UnsupportedOperationException(); 276 284 } 277 285 286 @Override 278 287 public void insertRow(int insPos, Object[] obj) { 279 288 throw new UnsupportedOperationException(); … … 323 332 324 333 private class StoplistTableModelListener implements TableModelListener { 334 @Override 325 335 public void tableChanged(TableModelEvent e) 326 336 { … … 383 393 } 384 394 395 @Override 385 396 public int compareTo(StopReference sr) { 386 397 if (this.index < sr.index) … … 426 437 } 427 438 428 public void actionPerformed(ActionEvent event) { 439 @Override 440 public void actionPerformed(ActionEvent event) { 429 441 Frame frame = JOptionPane.getFrameForComponent(Main.parent); 430 442 DataSet mainDataSet = Main.main.getCurrentDataSet(); … … 1078 1090 for (int i = 0; i < relsListModel.size(); ++i) 1079 1091 { 1080 if (currentRoute == ((RouteReference)relsListModel.elementAt(i)).route)1092 if (currentRoute == relsListModel.elementAt(i).route) 1081 1093 relsList.setSelectedIndex(i); 1082 1094 } … … 1093 1105 for (int i = 0; i < relsListModel.size(); ++i) 1094 1106 { 1095 if (currentRoute == ((RouteReference)relsListModel.elementAt(i)).route)1107 if (currentRoute == relsListModel.elementAt(i).route) 1096 1108 relsList.setSelectedIndex(i); 1097 1109 } … … 1151 1163 for (int i = 0; i < relsListModel.size(); ++i) 1152 1164 { 1153 if (currentRoute == ((RouteReference)relsListModel.elementAt(i)).route)1165 if (currentRoute == relsListModel.elementAt(i).route) 1154 1166 relsList.setSelectedIndex(i); 1155 1167 } … … 1231 1243 return; 1232 1244 box.enlargeBoundingBox(); 1233 Main.map.mapView. recalculateCenterScale(box);1245 Main.map.mapView.zoomTo(box); 1234 1246 } 1235 1247 else if ("routePattern.itineraryMark".equals(event.getActionCommand())) … … 1514 1526 return; 1515 1527 box.enlargeBoundingBox(); 1516 Main.map.mapView. recalculateCenterScale(box);1528 Main.map.mapView.zoomTo(box); 1517 1529 } 1518 1530 else if ("routePattern.stoplistMark".equals(event.getActionCommand())) … … 2064 2076 if (relsList.isSelectedIndex(selectedPos)) 2065 2077 { 2066 currentRoute = ((RouteReference)relsListModel.elementAt(selectedPos)).route;2078 currentRoute = relsListModel.elementAt(selectedPos).route; 2067 2079 tabbedPane.setEnabledAt(1, true); 2068 2080 tabbedPane.setEnabledAt(2, true); … … 2163 2175 if (!(way.isIncomplete())) 2164 2176 { 2165 if ("backward".equals(( String)(itineraryData.getValueAt(i, 1))))2177 if ("backward".equals((itineraryData.getValueAt(i, 1)))) 2166 2178 { 2167 2179 for (int j = way.getNodesCount()-2; j >= 0; --j) -
applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java
r30532 r31114 74 74 } 75 75 76 public void actionPerformed(ActionEvent event) 76 @Override 77 public void actionPerformed(ActionEvent event) 77 78 { 78 79 if (dialog == null) … … 246 247 if (selectedPos >= 0) 247 248 { 248 currentTrack = ( (TrackReference)tracksListModel.elementAt(selectedPos));249 currentTrack = (tracksListModel.elementAt(selectedPos)); 249 250 dialog.setTrackValid(true); 250 251 … … 256 257 //Prepare Stoplist 257 258 dialog.setStoplistTableModel 258 ( ((TrackReference)tracksListModel.elementAt(selectedPos)).stoplistTM);259 (tracksListModel.elementAt(selectedPos).stoplistTM); 259 260 } 260 261 else … … 354 355 return; 355 356 box.enlargeBoundingBox(); 356 Main.map.mapView. recalculateCenterScale(box);357 Main.map.mapView.zoomTo(box); 357 358 } 358 359 … … 402 403 return new AbstractAction() 403 404 { 404 public void actionPerformed(ActionEvent e) 405 @Override 406 public void actionPerformed(ActionEvent e) 405 407 { 406 408 JTable table = dialog.getWaypointsTable(); … … 430 432 return new AbstractAction() 431 433 { 432 public void actionPerformed(ActionEvent e) 434 @Override 435 public void actionPerformed(ActionEvent e) 433 436 { 434 437 JTable table = dialog.getStoplistTable(); … … 446 449 private class FocusWaypointNameAction extends AbstractAction 447 450 { 451 @Override 448 452 public void actionPerformed(ActionEvent e) 449 453 { … … 476 480 } 477 481 482 @Override 478 483 public void actionPerformed(ActionEvent e) 479 484 { … … 499 504 private class FocusTrackStoplistNameAction extends AbstractAction 500 505 { 506 @Override 501 507 public void actionPerformed(ActionEvent e) 502 508 { … … 529 535 } 530 536 537 @Override 531 538 public void actionPerformed(ActionEvent e) 532 539 {
Note:
See TracChangeset
for help on using the changeset viewer.