コード例 #1
0
 // mouse handling stuff
 public void mouseClicked(MouseEvent e) {
   if (isEnabled()) {
     for (int i = 0; i < listeners.size(); i++) {
       ((ActionListener) listeners.elementAt(i))
           .actionPerformed(
               new AffectButtonActionEvent(this, actionCommand, 1, p, a, d, "no label"));
     }
     viz.clicked(5);
     System.out.println(p + "," + a + "," + d);
   }
 }
コード例 #2
0
 public void mouseClicked(MouseEvent e) {
   for (int i = 0; i < listeners.size(); i++) {
     ((ActionListener) listeners.elementAt(i))
         .actionPerformed(
             new AffectButtonActionEvent(
                 this,
                 actionCommand,
                 getEmotionId(p, a, d),
                 p,
                 a,
                 d,
                 emotionEvents[getEmotionId(p, a, d)]));
   }
   viz.clicked(5);
 }