Exemplo n.º 1
0
 public void mouseDragged(MouseEvent e) {
   if (isEnabled()) {
     // System.out.println("LinkTool::mouseDragged");
     if (e.getSource() instanceof ONLGraphic)
       buttonAction.setIntermediate(e.getPoint(), (ONLGraphic) e.getSource());
   }
 }
Exemplo n.º 2
0
 public boolean isEnabled() {
   return buttonAction.isEnabled();
 }
Exemplo n.º 3
0
 public void setEnabled(boolean b) {
   if (!isOverride() || b) buttonAction.setEnabled(b);
 }
 /**
  * Handles the componentHidden event by invoking the componentHidden methods on listener-a and
  * listener-b.
  *
  * @param e the component event
  */
 public void componentHidden(ComponentEvent e) {
   ((ComponentListener) a).componentHidden(e);
   ((ComponentListener) b).componentHidden(e);
 }
 /**
  * Handles the componentMoved event by invoking the componentMoved methods on listener-a and
  * listener-b.
  *
  * @param e the component event
  */
 public void componentMoved(ComponentEvent e) {
   ((ComponentListener) a).componentMoved(e);
   ((ComponentListener) b).componentMoved(e);
 }