public void dragged(int mode, int color,  int size, int sx, int sy, int ex, int ey){
//        System.out.println("Dragged: " + sx +"," + sy + " :: " + ex + ","  + ey);
    switch(mode){
        case DO_NOTHING_MODE:
            // nothing
            break;
        case DRAW_PIXEL_MODE:
            // nothing
            break;
        case DRAW_LINE_MODE:
            drawLine(color, size, MultiTileEditorMouseAdapter.getTilePointFromXY(sx,sy, this), MultiTileEditorMouseAdapter.getTilePointFromXY(ex,ey, this));
            break;
        case DRAW_RECT_MODE:
            drawRect(color, size, MultiTileEditorMouseAdapter.getTilePointFromXY(sx,sy, this), MultiTileEditorMouseAdapter.getTilePointFromXY(ex,ey, this));
            break;
        case FILL_RECT_MODE:
            fillRect(color, size, MultiTileEditorMouseAdapter.getTilePointFromXY(sx,sy, this), MultiTileEditorMouseAdapter.getTilePointFromXY(ex,ey, this));
            break;
        case DRAW_CIRCLE_MODE:
            drawCircle(color, size, MultiTileEditorMouseAdapter.getTilePointFromXY(sx,sy, this), MultiTileEditorMouseAdapter.getTilePointFromXY(ex,ey, this));
            break;
        case FILL_CIRCLE_MODE:
            fillCircle(color, size, MultiTileEditorMouseAdapter.getTilePointFromXY(sx,sy, this), MultiTileEditorMouseAdapter.getTilePointFromXY(ex,ey, this));
            break;
        case ERASE_MODE:
            // nothing
            break;
        default:
            break;
    }
}