private void setCursorToResizeCursor(int aDir)
    {        
        int cursorType = Cursor.DEFAULT_CURSOR;
        
        switch(aDir)
        {
            case Compass.NORTH:
                cursorType = Cursor.N_RESIZE_CURSOR;
                break;
            case Compass.SOUTH:
                cursorType = Cursor.S_RESIZE_CURSOR;
                break;
            case Compass.EAST:
                cursorType = Cursor.E_RESIZE_CURSOR;
                break;
            case Compass.WEST:
                cursorType = Cursor.W_RESIZE_CURSOR;
                break;
            case Compass.NORTH_EAST:
                cursorType = Cursor.NE_RESIZE_CURSOR;
                break;
            case Compass.NORTH_WEST:
                cursorType = Cursor.NW_RESIZE_CURSOR;
                break;
            case Compass.SOUTH_EAST:
                cursorType = Cursor.SE_RESIZE_CURSOR;
                break;
            case Compass.SOUTH_WEST:
                cursorType = Cursor.SW_RESIZE_CURSOR;
                break;
        }

        setCursor(cursorType);

    }