Package org.nlogo.api

Examples of org.nlogo.api.Patch.pxcor()


    if (outlineAgent instanceof Patch) {
      Patch patch = (Patch) outlineAgent;
      topology.drawWrappedRect(g,
          org.nlogo.api.Color.getComplement
              (org.nlogo.api.Color.getColor(patch.pcolor())),
          1.0f, patch.pxcor(), patch.pycor(), 1, patchSize, false);
    }
  }

  @Override
  protected void paintLinks(GraphicsInterface g, double patchSize) {
View Full Code Here


      xcor = link.midpointX();
      ycor = link.midpointY();
    } else {
      Patch patch = (Patch) agent;
      spotlightSize = 2;
      xcor = patch.pxcor();
      ycor = patch.pycor();
    }

    return spotlightDrawer.getImage
        (topology, xcor, ycor, getWidth(settings.patchSize()), getHeight(settings.patchSize()),
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.