📄 mappanel.java
字号:
package net.aetherial.gis.cutAndLink;
import java.awt.Color;
import javax.swing.JMenuItem;
import net.aetherial.gis.our.ToMap;
import javax.swing.JPopupMenu;
import java.awt.Graphics;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2004</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class MapPanel
extends DynamicPanel {
private int countPaint =0;
private Graphics g = null;
private ToMap tm = new ToMap();
private boolean init = false;
private JPopupMenu popup = new JPopupMenu();
private JMenuItem jMenuItemZoomIn = new JMenuItem();
private JMenuItem jMenuItemZoomOut = new JMenuItem();
private int baseX =0,baseY=0;
private TempDoc tc = null;
public MapPanel() {
//super();
}
public void setTempDoc(TempDoc tc){
this.tc = tc;
}
public void init(){
this.setBackground(Color.white);
if(g==null){
//System.out.println("g==null");
init =false;
return;
}
if(tc.track!=null){
tm.resetAll();
this.tm.rollMemory();
this.tm.determinScale(this.getWidth(), this.getHeight());
this.tm.drawTracks(g);
this.init = true;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -