/** * If there is a line being dragged (ActiveLineSegmentDecorator) we want to add that line to the * objects b */ protected void refreshObjects() { if (model.items() == null) { error("Invalid Model!"); return; } message(model.items().length + " entities constructed"); int numK = model.computeIntersections(algorithm); message("Number of intersections:" + numK); message("Time to compute:" + algorithm.time()); getCanvas().redrawState(); getCanvas().repaint(); }