?? besttourlenlabel.java
字號(hào):
/* BESTTOURLENLABEL */
/* Part of the AntTSP project */
/* Dr Mark C. Sinclair, NPIC, Cambodia, v1.0, November 2006, mcs@ieee.org */
/* You may make use of this code for any purpose, but if you use it, */
/* you must cite the use: Sinclair, M.C., AntTSP Java Applet v1.0, */
/* http://uk.geocities.com/markcsinclair/aco.html, November, 2006 */
import java.awt.*;
import java.util.*;
class BestTourLenLabel extends Label implements Observer {
public BestTourLenLabel(Network net) {
super(String.valueOf(AntTSP.trim(net.getBestTourLen())));
this.net = net;
net.addObserver(this);
}
public void update(Observable o, Object arg) {
setText(String.valueOf(AntTSP.trim(net.getBestTourLen())));
}
private Network net;
private static final long serialVersionUID = 1L;
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -