/* WARNING: THIS METHOD WILL BE REGENERATED. */
 private java.awt.Label getLabel1() {
   if (ivjLabel1 == null) {
     try {
       ivjLabel1 = new java.awt.Label();
       ivjLabel1.setName("Label1");
       ivjLabel1.setFont(new java.awt.Font("serif", 3, 24));
       ivjLabel1.setAlignment(java.awt.Label.CENTER);
       ivjLabel1.setText("Name not found!");
       ivjLabel1.setForeground(java.awt.Color.red);
       // user code begin {1}
       // user code end
     } catch (java.lang.Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjLabel1;
 }
Ejemplo n.º 2
0
 /**
  * Registers ChangeListeners and sets back references in <code>PanelModel</code> and its children.
  */
 private void repair() {
   // traverse PanelModel and create all event links
   Iterator iter = panelIterator();
   while (iter.hasNext()) {
     PanelHolder ph = (PanelHolder) iter.next();
     ph.removeAllChangeListeners();
     ph.addChangeListener(this);
     ph.setPanelModel(this);
     Iterator dgIter = ph.dataGroupIterator();
     while (dgIter.hasNext()) {
       DataGroup dg = (DataGroup) dgIter.next();
       dg.removeAllChangeListeners();
       dg.addChangeListener(ph);
       dg.setPanelHolder(ph);
       dg.getXAxisHolder().removeAllChangeListeners();
       dg.getXAxisHolder().addChangeListener(dg);
       dg.getXAxisHolder().setDataGroup(dg);
       dg.getYAxisHolder().removeAllChangeListeners();
       dg.getYAxisHolder().addChangeListener(dg);
       dg.getYAxisHolder().setDataGroup(dg);
     }
     Iterator lbIter = ph.labelIterator();
     while (lbIter.hasNext()) {
       Label lb = (Label) lbIter.next();
       lb.removeAllChangeListeners();
       lb.addChangeListener(ph);
       lb.setPanelHolder(ph);
     }
     Iterator lgIter = ph.legendIterator();
     while (lgIter.hasNext()) {
       Legend lg = (Legend) lgIter.next();
       lg.removeAllChangeListeners();
       lg.addChangeListener(ph);
       lg.setPanelHolder(ph);
     }
   }
 }