87 |
|
|
88 |
private Stack stateStack; |
private Stack stateStack; |
89 |
|
|
90 |
native private int[] initState (GtkComponentPeer component); |
native private void initState (GtkComponentPeer component); |
91 |
native private void initState (int width, int height); |
native private void initState (int width, int height); |
92 |
native private void copyState (GdkGraphics2D g); |
native private void copyState (GdkGraphics2D g); |
93 |
native public void dispose (); |
native public void dispose (); |
168 |
GdkGraphics2D (GtkComponentPeer component) |
GdkGraphics2D (GtkComponentPeer component) |
169 |
{ |
{ |
170 |
this.component = component; |
this.component = component; |
171 |
int rgb[] = initState (component); |
initState (component); |
172 |
|
|
173 |
setColor (new Color (rgb[0], rgb[1], rgb[2])); |
setColor (component.awtComponent.getForeground ()); |
174 |
setBackground (new Color (rgb[3], rgb[4], rgb[5])); |
setBackground (component.awtComponent.getBackground ()); |
175 |
setPaint (getColor()); |
setPaint (getColor()); |
176 |
setFont (new Font("SansSerif", Font.PLAIN, 12)); |
setFont (new Font("SansSerif", Font.PLAIN, 12)); |
177 |
setTransform (new AffineTransform ()); |
setTransform (new AffineTransform ()); |