|
@@ -26,6 +26,7 @@ public class ShowedInformationPopUp extends JDialog {
|
|
private MyCanvas canvas;
|
|
private MyCanvas canvas;
|
|
private JCheckBox objectEnergyCheckbox;
|
|
private JCheckBox objectEnergyCheckbox;
|
|
private JCheckBox connectionCheckbox;
|
|
private JCheckBox connectionCheckbox;
|
|
|
|
+ private JCheckBox colorizedBorderCheckbox;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Constructor.
|
|
* Constructor.
|
|
@@ -37,7 +38,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, 169);
|
|
|
|
|
|
+ setBounds(100, 100, 400, 220);
|
|
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);
|
|
@@ -56,11 +57,12 @@ public class ShowedInformationPopUp extends JDialog {
|
|
connectionCheckbox.setSelected(canvas.getShowedInformation()[0]);
|
|
connectionCheckbox.setSelected(canvas.getShowedInformation()[0]);
|
|
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());
|
|
dispose();
|
|
dispose();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- btnOk.setBounds(169, 98, 82, 23);
|
|
|
|
|
|
+ btnOk.setBounds(171, 147, 82, 23);
|
|
contentPanel.add(btnOk);
|
|
contentPanel.add(btnOk);
|
|
|
|
|
|
JButton btnCancel = new JButton(Languages.getLanguage()[34]);
|
|
JButton btnCancel = new JButton(Languages.getLanguage()[34]);
|
|
@@ -70,20 +72,25 @@ public class ShowedInformationPopUp extends JDialog {
|
|
dispose();
|
|
dispose();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- btnCancel.setBounds(70, 98, 89, 23);
|
|
|
|
|
|
+ btnCancel.setBounds(72, 147, 89, 23);
|
|
contentPanel.add(btnCancel);
|
|
contentPanel.add(btnCancel);
|
|
|
|
+
|
|
|
|
+ colorizedBorderCheckbox = new JCheckBox("Show colorized Border for Objects");
|
|
|
|
+ colorizedBorderCheckbox.setBounds(19, 96, 195, 23);
|
|
|
|
+ contentPanel.add(colorizedBorderCheckbox);
|
|
|
|
+ colorizedBorderCheckbox.setSelected(canvas.getShowedInformation()[2]);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* Set the Information true or false.
|
|
* Set the Information true or false.
|
|
*
|
|
*
|
|
* @param connection
|
|
* @param connection
|
|
- * conecction Information
|
|
|
|
|
|
+ * conection Information
|
|
* @param object
|
|
* @param object
|
|
* Object Information
|
|
* Object Information
|
|
*/
|
|
*/
|
|
- private void setInformation(boolean connection, boolean object) {
|
|
|
|
- canvas.setShowedInformation(connection, object);
|
|
|
|
|
|
+ private void setInformation(boolean connection, boolean object, boolean borders) {
|
|
|
|
+ canvas.setShowedInformation(connection, object, borders);
|
|
canvas.repaint();
|
|
canvas.repaint();
|
|
}
|
|
}
|
|
}
|
|
}
|