Package org.nlogo.api

Examples of org.nlogo.api.PlotInterface


      while (hasMoreLines(false)) {
        line = nextLine();
        try {
          String plotName = (String) getTokenValue(line[0], false, false);
          PlotInterface plot = importerUser.getPlot(plotName);
          if (plot == null) {
            errorHandler.showError("Error Importing Plots",
                "The plot \"" + plotName + "\" does not exist.",
                false);
            // gobble up remaining lines of this section
            while (hasMoreLines(false)) { } // NOPMD empty while loop OK
            return;
          } else {
            int numPens = importIntro(plot);
            importPens(plot, numPens);
            importPoints(plot);
          }
          plot.makeDirty();
        } catch (ClassCastException e) {
          throw new AbortingImportException
              (ImportError.ILLEGAL_CLASS_CAST_ERROR, "");
        }
      }
View Full Code Here

TOP

Related Classes of org.nlogo.api.PlotInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.