📄 annealinglayoutconfigurationdialog.java
字号:
panelFields.add(tf_maxRounds);
panelFields.add(tf_triesPerCell);
panelFields.add(cb_computePermutation);
panelFields.add(cb_uphillMovesAllowed);
panelLambda.add(new JLabel("Costfunction Nodedistribution :"),
new GridBagConstraints(0, 0, 1, 1, 0.5, 0.5,
GridBagConstraints.WEST,
GridBagConstraints.NONE,
new Insets(0,0,0,0),
0,0) );
panelLambda.add(new JLabel("Costfunction Borderline :"),
new GridBagConstraints(0, 1, 1, 1, 0.5, 0.5,
GridBagConstraints.WEST,
GridBagConstraints.NONE,
new Insets(0,0,0,0),
0,0) );
panelLambda.add(new JLabel("Costfunction Edgelength :"),
new GridBagConstraints(0, 2, 1, 1, 0.5, 0.5,
GridBagConstraints.WEST,
GridBagConstraints.NONE,
new Insets(0,0,0,0),
0,0) );
panelLambda.add(new JLabel("Costfunction Edgecrossing :"),
new GridBagConstraints(0, 3, 1, 1, 0.5, 0.5,
GridBagConstraints.WEST,
GridBagConstraints.NONE,
new Insets(0,0,0,0),
0,0) );
panelLambda.add(new JLabel("Costfunction Edge Distribution :"),
new GridBagConstraints(0, 4, 1, 1, 0.5, 0.5,
GridBagConstraints.WEST,
GridBagConstraints.NONE,
new Insets(0,0,0,0),
0,0) );
panelLambda.add(new JLabel("Costfunction Node Overlapping :"),
new GridBagConstraints(0, 5, 1, 1, 0.5, 0.5,
GridBagConstraints.WEST,
GridBagConstraints.NONE,
new Insets(0,0,0,0),
0,0) );
panelLambda.add(cb_useNodeDistribution,
new GridBagConstraints(1, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLambda.add(cb_useBorderline,
new GridBagConstraints(1, 1, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLambda.add(cb_useEdgeLength,
new GridBagConstraints(1, 2, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLambda.add(cb_useEdgeCrossing,
new GridBagConstraints(1, 3, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLambda.add(cb_useEdgeDistribution,
new GridBagConstraints(1, 4, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLambda.add(cb_useNodeDistance,
new GridBagConstraints(1, 5, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLambda.add(tf_lambdaNodeDistribution,
new GridBagConstraints(2, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelLambda.add(tf_lambdaBorderline,
new GridBagConstraints(2, 1, 1, 1, 1.0, 1.0,
GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelLambda.add(tf_lambdaEdgeLength,
new GridBagConstraints(2, 2, 1, 1, 1.0, 1.0,
GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelLambda.add(tf_lambdaEdgeCrossing,
new GridBagConstraints(2, 3, 1, 1, 1.0, 1.0,
GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelLambda.add(tf_lambdaEdgeDistribution,
new GridBagConstraints(2, 4, 1, 1, 1.0, 1.0,
GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelLambda.add(tf_lambdaNodeDistance,
new GridBagConstraints(2, 5, 1, 1, 1.0, 1.0,
GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
JLabel[] label_AdditionalCF = getAdditionalCostFunctionLabels();
JTextField[] tf_AdditionalCF = getAdditionalCostFunctionTextFields();
JCheckBox[] cb_AdditionalCF = getAdditionalCostFunctionCheckBoxes();
for( int i = 0; i < label_AdditionalCF.length; i++ )
panelLambda.add(label_AdditionalCF[i],
new GridBagConstraints(0,
AnnealingLayoutController.COUT_COSTFUNCTION + i,
1, 1, 0.5, 0.5, GridBagConstraints.WEST,
GridBagConstraints.NONE, new Insets(0,0,0,0),
0,0) );
for( int i = 0; i < cb_AdditionalCF.length; i++ )
panelLambda.add(cb_AdditionalCF[i],
new GridBagConstraints(1,
AnnealingLayoutController.COUT_COSTFUNCTION + i,
1, 1, 0.5, 0.5, GridBagConstraints.CENTER,
GridBagConstraints.NONE, new Insets(0,20,0,0),
0,0) );
for( int i = 0; i < tf_AdditionalCF.length; i++ )
panelLambda.add(tf_AdditionalCF[i],
new GridBagConstraints(2,
AnnealingLayoutController.COUT_COSTFUNCTION + i,
1, 1, 0.5, 0.5, GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0), 0,0) );
button_takeViewportSize = new JButton("take viewport size");
button_takeViewportSize.setOpaque(false);
JLabel labelBoundsWidth = new JLabel("max. width :");
JLabel labelBoundsHeight = new JLabel("max. height :");
tf_boundsWidth = new JTextField();
tf_boundsHeight = new JTextField();
panelBounds.add(button_takeViewportSize,
new GridBagConstraints(0, 0, 1, 2, 0.5, 1.0,
GridBagConstraints.SOUTHEAST,
GridBagConstraints.HORIZONTAL,
new Insets(25,20,15,30),
0,0) );
panelBounds.add(labelBoundsWidth,
new GridBagConstraints(1, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.SOUTH,
GridBagConstraints.HORIZONTAL,
new Insets(15,0,5,0),
0,0) );
panelBounds.add(labelBoundsHeight,
new GridBagConstraints(1, 1, 1, 1, 1.0, 1.0,
GridBagConstraints.NORTH,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelBounds.add(tf_boundsWidth,
new GridBagConstraints(2, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.SOUTH,
GridBagConstraints.HORIZONTAL,
new Insets(15,0,5,0),
0,0) );
panelBounds.add(tf_boundsHeight,
new GridBagConstraints(2, 1, 1, 1, 1.0, 1.0,
GridBagConstraints.NORTH,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
/*####################################################################*/
panelLUSurface = new JPanel(new BorderLayout(5,10));
//panelLUSurface.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),"Values for Layout updates"));
panelLUSurface.setBackground(new Color(220,205,205));
JPanel panelLULabels = new JPanel(new GridLayout(8,1, 0,5));
JPanel panelLUFields = new JPanel(new GridLayout(8,1, 0,5));
JPanel panelLUVars = new JPanel(new BorderLayout(5,10));
JPanel panelLULambda = new JPanel(new GridBagLayout());
JPanel panelLUBounds = new JPanel(new GridBagLayout());
JPanel panelLUCenter = new JPanel(new BorderLayout(5,10));
JPanel panelLUMethod = new JPanel(new BorderLayout(5,10));
panelLULabels.setOpaque(false);
panelLUFields.setOpaque(false);
panelLUVars .setOpaque(false);
panelLULambda.setOpaque(false);
panelLUBounds.setOpaque(false);
panelLUCenter.setOpaque(false);
panelLUMethod.setOpaque(false);
panelLUVars.add(panelLULabels,BorderLayout.WEST);
panelLUVars.add(panelLUFields,BorderLayout.CENTER);
panelLUCenter.add(panelLULambda,BorderLayout.WEST);
panelLUCenter.add(panelLUBounds,BorderLayout.SOUTH);
panelLUSurface.add(panelLUVars ,BorderLayout.NORTH);
panelLUSurface.add(panelLUCenter ,BorderLayout.CENTER);
panelLUSurface.add(panelLUMethod ,BorderLayout.SOUTH);
panelLULabels.add( new JLabel("start temperature :"));
panelLULabels.add( new JLabel("min. temperature :"));
panelLULabels.add( new JLabel("min. distance :"));
panelLULabels.add( new JLabel("temperature scaling factor :"));
panelLULabels.add( new JLabel("max. rounds :"));
panelLULabels.add( new JLabel("tries per cell :"));
panelLULabels.add( new JLabel("are uphill-moves allowed :"));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -