TileSet tileset = (TileSet)tilesets.get(0);
    public int getScrollableUnitIncrement(Rectangle visibleRect,            int orientation, int direction) {        TileSet tileset = (TileSet)tilesets.get(0);        if (tileset != null) {            return tileset.getTileWidth();        } else {            return 0;        }    }