⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 concatenatedtrackrectangle.java

📁 基于Java的地图数据管理软件。使用MySQL数据库管理系统。
💻 JAVA
字号:
package net.aetherial.gis.publicuse.track;

import net.aetherial.gis.our.auto.check.repeattrk.TrackRectangle;
import net.aetherial.gis.surface.ItemValue;
import org.w3c.dom.Node;
import java.util.Vector;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2004</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class ConcatenatedTrackRectangle
    extends TrackRectangle {

  public ConcatenatedTrackRectangle(ConcatenatedTrack trks) {
    this.get_L_R_T_B(trks.getTrackPoints());
  }

  private void get_L_R_T_B(Vector tps) {
    for (int i = 0; i < tps.size(); i++) {
      super.CheckThisPoint(Double.parseDouble(ItemValue.getTracksPointX( (Node)
          tps.get(i))),
                           Double.parseDouble(ItemValue.getTracksPointY( (Node)
          tps.get(i))));
    }

    /**
     * 方框扩大
     */
    this.left = this.left - this.NEAR_DISTANCE;
    this.right = this.right + this.NEAR_DISTANCE;
    this.top = this.top + this.NEAR_DISTANCE;
    this.bottom = this.bottom - this.NEAR_DISTANCE;
    //System.out.println("left:" + left + ",right:" + right + ",top:" + top + ",bottom:" + bottom);

  }

  public boolean isTrackPointInit(Node trackPoint){
    if (trackPoint == null) {
      return false;
    }
    else {
      return this.isPointInIt(Double.parseDouble(ItemValue.getTracksPointX(trackPoint)),Double.parseDouble(ItemValue.getTracksPointY(trackPoint)),this);
    }

  }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -