/** * Remove the graph item from the graph. * * @param graphItem Item to be removed from the graph. */ public void removeGraphItem(GraphItem graphItem) { graphItems.removeElement(graphItem); graphItem.removeGraphItemListener(graphItemListener); repaint(); }