예제 #1
0
 public HexPanelListener() {
   /*
    * Set this object as the listener
    * for the hex panel for
    * *both* types of Mouse Listener
    */
   Controller.getHexPanel().addMouseMotionListener(this);
   Controller.getHexPanel().addMouseListener(this);
 }
예제 #2
0
 /** Deal with mouseReleased (mouse up) events on the HexPanel. */
 public void mouseReleased(final MouseEvent e) {
   Controller.hexPanelMouseReleased(e);
 }
예제 #3
0
 /** Defines the procedure for dragging a mouse button across the HexPanel */
 public void mouseDragged(final MouseEvent e) {
   Controller.hexPanelMouseDragged(e);
 }