|
@@ -24,6 +24,7 @@ public class ShowedInformationPopUp extends JDialog {
|
|
private JCheckBox objectEnergyCheckbox;
|
|
private JCheckBox objectEnergyCheckbox;
|
|
private JCheckBox connectionCheckbox;
|
|
private JCheckBox connectionCheckbox;
|
|
private JCheckBox colorizedBorderCheckbox;
|
|
private JCheckBox colorizedBorderCheckbox;
|
|
|
|
+ private JCheckBox nodeOfnodeConnectionCheckbox;
|
|
private JPanel toUpdate;
|
|
private JPanel toUpdate;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -36,7 +37,7 @@ public class ShowedInformationPopUp extends JDialog {
|
|
super((java.awt.Frame) null, true);
|
|
super((java.awt.Frame) null, true);
|
|
setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
|
|
setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
|
|
this.setTitle(Languages.getLanguage()[31]);
|
|
this.setTitle(Languages.getLanguage()[31]);
|
|
- setBounds(100, 100, 400, 220);
|
|
|
|
|
|
+ setBounds(100, 100, 400, 254);
|
|
getContentPane().setLayout(new BorderLayout());
|
|
getContentPane().setLayout(new BorderLayout());
|
|
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
|
|
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
|
|
getContentPane().add(contentPanel, BorderLayout.CENTER);
|
|
getContentPane().add(contentPanel, BorderLayout.CENTER);
|
|
@@ -57,11 +58,11 @@ public class ShowedInformationPopUp extends JDialog {
|
|
btnOk.addActionListener(new ActionListener() {
|
|
btnOk.addActionListener(new ActionListener() {
|
|
public void actionPerformed(ActionEvent arg0) {
|
|
public void actionPerformed(ActionEvent arg0) {
|
|
setInformation(connectionCheckbox.isSelected(), objectEnergyCheckbox.isSelected(),
|
|
setInformation(connectionCheckbox.isSelected(), objectEnergyCheckbox.isSelected(),
|
|
- colorizedBorderCheckbox.isSelected());
|
|
|
|
|
|
+ colorizedBorderCheckbox.isSelected(), nodeOfnodeConnectionCheckbox.isSelected());
|
|
dispose();
|
|
dispose();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- btnOk.setBounds(171, 147, 82, 23);
|
|
|
|
|
|
+ btnOk.setBounds(174, 193, 82, 23);
|
|
contentPanel.add(btnOk);
|
|
contentPanel.add(btnOk);
|
|
|
|
|
|
JButton btnCancel = new JButton(Languages.getLanguage()[34]);
|
|
JButton btnCancel = new JButton(Languages.getLanguage()[34]);
|
|
@@ -71,13 +72,18 @@ public class ShowedInformationPopUp extends JDialog {
|
|
dispose();
|
|
dispose();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- btnCancel.setBounds(72, 147, 89, 23);
|
|
|
|
|
|
+ btnCancel.setBounds(69, 193, 89, 23);
|
|
contentPanel.add(btnCancel);
|
|
contentPanel.add(btnCancel);
|
|
|
|
|
|
colorizedBorderCheckbox = new JCheckBox("Show colorized Border for Objects");
|
|
colorizedBorderCheckbox = new JCheckBox("Show colorized Border for Objects");
|
|
- colorizedBorderCheckbox.setBounds(19, 96, 195, 23);
|
|
|
|
|
|
+ colorizedBorderCheckbox.setBounds(19, 96, 369, 23);
|
|
contentPanel.add(colorizedBorderCheckbox);
|
|
contentPanel.add(colorizedBorderCheckbox);
|
|
colorizedBorderCheckbox.setSelected(canvas.getShowedInformation()[3]);
|
|
colorizedBorderCheckbox.setSelected(canvas.getShowedInformation()[3]);
|
|
|
|
+
|
|
|
|
+ nodeOfnodeConnectionCheckbox = new JCheckBox("Show outside Connections in gouped Nodes");
|
|
|
|
+ nodeOfnodeConnectionCheckbox.setBounds(19, 133, 369, 23);
|
|
|
|
+ contentPanel.add(nodeOfnodeConnectionCheckbox);
|
|
|
|
+ nodeOfnodeConnectionCheckbox.setSelected(canvas.getShowedInformation()[4]);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -87,9 +93,10 @@ public class ShowedInformationPopUp extends JDialog {
|
|
* conection Information
|
|
* conection Information
|
|
* @param object
|
|
* @param object
|
|
* Object Information
|
|
* Object Information
|
|
|
|
+ * @param nodeOfnode
|
|
*/
|
|
*/
|
|
- private void setInformation(boolean connection, boolean object, boolean borders) {
|
|
|
|
- canvas.setShowedInformation(connection, object, borders);
|
|
|
|
|
|
+ private void setInformation(boolean connection, boolean object, boolean borders, boolean nodeOfnode) {
|
|
|
|
+ canvas.setShowedInformation(connection, object, borders, nodeOfnode);
|
|
canvas.repaint();
|
|
canvas.repaint();
|
|
toUpdate.updateUI();
|
|
toUpdate.updateUI();
|
|
}
|
|
}
|