1 package osm.jp.gpx.matchtime.gui.restamp;
3 import java.awt.BorderLayout;
4 import java.awt.GridLayout;
5 import javax.swing.BoxLayout;
6 import javax.swing.JButton;
7 import javax.swing.JLabel;
8 import javax.swing.JPanel;
9 import javax.swing.JScrollPane;
10 import javax.swing.JTabbedPane;
11 import osm.jp.gpx.ImportPicture;
12 import osm.jp.gpx.matchtime.gui.AdjustTime;
13 import static osm.jp.gpx.matchtime.gui.AdjustTime.createImageIcon;
14 import static osm.jp.gpx.matchtime.gui.AdjustTime.i18n;
15 import osm.jp.gpx.matchtime.gui.Card;
16 import osm.jp.gpx.matchtime.gui.PanelAction;
17 import osm.jp.gpx.matchtime.gui.ParameterPanel;
23 public class CardCorectTime extends Card {
24 JPanel argsPanel; // パラメータ設定パネル (上部)
25 ParameterPanel arg3_basetime; // 基準時刻:
29 * @param tabbe parent panel
30 * @param arg3_basetime
32 public CardCorectTime(JTabbedPane tabbe, ParameterPanel arg3_basetime) {
33 super(tabbe, AdjustTime.i18n.getString("tab.restamp.300"), 1, 3);
35 argsPanel = new JPanel();
36 argsPanel.setLayout(new GridLayout(2, 1));
39 this.mainPanel.setLayout(new BorderLayout());
40 this.add(mainPanel, BorderLayout.CENTER);
42 // 3. 正確な撮影時刻を入力してください。
43 // カメラの時計が正確ならば、設定を変更する必要はありません。
44 JLabel label3 = new JLabel();
45 label3.setText(i18n.getString("label.300"));
46 argsPanel.add(label3);
49 this.arg3_basetime = arg3_basetime;
50 arg3_basetime.setLabel(String.format(" %s: ", i18n.getString("label.310")));
51 arg3_basetime.setLabel(ImportPicture.TIME_FORMAT_STRING);
52 argsPanel.add(arg3_basetime);
53 this.mainPanel.add(argsPanel, BorderLayout.NORTH);
56 JLabel imageLabel = new JLabel();
57 JScrollPane imageSPane = new JScrollPane(imageLabel);
58 this.mainPanel.add(imageSPane, BorderLayout.CENTER);
60 // 画像ファイル選択ダイアログを起動するボタン
61 JPanel buttonPanel = new JPanel();
62 buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
63 JButton openButton = new JButton(createImageIcon("images/Fit16.gif"));
64 buttonPanel.add(openButton);
65 JButton zoomInButton = new JButton(createImageIcon("images/ZoomIn16.gif"));
66 buttonPanel.add(zoomInButton);
67 JButton zoomOutButton = new JButton(createImageIcon("images/ZoomOut16.gif"));
68 buttonPanel.add(zoomOutButton);
69 this.mainPanel.add(buttonPanel, BorderLayout.SOUTH);