while (hasMoreLines(true)) {
String[] data = nextLine();
for (int i = 0; i < pens.length; i++) {
scala.Option<PlotPenInterface> penMaybe = plot.getPen(pens[i]);
if (penMaybe.isDefined()) {
PlotPenInterface pen = penMaybe.get();
// there may be blank fields in the list of points
// since some pens may have more points than others.
if (data[i * 4].length() > 0) {
try {
pen.plot(readNumber(data[i * 4]),
readNumber(data[i * 4 + 1]),
org.nlogo.api.Color.getARGBbyPremodulatedColorNumber
((int) readNumber(data[i * 4 + 2])),
readBoolean(data[i * 4 + 3]));
} catch (ClassCastException e) {