harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov" <alexei.zakha...@gmail.com>
Subject [ibm vme][awt] Stroke is not produces proper shapes
Date Thu, 14 Dec 2006 13:01:53 GMT
Hi all,

I've discovered that the [awt] issue HARMONY-2020 is reproducible on
IBM VME only. Can someone from j9 gurus take a look?

Thanks,

2006/12/14, Alexei Zakharov (JIRA) <jira@apache.org>:
>     [ http://issues.apache.org/jira/browse/HARMONY-2020?page=comments#action_12458462
]
>
> Alexei Zakharov commented on HARMONY-2020:
> ------------------------------------------
>
> However, it looks like expected.PNG on DRLVM
>
> > [classlib][awt] Stroke is not produces proper shapes
> > ----------------------------------------------------
> >
> >                 Key: HARMONY-2020
> >                 URL: http://issues.apache.org/jira/browse/HARMONY-2020
> >             Project: Harmony
> >          Issue Type: Bug
> >          Components: Classlib
> >            Reporter: Denis Kishenko
> >         Assigned To: Alexei Zakharov
> >         Attachments: actual.PNG, expected.PNG
> >
> >
> > The created shapes are not as expected. I expected top have 2x2 rects (as RI does),
but have 1x2 lines instead.
> > ================ Test ================
> > import java.awt.BasicStroke;
> > import java.awt.Color;
> > import java.awt.Frame;
> > import java.awt.Graphics;
> > import java.awt.Graphics2D;
> > import java.awt.Panel;
> > public class Test {
> >     public static void main(String args[]) throws Exception {
> >         Frame f = new Frame();
> >         Panel p = new Panel() {
> >             public void paint(final Graphics g) {
> >                 super.paint(g);
> >                 Graphics2D g2d = (Graphics2D)g;
> >                 g2d.setStroke(new BasicStroke(2, BasicStroke.CAP_BUTT,
> > BasicStroke.JOIN_BEVEL, 0, new float[] {2, 4}, 0));
> >                 for (int i = 0; i < getHeight(); i += 3) {
> >                     g.setColor(Color.RED);
> >                     g.drawLine(0, i, getWidth(), i);
> >                 }
> >             }
> >         };
> >         f.add(p);
> >         f.setSize(200, 200);
> >         f.setVisible(true);
> >     }
> > }
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira



-- 
Alexei Zakharov,
Intel ESSD

Mime
View raw message