stateStack = new Stack ();
if (g.bg.getAlpha() != -1) bg = new Color(g.bg.getRed (), g.bg.getGreen (), g.bg.getBlue (), g.bg.getAlpha ()); else bg = new Color (g.bg.getRGB ());  if (g.clip == null) clip = null; else clip = new Rectangle (g.getClipBounds ());  if (g.transform == null) transform = new AffineTransform (); else transform = new AffineTransform (g.transform);  font = g.font; component = g.component; copyState (g);  setColor (fg); setBackground (bg); setPaint (paint); setStroke (stroke); setClip (clip); setTransform (transform); stateStack = new Stack();
  GdkGraphics2D (GtkComponentPeer component)  {    this.component = component;    int rgb[] = initState (component);    setColor (new Color (rgb[0], rgb[1], rgb[2]));    setBackground (new Color (rgb[3], rgb[4], rgb[5]));    setPaint (getColor());    setFont (new Font("SansSerif", Font.PLAIN, 12));    setTransform (new AffineTransform ());    setStroke (new BasicStroke ());    setRenderingHints (getDefaultHints());    stateStack = new Stack ();  }