📄 annealinglayoutconfigurationdialog.java
字号:
panelLULabels.add( new JLabel("compute permutations :"));
tf_lu_initTemperature = new JTextField();
tf_lu_minTemperature = new JTextField();
tf_lu_minDistance = new JTextField();
tf_lu_tempScaleFactor = new JTextField();
tf_lu_maxRounds = new JTextField();
tf_lu_triesPerCell = new JTextField();
tf_lu_lambdaNodeDistribution = new JTextField();
tf_lu_lambdaBorderline = new JTextField();
tf_lu_lambdaEdgeLength = new JTextField();
tf_lu_lambdaEdgeCrossing = new JTextField();
tf_lu_lambdaEdgeDistribution = new JTextField();
tf_lu_lambdaNodeDistance = new JTextField();
cb_lu_computePermutation = new JCheckBox();
cb_lu_uphillMovesAllowed = new JCheckBox();
cb_lu_useNodeDistribution = new JCheckBox();
cb_lu_useBorderline = new JCheckBox();
cb_lu_useEdgeLength = new JCheckBox();
cb_lu_useEdgeCrossing = new JCheckBox();
cb_lu_useEdgeDistribution = new JCheckBox();
cb_lu_useNodeDistance = new JCheckBox();
cb_lu_computePermutation .setOpaque(false);
cb_lu_uphillMovesAllowed .setOpaque(false);
cb_lu_useNodeDistribution.setOpaque(false);
cb_lu_useBorderline .setOpaque(false);
cb_lu_useEdgeLength .setOpaque(false);
cb_lu_useEdgeCrossing .setOpaque(false);
cb_lu_useEdgeDistribution.setOpaque(false);
cb_lu_useNodeDistance .setOpaque(false);
registerCheckBoxAction(cb_lu_useNodeDistribution);
registerCheckBoxAction(cb_lu_useBorderline);
registerCheckBoxAction(cb_lu_useEdgeLength);
registerCheckBoxAction(cb_lu_useEdgeCrossing);
registerCheckBoxAction(cb_lu_useEdgeDistribution);
registerCheckBoxAction(cb_lu_useNodeDistance);
panelLUFields.add(tf_lu_initTemperature);
panelLUFields.add(tf_lu_minTemperature);
panelLUFields.add(tf_lu_minDistance);
panelLUFields.add(tf_lu_tempScaleFactor);
panelLUFields.add(tf_lu_maxRounds);
panelLUFields.add(tf_lu_triesPerCell);
panelLUFields.add(cb_lu_computePermutation);
panelLUFields.add(cb_lu_uphillMovesAllowed);
panelLULambda.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) );
panelLULambda.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) );
panelLULambda.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) );
panelLULambda.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) );
panelLULambda.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,-20),
0,0) );
panelLULambda.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,-20),
0,0) );
panelLULambda.add(cb_lu_useNodeDistribution,
new GridBagConstraints(1, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLULambda.add(cb_lu_useBorderline,
new GridBagConstraints(1, 1, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLULambda.add(cb_lu_useEdgeLength,
new GridBagConstraints(1, 2, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLULambda.add(cb_lu_useEdgeCrossing,
new GridBagConstraints(1, 3, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLULambda.add(cb_lu_useEdgeDistribution,
new GridBagConstraints(1, 4, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLULambda.add(cb_lu_useNodeDistance,
new GridBagConstraints(1, 5, 1, 1, 1.0, 1.0,
GridBagConstraints.CENTER,
GridBagConstraints.NONE,
new Insets(0,20,0,0),
0,0) );
panelLULambda.add(tf_lu_lambdaNodeDistribution,
new GridBagConstraints(2, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelLULambda.add(tf_lu_lambdaBorderline,
new GridBagConstraints(2, 1, 1, 1, 1.0, 1.0,
GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelLULambda.add(tf_lu_lambdaEdgeLength,
new GridBagConstraints(2, 2, 1, 1, 1.0, 1.0,
GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelLULambda.add(tf_lu_lambdaEdgeCrossing,
new GridBagConstraints(2, 3, 1, 1, 1.0, 1.0,
GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelLULambda.add(tf_lu_lambdaEdgeDistribution,
new GridBagConstraints(2, 4, 1, 1, 1.0, 1.0,
GridBagConstraints.EAST,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelLULambda.add(tf_lu_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_lu_AdditionalCF = getAdditionalLUCostFunctionLabels();
JTextField[] tf_lu_AdditionalCF = getAdditionalLUCostFunctionTextFields();
JCheckBox[] cb_lu_AdditionalCF = getAdditionalLUCostFunctionCheckBoxes();
for( int i = 0; i < label_lu_AdditionalCF.length; i++ )
panelLULambda.add(label_lu_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_lu_AdditionalCF.length; i++ )
panelLULambda.add(cb_lu_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_lu_AdditionalCF.length; i++ )
panelLULambda.add(tf_lu_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_lu_takeViewportSize = new JButton("take viewport size");
button_lu_takeViewportSize.setOpaque(false);
JLabel labelLUBoundsWidth = new JLabel("max. width :");
JLabel labelLUBoundsHeight = new JLabel("max. height :");
tf_lu_boundsWidth = new JTextField();
tf_lu_boundsHeight = new JTextField();
panelLUBounds.add(button_lu_takeViewportSize,
new GridBagConstraints(0, 0, 1, 2, 0.5, 1.0,
GridBagConstraints.SOUTHEAST,
GridBagConstraints.HORIZONTAL,
new Insets(25,20,15,30),
0,0) );
panelLUBounds.add(labelLUBoundsWidth,
new GridBagConstraints(1, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.SOUTH,
GridBagConstraints.HORIZONTAL,
new Insets(15,0,5,0),
0,0) );
panelLUBounds.add(labelLUBoundsHeight,
new GridBagConstraints(1, 1, 1, 1, 1.0, 1.0,
GridBagConstraints.NORTH,
GridBagConstraints.HORIZONTAL,
new Insets(0,0,0,0),
0,0) );
panelLUBounds.add(tf_lu_boundsWidth,
new GridBagConstraints(2, 0, 1, 1, 1.0, 1.0,
GridBagConstraints.SOUTH,
GridBagConstraints.HORIZONTAL,
new Insets(15,0,5,0),
0,0) );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -