src/main/java/org/jwellman/foundation/utility/ItemsDragAndDropListener.java
private boolean mouseOverPiece(Moveable piece, int x, int y) {
        final boolean inX = piece.getX() <= x && piece.getX() + piece.getWidth() >= x ;
        final boolean inY = piece.getY() <= y && piece.getY() + piece.getHeight() >= y;
        final boolean isOver = inX && inY;
        if (isOver) { p(true); p(x); p(piece.getWidth()); p(y); p(piece.getHeight()); }
        return isOver;
    }
/**
     * Determine if the mouse is currently over this piece
     *
     * @param piece the playing piece
     * @param x x coordinate of mouse
     * @param y y coordinate of mouse
     * @return true if mouse is over the piece
     */
Determine if the mouse is currently over this piece
@param piece the playing piece
@param x x coordinate of mouse
@param y y coordinate of mouse
@return true if mouse is over the piece
Determine if the mouse is currently over this piece @param piece the playing piece @param x x coordinate of mouse @param y y coordinate of mouse @return true if mouse is over the piece
private boolean mouseOverPiece(Moveable piece, int x, int y) {
        final boolean inX = piece.getX() <= x && piece.getX() + piece.getWidth() >= x ;
        final boolean inY = piece.getY() <= y && piece.getY() + piece.getHeight() >= y;
        final boolean isOver = inX && inY;
        if (isOver) { p(true); p(x); p(piece.getWidth()); p(y); p(piece.getHeight()); }
        return isOver;
    }
private boolean mouseOverPiece ( Moveable piece , int x , int y ) { final boolean inX = piece . getX ( ) <= x && piece . getX ( ) + piece . getWidth ( ) >= x ; final boolean inY = piece . getY ( ) <= y && piece . getY ( ) + piece . getHeight ( ) >= y ; final boolean isOver = inX && inY ; if ( isOver ) { p ( true ) ; p ( x ) ; p ( piece . getWidth ( ) ) ; p ( y ) ; p ( piece . getHeight ( ) ) ; } return isOver ; }
Determine if the mouse is currently over this piece
 @param piece the playing piece
 @param x x coordinate of mouse
 @param y y coordinate of mouse
 @return true if mouse is over the piece
Determine if the mouse is currently over this piece @param piece the playing piece @param x x coordinate of mouse @param y y coordinate of mouse @return true if mouse is over the piece