Example #1
0
  /*
   * 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;
  }
Example #2
0
 public void cancel() {
   if (plotter != null) plotter.cancel();
 }