*/
private static final String PROXY_USE = "network.proxy.use";
- public boolean getUseProxy() {
+ public boolean getProxyUse() {
return config.getBoolean(PROXY_USE, false);
}
}
private static final String COMMENT_SIZE_MANUAL = "comment.size.manual";
- public Integer getCommentSizeManual() {
- return config.getInteger(COMMENT_SIZE_MANUAL, null);
+ public String getCommentSizeManual() {
+ return config.getString(COMMENT_SIZE_MANUAL, "");
}
- public void setCommentSizeManual(Integer s) {
+ public void setCommentSizeManual(String s) {
config.setProperty(COMMENT_SIZE_MANUAL, s);
}
private static final String COMMENT_MIN_SIZE_AUTOSIZE = "comment.minutesize.autosize";
}
private static final String COMMENT_MIN_SIZE_MANUAL = "comment.minutesize.manual";
- public Integer getCommentMinSizeManual() {
- return config.getInteger(COMMENT_MIN_SIZE_MANUAL, null);
+ public String getCommentMinSizeManual() {
+ return config.getString(COMMENT_MIN_SIZE_MANUAL, "");
}
- public void setCommentMinSizeManual(Integer s) {
+ public void setCommentMinSizeManual(String s) {
config.setProperty(COMMENT_MIN_SIZE_MANUAL, s);
}
private static final String COMMENT_FONTPATH = "comment.fontpath";
- public File getFontPath() {
- return new File(config.getString(COMMENT_FONTPATH, "C:/Windows/Fonts/msgothic.ttc"));
+ public String getFontPath() {
+ return config.getString(COMMENT_FONTPATH, "C:/Windows/Fonts/msgothic.ttc");
}
- public void setFontPath(File s) {
+ public void setFontPath(String s) {
config.setProperty(COMMENT_FONTPATH, s);
}
private static final String COMMENT_FONT_INDEX = "comment.fontindex";
- public Integer getFontIndex() {
- return config.getInteger(COMMENT_FONT_INDEX, Integer.valueOf(1));
+ public String getFontIndex() {
+ return config.getString(COMMENT_FONT_INDEX, "");
}
- public void setFontIndex(Integer s) {
+ public void setFontIndex(String s) {
config.setProperty(COMMENT_FONT_INDEX, s);
}
private static final String COMMENT_FONT_SHADOW = "comment.fontshadow";
}
private static final String FFMPEG_PATH = "ffmpeg.path";
- public File getFfmpegPath() {
- return new File(config.getString(FFMPEG_PATH, "bin/ffmpeg.exe"));
+ public String getFfmpegPath() {
+ return config.getString(FFMPEG_PATH, "bin/ffmpeg.exe");
}
- public void setFfmpegPath(File s) {
- config.setProperty(FFMPEG_PATH, s.toString());
+ public void setFfmpegPath(String s) {
+ config.setProperty(FFMPEG_PATH, s);
}
private static final String FFMPEG_DLLPATH = "ffmpeg.dllpath";
- public File getFfmpegDllPath() {
- return new File(config.getString(FFMPEG_DLLPATH, "bin/nicovideo.dll"));
+ public String getFfmpegDllPath() {
+ return config.getString(FFMPEG_DLLPATH, "bin/nicovideo.dll");
}
- public void setFfmpegDllPath(File s) {
- config.setProperty(FFMPEG_DLLPATH, s.toString());
+ public void setFfmpegDllPath(String s) {
+ config.setProperty(FFMPEG_DLLPATH, s);
}
private static final String FFMPEG_PARAM_DIRECT = "ffmpeg.param.direct";
}
private static final String FFMPEG_PARAM_RESIZE_WIDTH = "ffmpeg.param.resize_width";
- public Integer getFfmpegResizeWidth() {
- return config.getInteger(FFMPEG_PARAM_RESIZE_WIDTH, Integer.valueOf(480));
+ public String getFfmpegResizeWidth() {
+ return config.getString(FFMPEG_PARAM_RESIZE_WIDTH, "480");
}
- public void getFfmpegResizeWidth(Integer s) {
+ public void getFfmpegResizeWidth(String s) {
config.setProperty(FFMPEG_PARAM_RESIZE_WIDTH, s);
}
private static final String FFMPEG_PARAM_RESIZE_HEIGHT = "ffmpeg.param.resize_height";
- public Integer getFfmpegResizeHeight() {
- return config.getInteger(FFMPEG_PARAM_RESIZE_HEIGHT, Integer.valueOf(480));
+ public String getFfmpegResizeHeight() {
+ return config.getString(FFMPEG_PARAM_RESIZE_HEIGHT, "480");
}
- public void getFfmpegResizeHeight(Integer s) {
+ public void getFfmpegResizeHeight(String s) {
config.setProperty(FFMPEG_PARAM_RESIZE_HEIGHT, s);
}
private static final String FFMPEG_PARAM_KEEP_ASPECT = "ffmpeg.param.keep_aspect";