Beispiel #1
0
  /** Check if a state dialog is to be displayed?? */
  private void handleEventDlg(MouseEvent e) {
    int x = e.getX(), y = e.getY();
    if (y >= allDispHt) return;
    StateInterval cur_state = findState(x, y);
    if (cur_state != null) {
      RecordDialog sd = new RecordDialog(parent, cur_state);

      Point p = getLocationOnScreen();
      int tx = x, ty = y;
      tx += p.x;
      ty += p.y;
      sd.setLocation(tx, ty);

      sd.setVisible(true);
    }
  }
Beispiel #2
0
  /** Check if a message dialog is to be displayed?? */
  private boolean handleMsgDlg(MouseEvent e) {
    int x = e.getX(), y = e.getY();
    if (y >= allDispHt) return false;
    ArrowInfo arrow = findMsg(x, y);
    if (arrow != null) {
      RecordDialog md = new RecordDialog(parent, arrow);

      Point p = getLocationOnScreen();
      int tx = x, ty = y;
      tx += p.x;
      ty += p.y;
      md.setLocation(tx, ty);

      md.setVisible(true);

      return true;
    }
    return false;
  }