1:
37:
38: package ;
39:
40: import ;
41: import ;
42: import ;
43: import ;
44: import ;
45:
46:
49: public class QtImageDirectGraphics extends QtImageGraphics
50: {
51: private QtComponentPeer peer;
52: private boolean modified;
53:
54: public QtImageDirectGraphics(QtImage image, QtComponentPeer peer)
55: {
56: super( image );
57: this.peer = peer;
58: modified = false;
59: }
60:
61: public QtImageDirectGraphics(QtImageGraphics g)
62: {
63: super( g );
64: }
65:
66: private void scheduleUpdate()
67: {
68: }
69:
70: public void dispose()
71: {
72: super.dispose();
73: peer.toolkit.sync();
74: peer.QtUpdate();
75: }
76:
77: public void draw(Shape s)
78: {
79: super.draw(s);
80: scheduleUpdate();
81: }
82:
83: public void fill(Shape s)
84: {
85: super.fill(s);
86: scheduleUpdate();
87: }
88:
89: public void drawString(String string, int x, int y)
90: {
91: super.drawString( string, x, y );
92: scheduleUpdate();
93: }
94:
95: public void drawString(String string, float x, float y)
96: {
97: super.drawString( string, x, y );
98: scheduleUpdate();
99: }
100:
101: public void drawLine(int x1, int y1, int x2, int y2)
102: {
103: super.drawLine(x1, y1, x2, y2);
104: scheduleUpdate();
105: }
106:
107: public boolean drawImage(Image image,
108: AffineTransform Tx,
109: ImageObserver obs)
110: {
111: boolean r = super.drawImage(image, Tx, obs);
112: scheduleUpdate();
113: return r;
114: }
115:
116: public boolean drawImage(Image image, int x, int y, Color bgcolor,
117: ImageObserver observer)
118: {
119: boolean r = super.drawImage(image, x, y, bgcolor, observer);
120: scheduleUpdate();
121: return r;
122: }
123:
124: public boolean drawImage(Image image,
125: int dx1, int dy1, int dx2, int dy2,
126: int sx1, int sy1, int sx2, int sy2,
127: Color bgcolor, ImageObserver observer)
128: {
129: boolean r = super.drawImage( image, dx1, dy1, dx2, dy2,
130: sx1, sy1, sx2, sy2,
131: bgcolor, observer);
132: scheduleUpdate();
133: return r;
134: }
135:
136: public boolean drawImage(Image image, int x, int y,
137: int width, int height, Color bgcolor,
138: ImageObserver observer)
139: {
140: boolean r = super.drawImage(image, x, y, width, height, bgcolor,
141: observer);
142: scheduleUpdate();
143: return r;
144: }
145: }