| | package osm.jp.gpx.matchtime.gui.restamp; |
---|
| | |
---|
| | import java.awt.BorderLayout; |
---|
| | import java.awt.Dimension; |
---|
| | import java.awt.Dialog; |
---|
| | import javax.swing.BoxLayout; |
---|
| | import javax.swing.JLabel; |
---|
| | import javax.swing.JPanel; |
---|
| | import javax.swing.JTabbedPane; |
---|
| | import osm.jp.gpx.matchtime.gui.AdjustTime; |
---|
| | import static osm.jp.gpx.matchtime.gui.AdjustTime.i18n; |
---|
| | import osm.jp.gpx.matchtime.gui.Card; |
---|
| | import osm.jp.gpx.matchtime.gui.PanelAction; |
---|
| | import osm.jp.gpx.matchtime.gui.ParameterPanelImageFile; |
---|
| | import osm.jp.gpx.matchtime.gui.ParameterPanelTime; |
---|
| | |
---|
| | /** |
---|
| | * [基準画像(開始)]選択パネル |
---|
| | * @author yuu |
---|
| | */ |
---|
| | public class CardFirstFile extends Card implements PanelAction { |
---|
| | //JPanel argsPanel; // パラメータ設定パネル (上部) |
---|
| | ParameterPanelImageFile arg_baseTimeImg; |
---|
| | ParameterPanelTime arg_basetime; |
---|
| | |
---|
| | public class CardFirstFile extends CardImageFile { |
---|
| | /** |
---|
| | * コンストラクタ |
---|
| | * @param tabbe parent panel |
---|
| | * @param arg_basetime // 開始画像の基準時刻: |
---|
| |
---|
| | JTabbedPane tabbe, |
---|
| | ParameterPanelTime arg_basetime, |
---|
| | Dialog owner |
---|
| | ) { |
---|
| | super(tabbe, AdjustTime.i18n.getString("tab.restamp.200"), 0, 2); |
---|
| | arg_basetime.setOwner(owner); |
---|
| | this.arg_baseTimeImg = arg_basetime.getImageFile(); |
---|
| | this.arg_basetime = arg_basetime; |
---|
| | |
---|
| | JPanel argsPanel = new JPanel(); |
---|
| | argsPanel.setLayout(new BoxLayout(argsPanel, BoxLayout.PAGE_AXIS)); |
---|
| | argsPanel.add(packLine(new JLabel(i18n.getString("label.200")), new JPanel())); |
---|
| | argsPanel.add(arg_baseTimeImg); |
---|
| | |
---|
| | JPanel separater = new JPanel(); |
---|
| | separater.setMinimumSize(new Dimension(40, 20)); |
---|
| | argsPanel.add(separater); |
---|
| | |
---|
| | argsPanel.add(packLine(new JLabel(i18n.getString("label.300")), new JPanel())); |
---|
| | argsPanel.add(arg_basetime); |
---|
| | |
---|
| | JPanel space = new JPanel(); |
---|
| | space.setMinimumSize(new Dimension(40, 20)); |
---|
| | space.setMaximumSize(new Dimension(40, Short.MAX_VALUE)); |
---|
| | argsPanel.add(space); |
---|
| | |
---|
| | this.mainPanel.add(argsPanel, BorderLayout.CENTER); |
---|
| | } |
---|
| | |
---|
| | /** |
---|
| | * 入力条件が満たされているかどうか |
---|
| | * @return |
---|
| | */ |
---|
| | @Override |
---|
| | public boolean isEnable() { |
---|
| | return (arg_baseTimeImg.isEnable() && arg_basetime.isEnable()); |
---|
| | } |
---|
| | |
---|
| | @Override |
---|
| | @SuppressWarnings("empty-statement") |
---|
| | public void openAction() { |
---|
| | ; // 何もしない |
---|
| | super(tabbe, arg_basetime, owner, true); |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | |