/**
* The polyline is drawn, memorized in the history and sent to
* the other users.
*/
public void mouseReleased(Double point, int scaleX, int scaleY) {
Shape shape = new Polyline(points, color, chat.getMyJID());
chat.draw(shape);
points.clear();
board.setCurrentShape(null);
}