Package org.contikios.cooja.interfaces

Examples of org.contikios.cooja.interfaces.Position


      String msg = getMoteString(mote);
      if (msg == null) {
        continue;
      }
     
      Position pos = mote.getInterfaces().getPosition();
      Point pixel = visualizer.transformPositionToPixel(pos);

      int msgWidth = fm.stringWidth(msg);
      g.drawString(msg, pixel.x - msgWidth/2, pixel.y + 2*Visualizer.MOTE_RADIUS + 3);
    }
View Full Code Here

TOP

Related Classes of org.contikios.cooja.interfaces.Position

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.