/[classpath]/classpath/gnu/java/awt/peer/gtk/GdkGraphics.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/gtk/GdkGraphics.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.27.2.10 by gnu_andrew, Tue Sep 20 18:46:23 2005 UTC revision 1.27.2.11 by gnu_andrew, Wed Nov 2 00:43:26 2005 UTC
# Line 68  public class GdkGraphics extends Graphic Line 68  public class GdkGraphics extends Graphic
68    
69    Color color, xorColor;    Color color, xorColor;
70    GtkComponentPeer component;    GtkComponentPeer component;
71    Font font;    Font font = new Font ("Dialog", Font.PLAIN, 12);
72    Rectangle clip;    Rectangle clip;
73    GtkImage image;    GtkImage image;
74    
# Line 88  public class GdkGraphics extends Graphic Line 88  public class GdkGraphics extends Graphic
88      color = g.color;      color = g.color;
89      xorColor = g.xorColor;      xorColor = g.xorColor;
90      font = g.font;      font = g.font;
91        if (font == null)
92          font = new Font ("Dialog", Font.PLAIN, 12);
93      clip = new Rectangle (g.clip);      clip = new Rectangle (g.clip);
94      component = g.component;      component = g.component;
95    
# Line 115  public class GdkGraphics extends Graphic Line 117  public class GdkGraphics extends Graphic
117    GdkGraphics (GtkComponentPeer component)    GdkGraphics (GtkComponentPeer component)
118    {    {
119      this.component = component;      this.component = component;
     font = component.awtComponent.getFont ();  
     if (font == null)  
       font = new Font ("Dialog", Font.PLAIN, 12);  
120      color = Color.black;      color = Color.black;
121    
122      if (component.isRealized ())      if (component.isRealized ())
# Line 380  public class GdkGraphics extends Graphic Line 379  public class GdkGraphics extends Graphic
379        
380    public void setFont (Font font)    public void setFont (Font font)
381    {    {
382      this.font = font;      if (font != null)
383          this.font = font;
384    }    }
385    
386    native void setFunction (int gdk_func);    native void setFunction (int gdk_func);

Legend:
Removed from v.1.27.2.10  
changed lines
  Added in v.1.27.2.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26