Test case from this issue uses Harmony specific class org.apache.harmony.awt.gl.MultiRectArea. I'm not sure how it was integrated to RI and does it work ok on RI.
I think that first of all this test should be modified to use only public API. SY, Alexey 2006/12/13, Shipilov, Alexander D <[EMAIL PROTECTED]>:
Thank you for questions. This problem represented in JIRA http://issues.apache.org/jira/browse/HARMONY-2032. In the test author clips area with width==2 (pixels). On RI it means that we can draw in this area a figure with width==1pix. But on Harmony we can draw figure with width==2pix. This issue depends on Linux and Win32 both. Thanks, Alexander Shipilov >-----Original Message----- >From: Oleg Khaschansky [mailto:[EMAIL PROTECTED] >Sent: Tuesday, December 12, 2006 5:54 PM >To: [email protected] >Subject: Re: [classlib][awt] clipping area > >What exactly do you mean by "fitting a figure"? Could you, please, >post a code which illustrates this? Are you speaking about linux, >win32 or both? > >On 12/12/06, Shipilov, Alexander D <[EMAIL PROTECTED]> wrote: >> Hi, >> Spec: method Graphics.setClip(int x, int y, int width, int height) >> >> "Sets the current clip to the rectangle specified by the given >> coordinates. This method sets the user clip, which is independent of the >> clipping associated with device bounds and window visibility. Rendering >> operations have no effect outside of the clipping area. >> >> Parameters: >> x - the x coordinate of the new clip rectangle. >> y - the y coordinate of the new clip rectangle. >> width - the width of the new clip rectangle. >> height - the height of the new clip rectangle. >> " >> If we have a width, for example, 5, how wide figure we can fit here? >> RI implementation allows fitting only (width-1) figure, but Harmony >> allows fitting figure for all width. >> Should clip area limit inclusive or exclusive? >> >> Thanks, >> Alexander Shipilov >>
