if ((modifiers & EventModifier.NEW_MASK) != 0) { int mod = modifiers; if ((mod & (ALT_DOWN_MASK | BUTTON2_DOWN_MASK)) != 0) mod |= ALT_DOWN_MASK | BUTTON2_DOWN_MASK; if ((mod & (META_DOWN_MASK | BUTTON3_DOWN_MASK)) != 0) mod |= META_DOWN_MASK | BUTTON3_DOWN_MASK; s.append(",modifiers=").append(getModifiersExText(mod)); } if (modifiers != 0) s.append(",extModifiers=").append(getModifiersExText(modifiers));
if (modifiersEx != 0) s.append(",extModifiers=").append(getModifiersExText(modifiersEx));
  public String paramString()  {    StringBuffer s = new StringBuffer();    switch (id)      {      case MOUSE_CLICKED:        s.append("MOUSE_CLICKED,(");        break;      case MOUSE_PRESSED:        s.append("MOUSE_PRESSED,(");        break;      case MOUSE_RELEASED:        s.append("MOUSE_RELEASED,(");        break;      case MOUSE_MOVED:        s.append("MOUSE_MOVED,(");        break;      case MOUSE_ENTERED:        s.append("MOUSE_ENTERED,(");        break;      case MOUSE_EXITED:        s.append("MOUSE_EXITED,(");        break;      case MOUSE_DRAGGED:        s.append("MOUSE_DRAGGED,(");        break;      case MOUSE_WHEEL:        s.append("MOUSE_WHEEL,(");        break;      default:        s.append("unknown type,(");      }    s.append(x).append(',').append(y).append("),button=").append(button);    if ((modifiers & EventModifier.NEW_MASK) != 0)      {        int mod = modifiers;        if ((mod & (ALT_DOWN_MASK | BUTTON2_DOWN_MASK)) != 0)          mod |= ALT_DOWN_MASK | BUTTON2_DOWN_MASK;        if ((mod & (META_DOWN_MASK | BUTTON3_DOWN_MASK)) != 0)          mod |= META_DOWN_MASK | BUTTON3_DOWN_MASK;        s.append(",modifiers=").append(getModifiersExText(mod));      }    if (modifiers != 0)      s.append(",extModifiers=").append(getModifiersExText(modifiers));    return s.append(",clickCount=").append(clickCount).toString();  }