• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

OmegaT の背景に画像を表示します。


Commit MetaInfo

Revision22 (tree)
Time2014-05-11 23:02:57
Authoryu-tang

Log Message

リファクタリングで不要になったクラスを削除

Change Summary

  • delete: trunk/src/jp/sourceforge/users/yutang/omegat/plugin/moenizer/config/ColorConfig.java
  • delete: trunk/src/jp/sourceforge/users/yutang/omegat/plugin/moenizer/config/SimpleImageConfig.java

Incremental Difference

--- trunk/src/jp/sourceforge/users/yutang/omegat/plugin/moenizer/config/ColorConfig.java (revision 21)
+++ trunk/src/jp/sourceforge/users/yutang/omegat/plugin/moenizer/config/ColorConfig.java (nonexistent)
@@ -1,51 +0,0 @@
1-/**************************************************************************
2- Moenizer - Allow to set background image for OmegaT.
3-
4- Copyright (C) 2014 Yu Tang
5- Home page: http://sourceforge.jp/users/yu-tang/
6- Support center: http://sourceforge.jp/users/yu-tang/pf/Moenizer/
7-
8- This file is part of plugin for OmegaT.
9- http://www.omegat.org/
10-
11- License: GNU GPL version 3 or (at your option) any later version.
12-
13- You should have received a copy of the GNU General Public License
14- along with this program. If not, see <http://www.gnu.org/licenses/>.
15- **************************************************************************/
16-
17-package jp.sourceforge.users.yutang.omegat.plugin.moenizer.config;
18-
19-import groovy.util.ConfigObject;
20-import java.awt.Color;
21-
22-/**
23- *
24- * @author Yu-Tang
25- */
26-public class ColorConfig extends Config {
27-
28- private final Color color;
29-
30- public ColorConfig(String name, ConfigObject conf) {
31- this(name, (Integer) conf.get(Config.KEY_INDEX),
32- (Boolean) conf.get(Config.KEY_ENABLED),
33- (Integer) conf.get(Config.KEY_RGB));
34- }
35-
36- public ColorConfig(String name, int index, boolean enabled,
37- int rgb) {
38- super(name, index, enabled);
39- this.color = new Color(rgb);
40- }
41-
42- @Override
43- ProviderType getProviderType() {
44- return Config.ProviderType.Color;
45- }
46-
47- public Color getColor() {
48- return color;
49- }
50-
51-}
--- trunk/src/jp/sourceforge/users/yutang/omegat/plugin/moenizer/config/SimpleImageConfig.java (revision 21)
+++ trunk/src/jp/sourceforge/users/yutang/omegat/plugin/moenizer/config/SimpleImageConfig.java (nonexistent)
@@ -1,57 +0,0 @@
1-/**************************************************************************
2- Moenizer - Allow to set background image for OmegaT.
3-
4- Copyright (C) 2014 Yu Tang
5- Home page: http://sourceforge.jp/users/yu-tang/
6- Support center: http://sourceforge.jp/users/yu-tang/pf/Moenizer/
7-
8- This file is part of plugin for OmegaT.
9- http://www.omegat.org/
10-
11- License: GNU GPL version 3 or (at your option) any later version.
12-
13- You should have received a copy of the GNU General Public License
14- along with this program. If not, see <http://www.gnu.org/licenses/>.
15- **************************************************************************/
16-
17-package jp.sourceforge.users.yutang.omegat.plugin.moenizer.config;
18-
19-import groovy.util.ConfigObject;
20-
21-/**
22- *
23- * @author Yu-Tang
24- */
25-public class SimpleImageConfig extends Config {
26-
27- private final int opacity;
28- private final String image;
29-
30- public SimpleImageConfig(String name, ConfigObject conf) {
31- this(name, (Integer) conf.get(Config.KEY_INDEX),
32- (Boolean) conf.get(Config.KEY_ENABLED),
33- (Integer) conf.get(Config.KEY_OPACITY),
34- (String) conf.get(Config.KEY_IMAGE));
35- }
36-
37- public SimpleImageConfig(String name, int index, boolean enabled,
38- int opacity, String image) {
39- super(name, index, enabled);
40- this.opacity = opacity;
41- this.image = image;
42- }
43-
44- @Override
45- ProviderType getProviderType() {
46- return Config.ProviderType.SimpleImage;
47- }
48-
49- public int getOpacity() {
50- return opacity;
51- }
52-
53- public String getImage() {
54- return image;
55- }
56-
57-}