/** * Will add a new location to the current structures, possibly triggering an auto-routing. * * @param loc String of the location to be entered. Will be checked! */ public void checkpointinbox() { // table中每一個點都送入map中,檢查是否符合範圍 LocationEntry tmpEntry; for (int i = routeFlow2.size() - 1; i >= 0; i--) { tmpEntry = routeFlow2.getEntry(i); if (!WUF.mPanel.pointinbox(tmpEntry.n.y, tmpEntry.n.x)) { routeFlow2.remove(tmpEntry); WUF.mPanel.RemoveOverlay(tmpEntry.n.name); } } return; }