Transform tab.

This commit is contained in:
Jindra Petřík
2024-10-05 23:41:20 +02:00
parent 6106253451
commit fa4d5f7320
3 changed files with 114 additions and 37 deletions

View File

@@ -170,6 +170,9 @@ public class TransformPanel extends JPanel {
}
public TransformPanel(ImagePanel imagePanel) {
this(imagePanel, true);
}
public TransformPanel(ImagePanel imagePanel, boolean headerLabel) {
imagePanel.addBoundsChangeListener(new BoundsChangeListener() {
@Override
@@ -181,10 +184,12 @@ public class TransformPanel extends JPanel {
this.imagePanel = imagePanel;
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
JLabel transformLabel = new JLabel(AppStrings.translate("transform"));
transformLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
transformLabel.setFont(transformLabel.getFont().deriveFont(Font.BOLD));
add(transformLabel);
if (headerLabel) {
JLabel transformLabel = new JLabel(AppStrings.translate("transform"));
transformLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
transformLabel.setFont(transformLabel.getFont().deriveFont(Font.BOLD));
add(transformLabel);
}
JPanel registrationPointPanel = new JPanel(new FlowLayout());
this.registrationPointPanel = new RegistrationPointPanel(this::registrationPointChangedActionPerformed);