/** * Add the graph item to the graph. * * @param graphItem Item to be added to the graph. */ public void addGraphItem(GraphItem graphItem) { if (graphItem != null) { graphItems.addElement(graphItem); graphItem.addGraphItemListener(graphItemListener); } repaint(); }