boardGame
Class Board.DragEvent

java.lang.Object
  extended by java.util.Observable
      extended by boardGame.Board.DragEvent
Enclosing class:
Board

public static class Board.DragEvent
extends java.util.Observable

Allows drag events to be observed. To use this class for a given board, do the following:

 board.dragEvent.addObserver(new Observer() {
     @Override
     public void update(Observable o, Object arg) {
         ...
     }
 });
The update method will be called when a piece has been released in a new (or possibly the same) location. The parameter o will hold the Board.DragEvent object, while arg will hold a reference to the piece that was moved.

Author:
David Matuszek

Constructor Summary
Board.DragEvent()
           
 
Method Summary
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Board.DragEvent

public Board.DragEvent()