- public Integer getCommentSizeManual() {
- return config.getInteger(COMMENT_SIZE_MANUAL, null);
+ public String getCommentSizeManual() {
+ return config.getString(COMMENT_SIZE_MANUAL, "");
config.setProperty(COMMENT_SIZE_MANUAL, s);
}
private static final String COMMENT_MIN_SIZE_AUTOSIZE = "comment.minutesize.autosize";
config.setProperty(COMMENT_SIZE_MANUAL, s);
}
private static final String COMMENT_MIN_SIZE_AUTOSIZE = "comment.minutesize.autosize";
- public Integer getCommentMinSizeManual() {
- return config.getInteger(COMMENT_MIN_SIZE_MANUAL, null);
+ public String getCommentMinSizeManual() {
+ return config.getString(COMMENT_MIN_SIZE_MANUAL, "");
config.setProperty(COMMENT_MIN_SIZE_MANUAL, s);
}
private static final String COMMENT_FONTPATH = "comment.fontpath";
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");
config.setProperty(COMMENT_FONTPATH, s);
}
private static final String COMMENT_FONT_INDEX = "comment.fontindex";
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, "");
config.setProperty(COMMENT_FONT_INDEX, s);
}
private static final String COMMENT_FONT_SHADOW = "comment.fontshadow";
config.setProperty(COMMENT_FONT_INDEX, s);
}
private static final String COMMENT_FONT_SHADOW = "comment.fontshadow";
- 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);
- 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);
- public Integer getFfmpegResizeWidth() {
- return config.getInteger(FFMPEG_PARAM_RESIZE_WIDTH, Integer.valueOf(480));
+ public String getFfmpegResizeWidth() {
+ return config.getString(FFMPEG_PARAM_RESIZE_WIDTH, "480");
config.setProperty(FFMPEG_PARAM_RESIZE_WIDTH, s);
}
private static final String FFMPEG_PARAM_RESIZE_HEIGHT = "ffmpeg.param.resize_height";
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");
config.setProperty(FFMPEG_PARAM_RESIZE_HEIGHT, s);
}
private static final String FFMPEG_PARAM_KEEP_ASPECT = "ffmpeg.param.keep_aspect";
config.setProperty(FFMPEG_PARAM_RESIZE_HEIGHT, s);
}
private static final String FFMPEG_PARAM_KEEP_ASPECT = "ffmpeg.param.keep_aspect";