1 package osm.jp.gpx.matchtime.gui.restamp;
3 import java.awt.BorderLayout;
4 import java.awt.Dimension;
5 import java.awt.Dialog;
6 import javax.swing.BoxLayout;
7 import javax.swing.JLabel;
8 import javax.swing.JPanel;
9 import javax.swing.JTabbedPane;
10 import osm.jp.gpx.matchtime.gui.AdjustTime;
11 import static osm.jp.gpx.matchtime.gui.AdjustTime.i18n;
12 import osm.jp.gpx.matchtime.gui.Card;
13 import osm.jp.gpx.matchtime.gui.PanelAction;
14 import osm.jp.gpx.matchtime.gui.ParameterPanelImageFile;
15 import osm.jp.gpx.matchtime.gui.ParameterPanelTime;
21 public class CardImageFile extends Card implements PanelAction {
22 //JPanel argsPanel; // パラメータ設定パネル (上部)
23 ParameterPanelImageFile arg_baseTimeImg;
24 ParameterPanelTime arg_basetime;
28 * @param tabbe parent panel
29 * @param arg_basetime // 開始画像の基準時刻:
31 * @param first // true=開始画像, false=終了画像
35 ParameterPanelTime arg_basetime,
41 AdjustTime.i18n.getString(first ? "tab.restamp.200" : "tab.restamp.250"),
45 arg_basetime.setOwner(owner);
46 this.arg_baseTimeImg = arg_basetime.getImageFile();
47 this.arg_basetime = arg_basetime;
49 JPanel argsPanel = new JPanel();
50 argsPanel.setLayout(new BoxLayout(argsPanel, BoxLayout.PAGE_AXIS));
51 argsPanel.add(packLine(new JLabel(i18n.getString("label.200")), new JPanel()));
52 argsPanel.add(arg_baseTimeImg);
54 JPanel separater = new JPanel();
55 separater.setMinimumSize(new Dimension(40, 20));
56 argsPanel.add(separater);
58 argsPanel.add(packLine(new JLabel(i18n.getString("label.300")), new JPanel()));
59 argsPanel.add(arg_basetime);
61 JPanel space = new JPanel();
62 space.setMinimumSize(new Dimension(40, 20));
63 space.setMaximumSize(new Dimension(40, Short.MAX_VALUE));
66 this.mainPanel.add(argsPanel, BorderLayout.CENTER);
74 public boolean isEnable() {
75 return (arg_baseTimeImg.isEnable() && arg_basetime.isEnable());
79 @SuppressWarnings("empty-statement")
80 public void openAction() {