concatenatedtrackrectangle.java
来自「基于Java的地图数据管理软件。使用MySQL数据库管理系统。」· Java 代码 · 共 57 行
JAVA
57 行
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 + =
减小字号Ctrl + -
显示快捷键?