カルネージハートエクサのチームデータ編集ツール JAVAベース
ソースファイルの整形
| @@ -7,6 +7,7 @@ | ||
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * エンブレムデータ |
| 10 | + * | |
| 10 | 11 | * @author fukui |
| 11 | 12 | */ |
| 12 | 13 | public class cheEmblem { |
| @@ -18,8 +19,9 @@ | ||
| 18 | 19 | |
| 19 | 20 | /** |
| 20 | 21 | * データの読み込み |
| 22 | + * | |
| 21 | 23 | * @param s 読み込み元データポインタ |
| 22 | - * @param nofs 読み込み元オフセット | |
| 24 | + * @param nofs 読み込み元オフセット | |
| 23 | 25 | * @return 正常に読み込めたときにtrue |
| 24 | 26 | */ |
| 25 | 27 | private boolean inner_load(byte s[], int nofs) { |
| @@ -74,6 +76,7 @@ | ||
| 74 | 76 | |
| 75 | 77 | /** |
| 76 | 78 | * コンストラクタ |
| 79 | + * | |
| 77 | 80 | * @param s 読み込み元データポインタ |
| 78 | 81 | * @param nofs 読み込み元オフセット |
| 79 | 82 | */ |
| @@ -88,6 +91,7 @@ | ||
| 88 | 91 | |
| 89 | 92 | /** |
| 90 | 93 | * エンブレムデータをコピー |
| 94 | + * | |
| 91 | 95 | * @param s コピー先エンブレムデータ |
| 92 | 96 | */ |
| 93 | 97 | public void copy(cheEmblem s) { |
| @@ -98,8 +102,9 @@ | ||
| 98 | 102 | |
| 99 | 103 | /** |
| 100 | 104 | * データの読み込み |
| 105 | + * | |
| 101 | 106 | * @param s 読み込み元データポインタ |
| 102 | - * @param nofs 読み込み元オフセット | |
| 107 | + * @param nofs 読み込み元オフセット | |
| 103 | 108 | * @return 正常に読み込めたときにtrue |
| 104 | 109 | */ |
| 105 | 110 | public boolean load(byte s[], int nofs) { |
| @@ -17,7 +17,8 @@ | ||
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * コンストラクタ |
| 20 | - * @param oke OKEデータ | |
| 20 | + * | |
| 21 | + * @param oke OKEデータ | |
| 21 | 22 | * @param n 配置場所ID |
| 22 | 23 | */ |
| 23 | 24 | public transData(cheOkeData oke, int n) { |
| @@ -31,6 +32,7 @@ | ||
| 31 | 32 | |
| 32 | 33 | /** |
| 33 | 34 | * コンストラクタ |
| 35 | + * | |
| 34 | 36 | * @param team チームデータ |
| 35 | 37 | */ |
| 36 | 38 | public transData(cheTeamData team) { |
| @@ -43,8 +45,9 @@ | ||
| 43 | 45 | |
| 44 | 46 | /** |
| 45 | 47 | * コンストラクタ |
| 48 | + * | |
| 46 | 49 | * @param team チームデータ |
| 47 | - * @param idx マッチデータ内インデックス | |
| 50 | + * @param idx マッチデータ内インデックス | |
| 48 | 51 | */ |
| 49 | 52 | public transData(cheTeamData team, int idx) { |
| 50 | 53 | obj = team; |
| @@ -60,7 +63,7 @@ | ||
| 60 | 63 | |
| 61 | 64 | public boolean isDataFlavorSupported(DataFlavor flavor) { |
| 62 | 65 | int i; |
| 63 | - for (i = 0 ; i < support_data.length ; i++) { | |
| 66 | + for (i = 0; i < support_data.length; i++) { | |
| 64 | 67 | if (flavor.equals(support_data[i]) == true) { |
| 65 | 68 | return true; |
| 66 | 69 | } |
| @@ -7,6 +7,7 @@ | ||
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * メイン |
| 10 | + * | |
| 10 | 11 | * @author fukui |
| 11 | 12 | */ |
| 12 | 13 | public class Main { |
| @@ -17,6 +18,7 @@ | ||
| 17 | 18 | |
| 18 | 19 | /** |
| 19 | 20 | * メッセージボックス表示 |
| 21 | + * | |
| 20 | 22 | * @param owner 親ダイアログボックス |
| 21 | 23 | * @param title タイトル |
| 22 | 24 | * @param mesg1 メッセージ一行目 |
| @@ -39,6 +41,7 @@ | ||
| 39 | 41 | |
| 40 | 42 | /** |
| 41 | 43 | * メッセージボックス表示 |
| 44 | + * | |
| 42 | 45 | * @param owner 親フレームウィンドウ |
| 43 | 46 | * @param title タイトル |
| 44 | 47 | * @param mesg1 メッセージ一行目 |
| @@ -61,6 +64,7 @@ | ||
| 61 | 64 | |
| 62 | 65 | /** |
| 63 | 66 | * 確認メッセージ表示 |
| 67 | + * | |
| 64 | 68 | * @param owner 親ダイアログボックス |
| 65 | 69 | * @param title タイトル |
| 66 | 70 | * @param mesg1 メッセージ一行目 |
| @@ -85,6 +89,7 @@ | ||
| 85 | 89 | |
| 86 | 90 | /** |
| 87 | 91 | * 確認メッセージ表示 |
| 92 | + * | |
| 88 | 93 | * @param owner 親フレームウィンドウ |
| 89 | 94 | * @param title タイトル |
| 90 | 95 | * @param mesg1 メッセージ一行目 |
| @@ -16,7 +16,9 @@ | ||
| 16 | 16 | */ |
| 17 | 17 | public class transOkeHandler extends TransferHandler { |
| 18 | 18 | |
| 19 | - /** コンストラクタ */ | |
| 19 | + /** | |
| 20 | + * コンストラクタ | |
| 21 | + */ | |
| 20 | 22 | public transOkeHandler() { |
| 21 | 23 | super(); |
| 22 | 24 | } |
| @@ -207,6 +207,7 @@ | ||
| 207 | 207 | |
| 208 | 208 | /** |
| 209 | 209 | * OKEデータをダンプ |
| 210 | + * | |
| 210 | 211 | * @param basename ファイル名の基本名 |
| 211 | 212 | */ |
| 212 | 213 | public void dump(String basename) { |
| @@ -12,6 +12,7 @@ | ||
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * CHEファイルデータ |
| 15 | + * | |
| 15 | 16 | * @author fukui |
| 16 | 17 | */ |
| 17 | 18 | public class cheFile { |
| @@ -43,6 +44,7 @@ | ||
| 43 | 44 | |
| 44 | 45 | /** |
| 45 | 46 | * ファイルからデータを読み出し |
| 47 | + * | |
| 46 | 48 | * @return 正常にCHEファイルを読み出せたときにtrue |
| 47 | 49 | */ |
| 48 | 50 | private boolean inner_load() { |
| @@ -108,6 +110,7 @@ | ||
| 108 | 110 | |
| 109 | 111 | /** |
| 110 | 112 | * コンストラクタ |
| 113 | + * | |
| 111 | 114 | * @param s CHEファイル名 |
| 112 | 115 | */ |
| 113 | 116 | public cheFile(String s) { |
| @@ -131,6 +134,7 @@ | ||
| 131 | 134 | |
| 132 | 135 | /** |
| 133 | 136 | * ファイルからデータを読みだす |
| 137 | + * | |
| 134 | 138 | * @return 正常に読み込めたときにtrue |
| 135 | 139 | */ |
| 136 | 140 | public boolean load() { |
| @@ -147,6 +151,7 @@ | ||
| 147 | 151 | |
| 148 | 152 | /** |
| 149 | 153 | * ファイルへデータを保存 |
| 154 | + * | |
| 150 | 155 | * @return 正常に保存できたときにtrue |
| 151 | 156 | */ |
| 152 | 157 | public boolean save() { |
| @@ -236,6 +241,7 @@ | ||
| 236 | 241 | |
| 237 | 242 | /** |
| 238 | 243 | * チーム数を取得 |
| 244 | + * | |
| 239 | 245 | * @return チーム数 |
| 240 | 246 | */ |
| 241 | 247 | public int get_team_max() { |
| @@ -244,6 +250,7 @@ | ||
| 244 | 250 | |
| 245 | 251 | /** |
| 246 | 252 | * OKE数を取得 |
| 253 | + * | |
| 247 | 254 | * @return OKE数 |
| 248 | 255 | */ |
| 249 | 256 | public int get_oke_max() { |
| @@ -252,6 +259,7 @@ | ||
| 252 | 259 | |
| 253 | 260 | /** |
| 254 | 261 | * ファイル名の取得 |
| 262 | + * | |
| 255 | 263 | * @return ファイル名 |
| 256 | 264 | */ |
| 257 | 265 | public String get_fname() { |
| @@ -260,6 +268,7 @@ | ||
| 260 | 268 | |
| 261 | 269 | /** |
| 262 | 270 | * ファイル名の設定 |
| 271 | + * | |
| 263 | 272 | * @param s ファイル名 |
| 264 | 273 | */ |
| 265 | 274 | public void set_fname(String s) { |
| @@ -268,7 +277,8 @@ | ||
| 268 | 277 | |
| 269 | 278 | /** |
| 270 | 279 | * チームデータの取得 |
| 271 | - * @param nidx インデックス | |
| 280 | + * | |
| 281 | + * @param nidx インデックス | |
| 272 | 282 | * @return チームデータ |
| 273 | 283 | */ |
| 274 | 284 | public cheTeamData get_team(int nidx) { |
| @@ -280,9 +290,10 @@ | ||
| 280 | 290 | |
| 281 | 291 | /** |
| 282 | 292 | * チームデータの設定 |
| 283 | - * @param nidx インデックス | |
| 293 | + * | |
| 294 | + * @param nidx インデックス | |
| 284 | 295 | * @param p チームデータ |
| 285 | - * @return 正常に設定できたときにtrue | |
| 296 | + * @return 正常に設定できたときにtrue | |
| 286 | 297 | */ |
| 287 | 298 | public boolean set_team(int nidx, cheTeamData p) { |
| 288 | 299 | int i; |
| @@ -323,7 +334,8 @@ | ||
| 323 | 334 | |
| 324 | 335 | /** |
| 325 | 336 | * チームデータの削除 |
| 326 | - * @param nidx インデックス | |
| 337 | + * | |
| 338 | + * @param nidx インデックス | |
| 327 | 339 | */ |
| 328 | 340 | public void remove_team(int nidx) { |
| 329 | 341 | if (nidx < 0 || nidx >= team_max) { |
| @@ -334,10 +346,10 @@ | ||
| 334 | 346 | } |
| 335 | 347 | |
| 336 | 348 | /** |
| 337 | - * チームデータの移動 | |
| 338 | - * 移動先が空ではない時には挿入 | |
| 339 | - * @param src 移動元インデックス | |
| 340 | - * @param dest 移動先インデックス | |
| 349 | + * チームデータの移動 移動先が空ではない時には挿入 | |
| 350 | + * | |
| 351 | + * @param src 移動元インデックス | |
| 352 | + * @param dest 移動先インデックス | |
| 341 | 353 | */ |
| 342 | 354 | public void move_team(int src, int dest) { |
| 343 | 355 | if (src < 0 || src >= team_max || dest < 0 || dest >= team_max |
| @@ -364,7 +376,8 @@ | ||
| 364 | 376 | |
| 365 | 377 | /** |
| 366 | 378 | * OKEの取得 |
| 367 | - * @param nidx インデックス | |
| 379 | + * | |
| 380 | + * @param nidx インデックス | |
| 368 | 381 | * @return OKEデータ |
| 369 | 382 | */ |
| 370 | 383 | public cheOkeData get_oke(int nidx) { |
| @@ -376,7 +389,8 @@ | ||
| 376 | 389 | |
| 377 | 390 | /** |
| 378 | 391 | * OKEデータの設定 |
| 379 | - * @param nidx インデックス | |
| 392 | + * | |
| 393 | + * @param nidx インデックス | |
| 380 | 394 | * @param p OKEデータ |
| 381 | 395 | */ |
| 382 | 396 | public void set_oke(int nidx, cheOkeData p) { |
| @@ -388,6 +402,7 @@ | ||
| 388 | 402 | |
| 389 | 403 | /** |
| 390 | 404 | * 指定したOKEデータと同じ内容の登録済みデータを検索 |
| 405 | + * | |
| 391 | 406 | * @param p OKEデータ |
| 392 | 407 | * @return 発見したインデックス。見つからない場合-1 |
| 393 | 408 | */ |
| @@ -403,9 +418,9 @@ | ||
| 403 | 418 | |
| 404 | 419 | /** |
| 405 | 420 | * OKEデータを追加 |
| 421 | + * | |
| 406 | 422 | * @param p OKEデータ |
| 407 | - * @return 正常に追加できたときにOKEデータ。 | |
| 408 | - * 失敗したときにはnull | |
| 423 | + * @return 正常に追加できたときにOKEデータ。 失敗したときにはnull | |
| 409 | 424 | */ |
| 410 | 425 | public cheOkeData add_oke(cheOkeData p) { |
| 411 | 426 | int i; |
| @@ -425,6 +440,7 @@ | ||
| 425 | 440 | |
| 426 | 441 | /** |
| 427 | 442 | * マッチデータ名称を取得 |
| 443 | + * | |
| 428 | 444 | * @return マッチデータ名。マッチデータではない場合null |
| 429 | 445 | */ |
| 430 | 446 | public String get_match_name() { |
| @@ -450,6 +466,7 @@ | ||
| 450 | 466 | |
| 451 | 467 | /** |
| 452 | 468 | * マッチデータ名称を設定 |
| 469 | + * | |
| 453 | 470 | * @param s マッチデータ名 |
| 454 | 471 | */ |
| 455 | 472 | public void set_match_name(String s) { |
| @@ -474,6 +491,7 @@ | ||
| 474 | 491 | |
| 475 | 492 | /** |
| 476 | 493 | * マッチ設定データを取得 |
| 494 | + * | |
| 477 | 495 | * @return マッチ設定(336byte)。マッチデータではない場合null |
| 478 | 496 | */ |
| 479 | 497 | public byte[] get_match_data() { |
| @@ -487,6 +505,7 @@ | ||
| 487 | 505 | |
| 488 | 506 | /** |
| 489 | 507 | * マッチ設定データを設定 |
| 508 | + * | |
| 490 | 509 | * @param p マッチ設定(336byte) |
| 491 | 510 | * @return 正常に設定できたときtrue |
| 492 | 511 | */ |
| @@ -549,6 +568,7 @@ | ||
| 549 | 568 | |
| 550 | 569 | /** |
| 551 | 570 | * チームデータかどうかを取得 |
| 571 | + * | |
| 552 | 572 | * @return チームデータの時にtrue |
| 553 | 573 | */ |
| 554 | 574 | public boolean is_teamfile() { |
| @@ -557,6 +577,7 @@ | ||
| 557 | 577 | |
| 558 | 578 | /** |
| 559 | 579 | * ファイル名に対応するCHEファイルデータを取得 |
| 580 | + * | |
| 560 | 581 | * @param s ファイル名 |
| 561 | 582 | * @return CHEファイルデータ。見つからない場合にnull |
| 562 | 583 | */ |
| @@ -6,6 +6,7 @@ | ||
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * 名称データ |
| 9 | + * | |
| 9 | 10 | * @author fukui |
| 10 | 11 | */ |
| 11 | 12 | public class cheNameDocument extends PlainDocument { |
| @@ -8,6 +8,7 @@ | ||
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * チームデータ |
| 11 | + * | |
| 11 | 12 | * @author fukui |
| 12 | 13 | */ |
| 13 | 14 | public class cheTeamData { |
| @@ -27,10 +28,11 @@ | ||
| 27 | 28 | |
| 28 | 29 | /** |
| 29 | 30 | * データの読み込み |
| 31 | + * | |
| 30 | 32 | * @param s 読み込み元データポインタ |
| 31 | - * @param nofs 読み込み元オフセット | |
| 32 | - * @param che CHEファイルデータ | |
| 33 | - * @return | |
| 33 | + * @param nofs 読み込み元オフセット | |
| 34 | + * @param che CHEファイルデータ | |
| 35 | + * @return | |
| 34 | 36 | */ |
| 35 | 37 | private boolean inner_load(byte s[], int nofs, cheFile che) { |
| 36 | 38 | byte[] work = new byte[39]; |
| @@ -111,9 +113,10 @@ | ||
| 111 | 113 | |
| 112 | 114 | /** |
| 113 | 115 | * コンストラクタ |
| 116 | + * | |
| 114 | 117 | * @param s 読み込み元データポインタ |
| 115 | - * @param nofs 読み込み元オフセット | |
| 116 | - * @param che CHEデータ | |
| 118 | + * @param nofs 読み込み元オフセット | |
| 119 | + * @param che CHEデータ | |
| 117 | 120 | */ |
| 118 | 121 | public cheTeamData(byte s[], int nofs, cheFile che) { |
| 119 | 122 | oke = new cheOkeData[3]; |
| @@ -125,6 +128,7 @@ | ||
| 125 | 128 | |
| 126 | 129 | /** |
| 127 | 130 | * チームデータのコピー |
| 131 | + * | |
| 128 | 132 | * @param p コピー先チームデータ |
| 129 | 133 | */ |
| 130 | 134 | public void copy(cheTeamData p) { |
| @@ -143,10 +147,11 @@ | ||
| 143 | 147 | |
| 144 | 148 | /** |
| 145 | 149 | * チームデータの読み込み |
| 150 | + * | |
| 146 | 151 | * @param s 読み込み元データポインタ |
| 147 | - * @param nofs 読み込み元オフセット | |
| 148 | - * @param che CHEデータ | |
| 149 | - * @return | |
| 152 | + * @param nofs 読み込み元オフセット | |
| 153 | + * @param che CHEデータ | |
| 154 | + * @return | |
| 150 | 155 | */ |
| 151 | 156 | public boolean load(byte s[], int nofs, cheFile che) { |
| 152 | 157 | return inner_load(s, nofs, che); |
| @@ -154,8 +159,9 @@ | ||
| 154 | 159 | |
| 155 | 160 | /** |
| 156 | 161 | * チームデータの保存 |
| 162 | + * | |
| 157 | 163 | * @param s 保存先データポインタ |
| 158 | - * @param nofs 保存先オフセット | |
| 164 | + * @param nofs 保存先オフセット | |
| 159 | 165 | * @return 正常に保存できたときにtrue |
| 160 | 166 | */ |
| 161 | 167 | public boolean save(byte s[], int nofs) { |
| @@ -224,8 +230,9 @@ | ||
| 224 | 230 | |
| 225 | 231 | /** |
| 226 | 232 | * 指定された位置が利用可能かどうかをチェック |
| 227 | - * @param nidx チェック元OKE番号 | |
| 228 | - * @param npos 配置場所ID | |
| 233 | + * | |
| 234 | + * @param nidx チェック元OKE番号 | |
| 235 | + * @param npos 配置場所ID | |
| 229 | 236 | * @return 配置できるときにtrue |
| 230 | 237 | */ |
| 231 | 238 | public boolean check_position(int nidx, int npos) { |
| @@ -243,9 +250,10 @@ | ||
| 243 | 250 | |
| 244 | 251 | /** |
| 245 | 252 | * OKEデータを追加する |
| 246 | - * @param nidx 追加位置 | |
| 253 | + * | |
| 254 | + * @param nidx 追加位置 | |
| 247 | 255 | * @param p OKEデータ |
| 248 | - * @param npos 配置場所ID | |
| 256 | + * @param npos 配置場所ID | |
| 249 | 257 | * @return 正常に追加できたときにtrue |
| 250 | 258 | */ |
| 251 | 259 | public boolean add_member(int nidx, cheOkeData p, int npos) { |
| @@ -274,8 +282,9 @@ | ||
| 274 | 282 | |
| 275 | 283 | /** |
| 276 | 284 | * OKEデータの削除 |
| 277 | - * @param nidx OKE番号 | |
| 278 | - * @return | |
| 285 | + * | |
| 286 | + * @param nidx OKE番号 | |
| 287 | + * @return | |
| 279 | 288 | */ |
| 280 | 289 | public boolean del_member(int nidx) { |
| 281 | 290 | if (nidx < 0 || nidx > 2) { |
| @@ -288,7 +297,8 @@ | ||
| 288 | 297 | |
| 289 | 298 | /** |
| 290 | 299 | * OKEデータの取得 |
| 291 | - * @param nidx OKE番号 | |
| 300 | + * | |
| 301 | + * @param nidx OKE番号 | |
| 292 | 302 | * @return OKEデータ。範囲外もしくは存在しないときにnull |
| 293 | 303 | */ |
| 294 | 304 | public cheOkeData get_member(int nidx) { |
| @@ -300,7 +310,8 @@ | ||
| 300 | 310 | |
| 301 | 311 | /** |
| 302 | 312 | * OKEデータの設定 |
| 303 | - * @param nidx OKE番号 | |
| 313 | + * | |
| 314 | + * @param nidx OKE番号 | |
| 304 | 315 | * @param p OKEデータ |
| 305 | 316 | */ |
| 306 | 317 | public void set_member(int nidx, cheOkeData p) { |
| @@ -312,6 +323,7 @@ | ||
| 312 | 323 | |
| 313 | 324 | /** |
| 314 | 325 | * ユニークなOKEデータ一覧を取得 |
| 326 | + * | |
| 315 | 327 | * @return OKEデータ配列 |
| 316 | 328 | */ |
| 317 | 329 | public cheOkeData[] get_unique_member() { |
| @@ -334,7 +346,8 @@ | ||
| 334 | 346 | |
| 335 | 347 | /** |
| 336 | 348 | * 指定したOKEの配置場所を取得 |
| 337 | - * @param nidx OKE番号 | |
| 349 | + * | |
| 350 | + * @param nidx OKE番号 | |
| 338 | 351 | * @return 配置場所ID |
| 339 | 352 | */ |
| 340 | 353 | public int get_position(int nidx) { |
| @@ -346,7 +359,8 @@ | ||
| 346 | 359 | |
| 347 | 360 | /** |
| 348 | 361 | * 指定したOKEの配置場所を設定 |
| 349 | - * @param nidx OKE番号 | |
| 362 | + * | |
| 363 | + * @param nidx OKE番号 | |
| 350 | 364 | * @param n 配置場所ID |
| 351 | 365 | */ |
| 352 | 366 | public void set_position(int nidx, int n) { |
| @@ -362,6 +376,7 @@ | ||
| 362 | 376 | |
| 363 | 377 | /** |
| 364 | 378 | * チーム名称の取得 |
| 379 | + * | |
| 365 | 380 | * @return 名称 |
| 366 | 381 | */ |
| 367 | 382 | public String get_team_name() { |
| @@ -370,6 +385,7 @@ | ||
| 370 | 385 | |
| 371 | 386 | /** |
| 372 | 387 | * オーナー名の取得 |
| 388 | + * | |
| 373 | 389 | * @return オーナー名 |
| 374 | 390 | */ |
| 375 | 391 | public String get_owner_name() { |
| @@ -378,6 +394,7 @@ | ||
| 378 | 394 | |
| 379 | 395 | /** |
| 380 | 396 | * 年の取得 |
| 397 | + * | |
| 381 | 398 | * @return 年 |
| 382 | 399 | */ |
| 383 | 400 | public int get_year() { |
| @@ -386,6 +403,7 @@ | ||
| 386 | 403 | |
| 387 | 404 | /** |
| 388 | 405 | * 月の取得 |
| 406 | + * | |
| 389 | 407 | * @return 月 |
| 390 | 408 | */ |
| 391 | 409 | public int get_month() { |
| @@ -394,6 +412,7 @@ | ||
| 394 | 412 | |
| 395 | 413 | /** |
| 396 | 414 | * 日の取得 |
| 415 | + * | |
| 397 | 416 | * @return 日 |
| 398 | 417 | */ |
| 399 | 418 | public int get_day() { |
| @@ -402,6 +421,7 @@ | ||
| 402 | 421 | |
| 403 | 422 | /** |
| 404 | 423 | * レーティング値の取得 |
| 424 | + * | |
| 405 | 425 | * @return レーティング値 |
| 406 | 426 | */ |
| 407 | 427 | public int get_rating() { |
| @@ -410,6 +430,7 @@ | ||
| 410 | 430 | |
| 411 | 431 | /** |
| 412 | 432 | * チーム名称の設定 |
| 433 | + * | |
| 413 | 434 | * @param s 名称 |
| 414 | 435 | */ |
| 415 | 436 | public void set_team_name(String s) { |
| @@ -418,6 +439,7 @@ | ||
| 418 | 439 | |
| 419 | 440 | /** |
| 420 | 441 | * オーナー名の設定 |
| 442 | + * | |
| 421 | 443 | * @param s オーナー名 |
| 422 | 444 | */ |
| 423 | 445 | public void set_owner_name(String s) { |
| @@ -426,6 +448,7 @@ | ||
| 426 | 448 | |
| 427 | 449 | /** |
| 428 | 450 | * 作成日付の設定 |
| 451 | + * | |
| 429 | 452 | * @param y 年 |
| 430 | 453 | * @param m 月 |
| 431 | 454 | * @param d 日 |
| @@ -438,6 +461,7 @@ | ||
| 438 | 461 | |
| 439 | 462 | /** |
| 440 | 463 | * レーティング値の設定 |
| 464 | + * | |
| 441 | 465 | * @param n レーティング値 |
| 442 | 466 | */ |
| 443 | 467 | public void set_rating(int n) { |
| @@ -446,6 +470,7 @@ | ||
| 446 | 470 | |
| 447 | 471 | /** |
| 448 | 472 | * エンブレムの設定 |
| 473 | + * | |
| 449 | 474 | * @param emb エンブレムデータ |
| 450 | 475 | */ |
| 451 | 476 | public void set_emblem(cheEmblem emb) { |
| @@ -454,6 +479,7 @@ | ||
| 454 | 479 | |
| 455 | 480 | /** |
| 456 | 481 | * エンブレムの設定 |
| 482 | + * | |
| 457 | 483 | * @param oke OKEデータ |
| 458 | 484 | */ |
| 459 | 485 | public void set_emblem(cheOkeData oke) { |
| @@ -462,6 +488,7 @@ | ||
| 462 | 488 | |
| 463 | 489 | /** |
| 464 | 490 | * エンブレムの取得 |
| 491 | + * | |
| 465 | 492 | * @return エンブレムデータ |
| 466 | 493 | */ |
| 467 | 494 | public cheEmblem get_emblem() { |
| @@ -470,6 +497,7 @@ | ||
| 470 | 497 | |
| 471 | 498 | /** |
| 472 | 499 | * 有効フラグの取得 |
| 500 | + * | |
| 473 | 501 | * @return 有効フラグ |
| 474 | 502 | */ |
| 475 | 503 | public boolean is_enable() { |
| @@ -478,6 +506,7 @@ | ||
| 478 | 506 | |
| 479 | 507 | /** |
| 480 | 508 | * 有効フラグの設定 |
| 509 | + * | |
| 481 | 510 | * @param b 有効フラグ |
| 482 | 511 | */ |
| 483 | 512 | public void set_enable(boolean b) { |
| @@ -486,6 +515,7 @@ | ||
| 486 | 515 | |
| 487 | 516 | /** |
| 488 | 517 | * データファイル名称の取得 |
| 518 | + * | |
| 489 | 519 | * @return ファイル名 |
| 490 | 520 | */ |
| 491 | 521 | public String get_data_name() { |
| @@ -494,7 +524,8 @@ | ||
| 494 | 524 | |
| 495 | 525 | /** |
| 496 | 526 | * 指定されたOKの配置場所名称を取得 |
| 497 | - * @param nidx OKE番号 | |
| 527 | + * | |
| 528 | + * @param nidx OKE番号 | |
| 498 | 529 | * @return 配置場所名称 |
| 499 | 530 | */ |
| 500 | 531 | public String member_pos(int nidx) { |
| @@ -548,6 +579,7 @@ | ||
| 548 | 579 | |
| 549 | 580 | /** |
| 550 | 581 | * メンバーリスト文字列の作成 |
| 582 | + * | |
| 551 | 583 | * @return メンバーリスト文字列 |
| 552 | 584 | */ |
| 553 | 585 | public String[] make_member_list() { |
| @@ -21,8 +21,11 @@ | ||
| 21 | 21 | cheFile matchdata; |
| 22 | 22 | DefaultListModel teamdata; |
| 23 | 23 | |
| 24 | - /** Creates new form MatchDataPanel | |
| 25 | - * @param p */ | |
| 24 | + /** | |
| 25 | + * Creates new form MatchDataPanel | |
| 26 | + * | |
| 27 | + * @param p | |
| 28 | + */ | |
| 26 | 29 | public MatchDataPanel(cheFile p) { |
| 27 | 30 | if (p == null) { |
| 28 | 31 | p = new cheFile(); |
| @@ -91,6 +94,7 @@ | ||
| 91 | 94 | |
| 92 | 95 | /** |
| 93 | 96 | * チームリストの取得 |
| 97 | + * | |
| 94 | 98 | * @return チームリストパネル |
| 95 | 99 | */ |
| 96 | 100 | private TeamListPanel get_teampanel() { |
| @@ -100,6 +104,7 @@ | ||
| 100 | 104 | |
| 101 | 105 | /** |
| 102 | 106 | * 現在選択中のチームデータを取得 |
| 107 | + * | |
| 103 | 108 | * @return チームデータ |
| 104 | 109 | */ |
| 105 | 110 | public cheTeamData get_current_team() { |
| @@ -112,6 +117,7 @@ | ||
| 112 | 117 | |
| 113 | 118 | /** |
| 114 | 119 | * 現在の選択位置を取得 |
| 120 | + * | |
| 115 | 121 | * @return 選択位置 |
| 116 | 122 | */ |
| 117 | 123 | public int get_current_index() { |
| @@ -120,6 +126,7 @@ | ||
| 120 | 126 | |
| 121 | 127 | /** |
| 122 | 128 | * チームデータを設定 |
| 129 | + * | |
| 123 | 130 | * @param p チームデータ |
| 124 | 131 | * @param n 設定位置 |
| 125 | 132 | */ |
| @@ -135,9 +142,9 @@ | ||
| 135 | 142 | if (n == -1) { |
| 136 | 143 | Main.mesg_box((Dialog) (getRootPane().getParent()), |
| 137 | 144 | java.util.ResourceBundle.getBundle( |
| 138 | - "chexaformation/resource").getString("addTEAM"), | |
| 145 | + "chexaformation/resource").getString("addTEAM"), | |
| 139 | 146 | java.util.ResourceBundle.getBundle( |
| 140 | - "chexaformation/resource"). | |
| 147 | + "chexaformation/resource"). | |
| 141 | 148 | getString("errNoSpaceTeam"), ""); |
| 142 | 149 | return; |
| 143 | 150 | } |
| @@ -146,9 +153,9 @@ | ||
| 146 | 153 | if (matchdata.set_team(n, p) == false) { |
| 147 | 154 | Main.mesg_box((Dialog) (getRootPane().getParent()), |
| 148 | 155 | java.util.ResourceBundle.getBundle( |
| 149 | - "chexaformation/resource").getString("addTEAM"), | |
| 156 | + "chexaformation/resource").getString("addTEAM"), | |
| 150 | 157 | java.util.ResourceBundle.getBundle( |
| 151 | - "chexaformation/resource"). | |
| 158 | + "chexaformation/resource"). | |
| 152 | 159 | getString("errNoSpaceTeam"), ""); |
| 153 | 160 | } else { |
| 154 | 161 | update_teamlist(); |
| @@ -158,18 +165,19 @@ | ||
| 158 | 165 | |
| 159 | 166 | /** |
| 160 | 167 | * チームデータを移動 |
| 161 | - * @param src_idx 移動元インデックス | |
| 162 | - * @param dest_idx 移動先インデックス | |
| 168 | + * | |
| 169 | + * @param src_idx 移動元インデックス | |
| 170 | + * @param dest_idx 移動先インデックス | |
| 163 | 171 | */ |
| 164 | - public void move_team(int src_idx,int dest_idx) { | |
| 172 | + public void move_team(int src_idx, int dest_idx) { | |
| 165 | 173 | matchdata.move_team(src_idx, dest_idx); |
| 166 | 174 | update_teamlist(); |
| 167 | 175 | } |
| 168 | 176 | |
| 169 | - /** This method is called from within the constructor to | |
| 170 | - * initialize the form. | |
| 171 | - * WARNING: Do NOT modify this code. The content of this method is | |
| 172 | - * always regenerated by the Form Editor. | |
| 177 | + /** | |
| 178 | + * This method is called from within the constructor to initialize the form. | |
| 179 | + * WARNING: Do NOT modify this code. The content of this method is always | |
| 180 | + * regenerated by the Form Editor. | |
| 173 | 181 | */ |
| 174 | 182 | @SuppressWarnings("unchecked") |
| 175 | 183 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
| @@ -293,11 +301,11 @@ | ||
| 293 | 301 | private void saveMatchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveMatchActionPerformed |
| 294 | 302 | int nret; |
| 295 | 303 | JFileChooser fdlg = new JFileChooser(Main.cheMatchDataDir); |
| 296 | - String filterTitle = | |
| 297 | - java.util.ResourceBundle.getBundle("chexaformation/resource"). | |
| 304 | + String filterTitle | |
| 305 | + = java.util.ResourceBundle.getBundle("chexaformation/resource"). | |
| 298 | 306 | getString("filterTitleCHE"); |
| 299 | - FileNameExtensionFilter ffilter = | |
| 300 | - new FileNameExtensionFilter(filterTitle, "CHE"); | |
| 307 | + FileNameExtensionFilter ffilter | |
| 308 | + = new FileNameExtensionFilter(filterTitle, "CHE"); | |
| 301 | 309 | fdlg.setFileFilter(ffilter); |
| 302 | 310 | fdlg.setSelectedFile(new File(matchdata.get_fname())); |
| 303 | 311 | nret = fdlg.showSaveDialog(getRootPane().getParent()); |
| @@ -324,18 +332,18 @@ | ||
| 324 | 332 | if (matchdata.save() == true) { |
| 325 | 333 | Main.mesg_box((Dialog) (getRootPane().getParent()), |
| 326 | 334 | java.util.ResourceBundle.getBundle( |
| 327 | - "chexaformation/resource"). | |
| 335 | + "chexaformation/resource"). | |
| 328 | 336 | getString("titleSaveMatch"), |
| 329 | 337 | java.util.ResourceBundle.getBundle( |
| 330 | - "chexaformation/resource"). | |
| 338 | + "chexaformation/resource"). | |
| 331 | 339 | getString("mesgSaveMatch"), ""); |
| 332 | 340 | } else { |
| 333 | 341 | Main.mesg_box((Dialog) (getRootPane().getParent()), |
| 334 | 342 | java.util.ResourceBundle.getBundle( |
| 335 | - "chexaformation/resource"). | |
| 343 | + "chexaformation/resource"). | |
| 336 | 344 | getString("titleSaveMatch"), |
| 337 | 345 | java.util.ResourceBundle.getBundle( |
| 338 | - "chexaformation/resource"). | |
| 346 | + "chexaformation/resource"). | |
| 339 | 347 | getString("failSaveMatch"), |
| 340 | 348 | ifile.getAbsolutePath()); |
| 341 | 349 | } |
| @@ -17,7 +17,9 @@ | ||
| 17 | 17 | */ |
| 18 | 18 | public class mainForm extends javax.swing.JFrame { |
| 19 | 19 | |
| 20 | - /** Creates new form mainForm */ | |
| 20 | + /** | |
| 21 | + * Creates new form mainForm | |
| 22 | + */ | |
| 21 | 23 | public mainForm() { |
| 22 | 24 | initComponents(); |
| 23 | 25 | } |
| @@ -26,10 +28,10 @@ | ||
| 26 | 28 | return mainPanel; |
| 27 | 29 | } |
| 28 | 30 | |
| 29 | - /** This method is called from within the constructor to | |
| 30 | - * initialize the form. | |
| 31 | - * WARNING: Do NOT modify this code. The content of this method is | |
| 32 | - * always regenerated by the Form Editor. | |
| 31 | + /** | |
| 32 | + * This method is called from within the constructor to initialize the form. | |
| 33 | + * WARNING: Do NOT modify this code. The content of this method is always | |
| 34 | + * regenerated by the Form Editor. | |
| 33 | 35 | */ |
| 34 | 36 | @SuppressWarnings("unchecked") |
| 35 | 37 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
| @@ -88,7 +90,7 @@ | ||
| 88 | 90 | private void openTeamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openTeamActionPerformed |
| 89 | 91 | JDialog dlg = new JDialog(this, |
| 90 | 92 | java.util.ResourceBundle.getBundle( |
| 91 | - "chexaformation/resource").getString("titleTeamWindow"), | |
| 93 | + "chexaformation/resource").getString("titleTeamWindow"), | |
| 92 | 94 | false); |
| 93 | 95 | dlg.add(new TeamPanel()); |
| 94 | 96 | dlg.pack(); |
| @@ -101,11 +103,11 @@ | ||
| 101 | 103 | private void makeMatchDataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_makeMatchDataActionPerformed |
| 102 | 104 | int nret; |
| 103 | 105 | JFileChooser fdlg = new JFileChooser(Main.cheMatchDataDir); |
| 104 | - String filterTitle = | |
| 105 | - java.util.ResourceBundle.getBundle("chexaformation/resource"). | |
| 106 | + String filterTitle | |
| 107 | + = java.util.ResourceBundle.getBundle("chexaformation/resource"). | |
| 106 | 108 | getString("filterTitleCHE"); |
| 107 | - FileNameExtensionFilter ffilter = | |
| 108 | - new FileNameExtensionFilter(filterTitle, "CHE"); | |
| 109 | + FileNameExtensionFilter ffilter | |
| 110 | + = new FileNameExtensionFilter(filterTitle, "CHE"); | |
| 109 | 111 | fdlg.setFileFilter(ffilter); |
| 110 | 112 | nret = fdlg.showOpenDialog(getRootPane().getParent()); |
| 111 | 113 | if (nret == JFileChooser.APPROVE_OPTION) { |
| @@ -116,7 +118,7 @@ | ||
| 116 | 118 | if (che.is_teamfile() == false) { |
| 117 | 119 | JDialog dlg = new JDialog(this, |
| 118 | 120 | java.util.ResourceBundle.getBundle( |
| 119 | - "chexaformation/resource"). | |
| 121 | + "chexaformation/resource"). | |
| 120 | 122 | getString("titleMatchWindow"), |
| 121 | 123 | false); |
| 122 | 124 | che.set_fname("NEWMATCH.CHE"); |
| @@ -130,9 +132,9 @@ | ||
| 130 | 132 | } else { |
| 131 | 133 | Main.mesg_box(this, |
| 132 | 134 | java.util.ResourceBundle.getBundle( |
| 133 | - "chexaformation/resource").getString("loadCHE"), | |
| 135 | + "chexaformation/resource").getString("loadCHE"), | |
| 134 | 136 | java.util.ResourceBundle.getBundle( |
| 135 | - "chexaformation/resource"). | |
| 137 | + "chexaformation/resource"). | |
| 136 | 138 | getString("errNotMatchData"), |
| 137 | 139 | ifile.getAbsolutePath()); |
| 138 | 140 | } |
| @@ -139,9 +141,9 @@ | ||
| 139 | 141 | } else { |
| 140 | 142 | Main.mesg_box(this, |
| 141 | 143 | java.util.ResourceBundle.getBundle( |
| 142 | - "chexaformation/resource").getString("loadCHE"), | |
| 144 | + "chexaformation/resource").getString("loadCHE"), | |
| 143 | 145 | java.util.ResourceBundle.getBundle( |
| 144 | - "chexaformation/resource").getString("faileReadCHE"), | |
| 146 | + "chexaformation/resource").getString("faileReadCHE"), | |
| 145 | 147 | ifile.getAbsolutePath()); |
| 146 | 148 | } |
| 147 | 149 | } |
| @@ -14,7 +14,9 @@ | ||
| 14 | 14 | */ |
| 15 | 15 | public class mesgPanel extends javax.swing.JPanel { |
| 16 | 16 | |
| 17 | - /** Creates new form mesgPanel */ | |
| 17 | + /** | |
| 18 | + * Creates new form mesgPanel | |
| 19 | + */ | |
| 18 | 20 | public mesgPanel() { |
| 19 | 21 | initComponents(); |
| 20 | 22 | } |
| @@ -21,6 +23,7 @@ | ||
| 21 | 23 | |
| 22 | 24 | /** |
| 23 | 25 | * 一行目のラベルコントロールを取得 |
| 26 | + * | |
| 24 | 27 | * @return ラベル |
| 25 | 28 | */ |
| 26 | 29 | public JLabel getMesg1() { |
| @@ -29,6 +32,7 @@ | ||
| 29 | 32 | |
| 30 | 33 | /** |
| 31 | 34 | * 二行目のラベルコントロールを取得 |
| 35 | + * | |
| 32 | 36 | * @return ラベル |
| 33 | 37 | */ |
| 34 | 38 | public JLabel getMesg2() { |
| @@ -35,10 +39,10 @@ | ||
| 35 | 39 | return mesg2; |
| 36 | 40 | } |
| 37 | 41 | |
| 38 | - /** This method is called from within the constructor to | |
| 39 | - * initialize the form. | |
| 40 | - * WARNING: Do NOT modify this code. The content of this method is | |
| 41 | - * always regenerated by the Form Editor. | |
| 42 | + /** | |
| 43 | + * This method is called from within the constructor to initialize the form. | |
| 44 | + * WARNING: Do NOT modify this code. The content of this method is always | |
| 45 | + * regenerated by the Form Editor. | |
| 42 | 46 | */ |
| 43 | 47 | @SuppressWarnings("unchecked") |
| 44 | 48 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |
| @@ -16,7 +16,9 @@ | ||
| 16 | 16 | |
| 17 | 17 | boolean bconfirm; |
| 18 | 18 | |
| 19 | - /** Creates new form mesgPanel */ | |
| 19 | + /** | |
| 20 | + * Creates new form mesgPanel | |
| 21 | + */ | |
| 20 | 22 | public confirmPanel() { |
| 21 | 23 | bconfirm = false; |
| 22 | 24 | initComponents(); |
| @@ -24,6 +26,7 @@ | ||
| 24 | 26 | |
| 25 | 27 | /** |
| 26 | 28 | * 一行目のラベルコントロールを取得 |
| 29 | + * | |
| 27 | 30 | * @return ラベル |
| 28 | 31 | */ |
| 29 | 32 | public JLabel getMesg1() { |
| @@ -32,6 +35,7 @@ | ||
| 32 | 35 | |
| 33 | 36 | /** |
| 34 | 37 | * 二行目のラベルコントロールを取得 |
| 38 | + * | |
| 35 | 39 | * @return ラベル |
| 36 | 40 | */ |
| 37 | 41 | public JLabel getMesg2() { |
| @@ -40,6 +44,7 @@ | ||
| 40 | 44 | |
| 41 | 45 | /** |
| 42 | 46 | * 押した確認ボタンを取得 |
| 47 | + * | |
| 43 | 48 | * @return YESボタンを押したときにはtrue |
| 44 | 49 | */ |
| 45 | 50 | public boolean isConfirm() { |
| @@ -46,10 +51,10 @@ | ||
| 46 | 51 | return bconfirm; |
| 47 | 52 | } |
| 48 | 53 | |
| 49 | - /** This method is called from within the constructor to | |
| 50 | - * initialize the form. | |
| 51 | - * WARNING: Do NOT modify this code. The content of this method is | |
| 52 | - * always regenerated by the Form Editor. | |
| 54 | + /** | |
| 55 | + * This method is called from within the constructor to initialize the form. | |
| 56 | + * WARNING: Do NOT modify this code. The content of this method is always | |
| 57 | + * regenerated by the Form Editor. | |
| 53 | 58 | */ |
| 54 | 59 | @SuppressWarnings("unchecked") |
| 55 | 60 | // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents |