browserModel.setLayoutMethod(new GraphLayoutMethod(stats));
if(stats != null && stats.length > 0) { browserModel.setLayoutMethod(new GraphLayoutMethod(stats)); }
    public void showGraphView()    {        if(attributeName != null && elementName != null)        {            BrowserModel browserModel = model.getInfoSource();            List thumbList = browserModel.getThumbnails();            Thumbnail[] thumbnails = new Thumbnail[thumbList.size()];            thumbList.toArray(thumbnails);            ThumbnailDataPair[] stats =                ThumbnailStatistics.sortByValue(thumbnails,currentMode,                                                attributeName,elementName);                                                            browserModel.setLayoutMethod(new GraphLayoutMethod(stats));        }    }