Package de.iritgo.aktario.core.application

Examples of de.iritgo.aktario.core.application.ApplicationPane


    if (! (guiPane instanceof ApplicationPane))
    {
      return;
    }

    ApplicationPane appPane = (ApplicationPane) guiPane;

    switch (e.getID())
    {
      case MouseEvent.MOUSE_MOVED:
      {
        MouseEvent event = (MouseEvent) e;
        Point glassPanePos = ((SwingGUIPane) appPane).getPanel().getLocationOnScreen();
        Point compPos = ((JComponent) e.getSource()).getLocationOnScreen();

        pointerX = (int) (compPos.getX() - glassPanePos.getX() + event.getX());
        pointerY = (int) (compPos.getY() - glassPanePos.getY() + event.getY());
        action.sendMouseMove(pointerX, pointerY);

        break;
      }

      case KeyEvent.KEY_RELEASED:
      {
        KeyEvent event = (KeyEvent) e;

        switch (event.getKeyCode())
        {
          case KeyEvent.VK_F1:
            appPane.contextHelp();

            break;

          case KeyEvent.VK_F5:
            action.sendPaint(pointerX, pointerY, WhiteBoardAction.PAINT_EXCLAMATION);
View Full Code Here

TOP

Related Classes of de.iritgo.aktario.core.application.ApplicationPane

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.