/* * Lazy evaluation of plotting. */ public BranchGroup getPlot() { if (plotter != null) { Node handle = plotter.getPlot(); if (!plotter.isCancelled()) { shape = plotter.getShape(); plotter = null; if (shape != null) plot = setApperancePackInBranchGroup(shape, handle); setColor(color); } } return plot; }
public void cancel() { if (plotter != null) plotter.cancel(); }