equal
deleted
inserted
replaced
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
|
17 |
17 package javax.microedition.lcdui; |
18 package javax.microedition.lcdui; |
18 |
19 |
19 import org.eclipse.swt.graphics.Internal_GfxPackageSupport; |
20 import org.eclipse.swt.graphics.Internal_GfxPackageSupport; |
20 import org.eclipse.swt.internal.qt.graphics.GraphicsContext; |
21 import org.eclipse.swt.internal.qt.graphics.GraphicsContext; |
|
22 import org.eclipse.swt.widgets.Widget; |
21 |
23 |
22 final class ImageBuffer extends Buffer |
24 final class ImageBuffer extends Buffer |
23 { |
25 { |
24 |
26 |
25 private Image host; |
27 private Image host; |
32 int getHostType() |
34 int getHostType() |
33 { |
35 { |
34 return HOST_TYPE_IMAGE; |
36 return HOST_TYPE_IMAGE; |
35 } |
37 } |
36 |
38 |
37 void setupWindowSurface() |
|
38 { |
|
39 // nothing to do here |
|
40 } |
|
41 |
|
42 Object getHost() |
39 Object getHost() |
43 { |
40 { |
44 return host; |
41 return host; |
45 } |
42 } |
46 |
43 |
47 void bindToHost(GraphicsContext gc) |
44 void bindToHost(GraphicsContext gc) |
48 { |
45 { |
49 gc.bindTarget(Internal_GfxPackageSupport.getImage(Image.getESWTImage(host))); |
46 gc.bindTarget(Internal_GfxPackageSupport.getImage(Image.getESWTImage(host))); |
50 } |
47 } |
51 |
48 |
|
49 void blit(GraphicsContext gc, Widget widget) { |
|
50 // nothing to do |
|
51 } |
|
52 |
|
53 void endPaint() { |
|
54 // nothing to do |
|
55 } |
|
56 |
|
57 boolean isPaintingActive() { |
|
58 return false; |
|
59 } |
|
60 |
|
61 void beginPaint(int x, int y, int w, int h) { |
|
62 // nothing to do |
|
63 } |
|
64 |
52 } |
65 } |