Esempio n. 1
0
 /**
  * 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();
 }
Esempio n. 2
0
 /**
  * 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();
 }