objectivefunctionpanel.java
来自「eclispse下运行 模拟退火算法的java源代码」· Java 代码 · 共 51 行
JAVA
51 行
package org.theblueplanet.annealing.ui;import java.awt.BorderLayout;import javax.swing.JPanel;import org.apache.log4j.Logger;import org.theblueplanet.annealing.AnnealingScheme;/** * This JPanel contains the ObjectiveFunctionChooser and the LoggerPanel objects * * @author Charles M間nin * @since October 29, 2001 * @version 1.0 */public class ObjectiveFunctionPanel extends JPanel { private static Logger logger = Logger.getLogger("org.theblueplanet.annealing"); /** * Constructor for the ObjectiveFunctionPanel object * * @param parent The AnnealingSchemeFrame * @param scheme The Object that encapsulates the annealing parameters */ public ObjectiveFunctionPanel(AnnealingSchemeFrame parent, AnnealingScheme scheme) { super(); logger.debug("Instantiating " + this.getClass().getName()); init(parent, scheme); } /** * Sets layout and initial parameters * * @param parent The AnnealingSchemeFrame * @param scheme The Object that encapsulates the annealing parameters */ private void init(AnnealingSchemeFrame parent, AnnealingScheme scheme) { try { this.setLayout(new BorderLayout()); this.add(new ObjectiveFunctionChooser(scheme), BorderLayout.NORTH); this.add(new LoggerPanel(parent), BorderLayout.CENTER); } catch (Exception e) { e.printStackTrace(); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?