}
public void createCommonNscreen() {
- addNscreenModel(BuilderConstants.NSCREENCOMMON, NScreenType.COMMON, null, 0, 0, 0,
- BuilderConstants.NSCREENCOMMON.toLowerCase());
+ addNscreenModel(BuilderConstants.NSCREENCOMMON, NScreenType.COMMON, null, 0, 0, 0);
}
public void createOrientationNscreen() {
addNscreenModel(BuilderConstants.NSCREENPORTRAIT, NScreenType.ORIENTATION,
- Orientation.PORTRAIT, 0, 0, 0,
- BuilderConstants.NSCREENPORTRAIT.toLowerCase());
+ Orientation.PORTRAIT, 0, 0, 0);
addNscreenModel(BuilderConstants.NSCREENLANDSCAPE, NScreenType.ORIENTATION,
- Orientation.LANDSCAPE, 0, 0, 0,
- BuilderConstants.NSCREENLANDSCAPE.toLowerCase());
+ Orientation.LANDSCAPE, 0, 0, 0);
}
public void createPixelRatioNscreen() {
- addNscreenModel("Pixcel Ratio 1.0", NScreenType.PIXELRATIO, null, 1.0, 0, 0,
- "pixcel_ratio_1_0");
- addNscreenModel("Pixcel Ratio 1.5", NScreenType.PIXELRATIO, null, 1.5, 0, 0,
- "pixcel_ratio_1_5");
- addNscreenModel("Pixcel Ratio 2.0", NScreenType.PIXELRATIO, null, 2.0, 0, 0,
- "pixcel_ratio_2_0");
- addNscreenModel("Pixcel Ratio 3.0", NScreenType.PIXELRATIO, null, 3.0, 0, 0,
- "pixcel_ratio_3_0");
+ addNscreenModel("Pixel Ratio 1.0", NScreenType.PIXELRATIO, null, 1.0, 0, 0);
+ addNscreenModel("Pixel Ratio 1.5", NScreenType.PIXELRATIO, null, 1.5, 0, 0);
+ addNscreenModel("Pixel Ratio 2.0", NScreenType.PIXELRATIO, null, 2.0, 0, 0);
+ addNscreenModel("Pixel Ratio 3.0", NScreenType.PIXELRATIO, null, 3.0, 0, 0);
}
public void createDeviceNscreen() {
- addNscreenModel("Wearable 320x320 (1:1)", NScreenType.RESOLUTION, null, 0, 320, 320,
- "wearable_320x320");
- addNscreenModel("Wearable 360x480 (3:4)", NScreenType.RESOLUTION, null, 0, 360, 480,
- "wearable_360x480");
- addNscreenModel("Wearable 480x360 (4:3)", NScreenType.RESOLUTION, null, 0, 480, 360,
- "wearable_480x360");
- addNscreenModel("Wearable 312x496 (10:16)", NScreenType.RESOLUTION, null, 0, 312, 496,
- "wearable_312x496");
- addNscreenModel("Wearable 496x312 (16:10)", NScreenType.RESOLUTION, null, 0, 496, 312,
- "wearable_496x312");
- addNscreenModel("Mobile 320x480 (2:3)", NScreenType.RESOLUTION, null, 0, 320, 480,
- "mobile_320x480");
- addNscreenModel("Mobile 480x320 (3:2)", NScreenType.RESOLUTION, null, 0, 480, 320,
- "mobile_480x320");
- addNscreenModel("Mobile 360x640 (9:16)", NScreenType.RESOLUTION, null, 0, 360, 640,
- "mobile_360x640");
- addNscreenModel("Mobile 640x360 (16:9)", NScreenType.RESOLUTION, null, 0, 640, 360,
- "mobile_640x360");
- addNscreenModel("Mobile 800x1280 (10:16)", NScreenType.RESOLUTION, null, 0, 800, 1280,
- "mobile_800x1280");
- addNscreenModel("Mobile 1280x800 (16:10)", NScreenType.RESOLUTION, null, 0, 1280, 800,
- "mobile_1280x800");
- addNscreenModel("TV 1920x1080 (16:9)", NScreenType.RESOLUTION, null, 0, 1920, 1080,
- "tv_1920x1080");
- addNscreenModel("TV 1080x1920 (9:16)", NScreenType.RESOLUTION, null, 0, 1080, 1920,
- "tv_1080x1920");
+ addNscreenModel("Wearable 320x320 (1:1)", NScreenType.RESOLUTION, null, 0, 320, 320);
+ addNscreenModel("Wearable 360x480 (3:4)", NScreenType.RESOLUTION, null, 0, 360, 480);
+ addNscreenModel("Wearable 480x360 (4:3)", NScreenType.RESOLUTION, null, 0, 480, 360);
+ addNscreenModel("Mobile 320x480 (2:3)", NScreenType.RESOLUTION, null, 0, 320, 480);
+ addNscreenModel("Mobile 480x320 (3:2)", NScreenType.RESOLUTION, null, 0, 480, 320);
+ addNscreenModel("Mobile 360x640 (9:16)", NScreenType.RESOLUTION, null, 0, 360, 640);
+ addNscreenModel("Mobile 640x360 (16:9)", NScreenType.RESOLUTION, null, 0, 640, 360);
+ addNscreenModel("Mobile 800x1280 (10:16)", NScreenType.RESOLUTION, null, 0, 800, 1280);
+ addNscreenModel("Mobile 1280x800 (16:10)", NScreenType.RESOLUTION, null, 0, 1280, 800);
}
public void addNscreenModel(String name, NScreenType type, Orientation orientation,
- double devicePixelRatio, int deviceWidth, int deviceHeight,
- String fileName) {
+ double devicePixelRatio, int deviceWidth, int deviceHeight) {
if (name == null) {
return;
}
model.setDeviceHeight(deviceHeight);
}
-// if (fileName != null) {
-// if (!fileName.isEmpty()) {
-// model.setFileName(fileName);
-// }
-// }
this.setMenuFlag(model);
this.list.add(model);
}