public View findNextView() { Collection<View> views = fvmap.viewCollection(); for (Iterator<View> eve = views.iterator(); eve.hasNext(); ) { if (vi == eve.next()) { while (eve.hasNext()) { View nview = eve.next(); if (nview.isTraverseable()) return nview; } for (View nv : views) if (nv.isTraverseable()) { return nv; } throw new RuntimeException("findNextView is confused"); } } throw new RuntimeException("findNextView cant find vi " + vi); }
public void idle() { for (View vi : fvmap.viewCollection()) vi.repaint(); }