📄 vectorgraph.java
字号:
package net.aetherial.gis.vectorgraph;
import net.aetherial.gis.garmin.*;
import net.aetherial.gis.surface.*;
import org.w3c.dom.*;
public class Vectorgraph {
String str ="";
public Vectorgraph() {
}
public void drawTracks(){
int[] pos = ItemValue.getPosition("track");
if(pos == null)
return;
Node node = null;
NodeList nl = null;
for(int i=0;i<pos.length;i++){
node = ItemValue.getTracks(pos[i]);
nl = ItemValue.getTracksPoint(node);
str = str + "pline\n";
for(int j=0;j<nl.getLength();j++){
str = str + ItemValue.getTracksPointY(nl.item(j)) + "," +
ItemValue.getTracksPointX(nl.item(j)) + "\n";
}
str = str + "c\n";
}
}
public void printStr(){
System.out.println(str);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -