harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko" <alexey.a.petre...@gmail.com>
Subject Re: [classlib][awt] clipping area
Date Wed, 13 Dec 2006 13:12:46 GMT
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 <alexander.d.shipilov@intel.com>:
> 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:oleg.v.khaschansky@gmail.com]
> >Sent: Tuesday, December 12, 2006 5:54 PM
> >To: dev@harmony.apache.org
> >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 <alexander.d.shipilov@intel.com>
> 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
> >>
>

Mime
View raw message