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

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

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

revision 1.13 by tromey, Thu Jul 29 06:12:04 2004 UTC revision 1.14 by mark, Fri Jul 30 16:01:47 2004 UTC
# Line 87  public class GdkGraphics2D extends Graph Line 87  public class GdkGraphics2D extends Graph
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 ();
# Line 168  public class GdkGraphics2D extends Graph Line 168  public class GdkGraphics2D extends Graph
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 ());

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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