/** * React to changes in model by requesting new intersection of the model. * * @param model */ public void modelUpdated(algs.example.gui.model.Model<E> model) { Model<E> mod = (Model<E>) model; int numK = mod.intersections().size(); message("Number of intersections:" + numK); message("Time to compute:" + mod.algorithmTime()); getCanvas().redrawState(); getCanvas().repaint(); }