Пример #1
0
 public static Image createImage(int width, int height) {
   if (width <= 0 || height <= 0) {
     throw new IllegalArgumentException();
   }
   return DeviceFactory.getDevice()
       .getDeviceDisplay()
       .createImage(width, height, false, 0x00FFFFFF);
 }
 @BeforeClass
 public static void changeDeviceTypeToNonTouch() {
   Device device = spy(DeviceFactory.getDevice());
   when(device.hasPointerEvents()).thenReturn(false);
   DeviceFactory.setDevice(device);
 }
Пример #3
0
 public static Image createRGBImage(int[] rgb, int width, int height, boolean processAlpha) {
   return DeviceFactory.getDevice()
       .getDeviceDisplay()
       .createRGBImage(rgb, width, height, processAlpha);
 }
Пример #4
0
 public static Image createImage(java.io.InputStream stream) throws IOException {
   return DeviceFactory.getDevice().getDeviceDisplay().createImage(stream);
 }
Пример #5
0
 public static Image createImage(byte[] imageData, int imageOffset, int imageLength) {
   return DeviceFactory.getDevice()
       .getDeviceDisplay()
       .createImage(imageData, imageOffset, imageLength);
 }
Пример #6
0
 public static Image createImage(Image source) {
   return DeviceFactory.getDevice().getDeviceDisplay().createImage(source);
 }
Пример #7
0
 public static Image createImage(String name) throws IOException {
   return DeviceFactory.getDevice().getDeviceDisplay().createImage(name);
 }