code: public void paint (Graphics2D gfx)
      {
          gfx.setColor(Color.red);
          Point prev = null;
          int size = size();
          for (int ii = 0; ii < size; ii++) {
              PathNode n = getNode(ii);
              if (prev != null) {
                  gfx.drawLine(prev.x, prev.y, n.loc.x, n.loc.y);
              }
              prev = n.loc;
          }
      }
docs: documentation inherited