GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — FreeRouting/interactive/DynamicRouteState.java at master · nikropht/FreeRouting Expand file tree/ Copy pathDynamicRouteState.javaMore file actions 92 lines (83 loc) · 2.48 KB / Copy pathDynamicRouteState.javaFile metadata and controls92 lines (83 loc) · 2.48 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 /* * Copyright (C) 2014 Alfons Wirtz * website www.freerouting.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License at <http://www.gnu.org/licenses/> * for more details. * * DynamicRouteState.java * * Created on 8. Dezember 2003, 10:00 */ package interactive; import geometry.planar.FloatPoint; /** * State for dynamic interactive routing, which is routing while moving the mouse pointer. * * @author Alfons Wirtz */ public class DynamicRouteState extends RouteState { /** Creates a new instance of DynamicRouteState */ protected DynamicRouteState(InteractiveState p_parent_state, BoardHandling p_board_handling, Logfile p_logfile) { super(p_parent_state, p_board_handling, p_logfile); } public InteractiveState mouse_moved() { super.mouse_moved(); return add_corner(hdlg.get_current_mouse_position()); } /** * ends routing */ public InteractiveState left_button_clicked(FloatPoint p_location) { if (this.observers_activated) { hdlg.get_routing_board().end_notify_observers(); this.observers_activated = false; } if (logfile != null) { logfile.start_scope(LogfileScope.COMPLETE_SCOPE); } for (int curr_net_no : this.route.net_no_arr) { hdlg.update_ratsnest(curr_net_no); } return this.return_state; } /** * Action to be taken when a key is pressed (Shortcut). */ public InteractiveState key_typed(char p_key_char) { InteractiveState curr_return_state = this; if (p_key_char == 's') { hdlg.generate_snapshot(); } else { curr_return_state = super.key_typed(p_key_char); } return curr_return_state; } public javax.swing.JPopupMenu get_popup_menu() { return hdlg.get_panel().popup_menu_dynamic_route; } public String get_help_id() { return "RouteState_DynamicRouteState"; } } |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |