コード例 #1
0
 /**
  * Use the current projection to place the graphics on the screen. Has to be called to at least
  * assure the graphics that they are ready for rendering. Called when the graphic position
  * changes.
  *
  * @param proj com.bbn.openmap.proj.Projection
  * @return true
  */
 public boolean generate(Projection proj) {
   Debug.message("eomg", "EditableOMPoly.generate()");
   if (poly != null) {
     poly.generate(proj);
   }
   generateGrabPoints(proj);
   return true;
 }
コード例 #2
0
  /**
   * Given a new projection, the grab points may need to be repositioned off the current position of
   * the graphic. Called when the projection changes.
   */
  public void regenerate(Projection proj) {
    Debug.message("eomg", "EditableOMPoly.regenerate()");
    if (poly != null) {
      poly.generate(proj);
      setGrabPoints(poly);
    }

    generateGrabPoints(proj);
  }