@Override
 protected void deactivate() {
   if (legacy) {
     view.removeMouseMotionListener(this);
     view.removeMouseListener(this);
   } else {
     AwtPenToolkit.removePenListener(view, this);
   }
 }
 @Override
 protected void activate() throws PropertyVetoException {
   if (legacy) {
     view.addMouseListener(this);
     view.addMouseMotionListener(this);
   } else {
     AwtPenToolkit.addPenListener(view, this);
   }
   // Prevent hanging modifiers
   altDown = ctrlDown = shiftDown = false;
 }