/[classpath]/classpath/gnu/java/awt/peer/qt/QtComponentGraphics.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/qt/QtComponentGraphics.java

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

revision 1.1.2.1 by gnu_andrew, Tue Aug 16 16:22:36 2005 UTC revision 1.1.2.2 by gnu_andrew, Sat Sep 10 15:31:38 2005 UTC
# Line 65  public class QtComponentGraphics extends Line 65  public class QtComponentGraphics extends
65     *     *
66     * @param ptr the pointer to the QPainter object.     * @param ptr the pointer to the QPainter object.
67     */     */
68    public QtComponentGraphics(long ptr, QtComponentPeer component)    public QtComponentGraphics(long ptr, QtComponentPeer component,
69                                 int x, int y, int w, int h)
70    {    {
71      nativeObject = ptr;      nativeObject = ptr;
72      peer = component;      peer = component;
73    
74      Rectangle r = component.owner.getBounds();      Rectangle r = new Rectangle(x, y, w, h);
     r.setLocation(0, 0);  
75      initialClip = r;      initialClip = r;
76            
77      currentAlpha = 1.0;      setAlpha( 1.0 );
78      Color c = component.owner.getBackground();      Color c = component.owner.getBackground();
79      if(c == null)      if(c == null)
80        setBackground(Color.white);        setBackground(Color.white);
# Line 86  public class QtComponentGraphics extends Line 86  public class QtComponentGraphics extends
86        setColor( Color.black );        setColor( Color.black );
87      else      else
88        setColor( c );        setColor( c );
   
89      setup();      setup();
90      setClip( initialClip );      setClip( initialClip );
91    }    }

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

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