You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Igor V. Stolyarov (JIRA)" <ji...@apache.org> on 2007/12/05 14:29:43 UTC

[jira] Created: (HARMONY-5260) [classlib][awt] Graphics.drawLine method works incorretly with in XORMode

[classlib][awt] Graphics.drawLine method works incorretly with in XORMode
-------------------------------------------------------------------------

                 Key: HARMONY-5260
                 URL: https://issues.apache.org/jira/browse/HARMONY-5260
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Linux
            Reporter: Igor V. Stolyarov


Graphics.drawLine method works incorretly with in XORMode

Simple reproducer:

import java.io.*; 
import java.awt.*; 
import java.awt.image.*; 
import javax.swing.*; 

public class DrawLineTest extends JFrame { 
   public static void main(String[] args){ 
      final DrawLineTest test = new DrawLineTest(); 
      test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
      test.setSize(200, 200); 
      test.add(new Panel(){
          public void paint(Graphics g){
              Composite composite = AlphaComposite.Clear;
              int w = getWidth();
              int h = getHeight();

              g.setColor(Color.green);
              g.fillRect(0, 0, w, h);
              g.setColor(Color.red);
              g.setXORMode(Color.blue);
              g.drawLine(w/4, h - h/4, w - w/4, h/4);
          }
      });
      test.setVisible(true);
   } 
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (HARMONY-5260) [classlib][awt] Graphics.drawLine method works incorretly with in XORMode

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko resolved HARMONY-5260.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0M4

The patch has been applied.
Please verify.

> [classlib][awt] Graphics.drawLine method works incorretly with in XORMode
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-5260
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5260
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Linux
>            Reporter: Igor V. Stolyarov
>            Assignee: Alexey Petrenko
>             Fix For: 5.0M4
>
>         Attachments: H-5260.patch, Harmony.PNG, RI.PNG
>
>
> Graphics.drawLine method works incorretly with in XORMode
> Simple reproducer:
> import java.io.*; 
> import java.awt.*; 
> import java.awt.image.*; 
> import javax.swing.*; 
> public class DrawLineTest extends JFrame { 
>    public static void main(String[] args){ 
>       final DrawLineTest test = new DrawLineTest(); 
>       test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
>       test.setSize(200, 200); 
>       test.add(new Panel(){
>           public void paint(Graphics g){
>               Composite composite = AlphaComposite.Clear;
>               int w = getWidth();
>               int h = getHeight();
>               g.setColor(Color.green);
>               g.fillRect(0, 0, w, h);
>               g.setColor(Color.red);
>               g.setXORMode(Color.blue);
>               g.drawLine(w/4, h - h/4, w - w/4, h/4);
>           }
>       });
>       test.setVisible(true);
>    } 
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-5260) [classlib][awt] Graphics.drawLine method works incorretly with in XORMode

Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor V. Stolyarov updated HARMONY-5260:
---------------------------------------

    Attachment: RI.PNG
                Harmony.PNG
                H-5260.patch

Fix attached.

> [classlib][awt] Graphics.drawLine method works incorretly with in XORMode
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-5260
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5260
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Linux
>            Reporter: Igor V. Stolyarov
>         Attachments: H-5260.patch, Harmony.PNG, RI.PNG
>
>
> Graphics.drawLine method works incorretly with in XORMode
> Simple reproducer:
> import java.io.*; 
> import java.awt.*; 
> import java.awt.image.*; 
> import javax.swing.*; 
> public class DrawLineTest extends JFrame { 
>    public static void main(String[] args){ 
>       final DrawLineTest test = new DrawLineTest(); 
>       test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
>       test.setSize(200, 200); 
>       test.add(new Panel(){
>           public void paint(Graphics g){
>               Composite composite = AlphaComposite.Clear;
>               int w = getWidth();
>               int h = getHeight();
>               g.setColor(Color.green);
>               g.fillRect(0, 0, w, h);
>               g.setColor(Color.red);
>               g.setXORMode(Color.blue);
>               g.drawLine(w/4, h - h/4, w - w/4, h/4);
>           }
>       });
>       test.setVisible(true);
>    } 
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (HARMONY-5260) [classlib][awt] Graphics.drawLine method works incorretly with in XORMode

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko closed HARMONY-5260.
------------------------------------


> [classlib][awt] Graphics.drawLine method works incorretly with in XORMode
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-5260
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5260
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Linux
>            Reporter: Igor V. Stolyarov
>            Assignee: Alexey Petrenko
>             Fix For: 5.0M4
>
>         Attachments: H-5260.patch, Harmony.PNG, RI.PNG
>
>
> Graphics.drawLine method works incorretly with in XORMode
> Simple reproducer:
> import java.io.*; 
> import java.awt.*; 
> import java.awt.image.*; 
> import javax.swing.*; 
> public class DrawLineTest extends JFrame { 
>    public static void main(String[] args){ 
>       final DrawLineTest test = new DrawLineTest(); 
>       test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
>       test.setSize(200, 200); 
>       test.add(new Panel(){
>           public void paint(Graphics g){
>               Composite composite = AlphaComposite.Clear;
>               int w = getWidth();
>               int h = getHeight();
>               g.setColor(Color.green);
>               g.fillRect(0, 0, w, h);
>               g.setColor(Color.red);
>               g.setXORMode(Color.blue);
>               g.drawLine(w/4, h - h/4, w - w/4, h/4);
>           }
>       });
>       test.setVisible(true);
>    } 
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HARMONY-5260) [classlib][awt] Graphics.drawLine method works incorretly with in XORMode

Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-5260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548939 ] 

Igor V. Stolyarov commented on HARMONY-5260:
--------------------------------------------

Works for me.
Thanks you Alexey.

> [classlib][awt] Graphics.drawLine method works incorretly with in XORMode
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-5260
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5260
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Linux
>            Reporter: Igor V. Stolyarov
>            Assignee: Alexey Petrenko
>             Fix For: 5.0M4
>
>         Attachments: H-5260.patch, Harmony.PNG, RI.PNG
>
>
> Graphics.drawLine method works incorretly with in XORMode
> Simple reproducer:
> import java.io.*; 
> import java.awt.*; 
> import java.awt.image.*; 
> import javax.swing.*; 
> public class DrawLineTest extends JFrame { 
>    public static void main(String[] args){ 
>       final DrawLineTest test = new DrawLineTest(); 
>       test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
>       test.setSize(200, 200); 
>       test.add(new Panel(){
>           public void paint(Graphics g){
>               Composite composite = AlphaComposite.Clear;
>               int w = getWidth();
>               int h = getHeight();
>               g.setColor(Color.green);
>               g.fillRect(0, 0, w, h);
>               g.setColor(Color.red);
>               g.setXORMode(Color.blue);
>               g.drawLine(w/4, h - h/4, w - w/4, h/4);
>           }
>       });
>       test.setVisible(true);
>    } 
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HARMONY-5260) [classlib][awt] Graphics.drawLine method works incorretly with in XORMode

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Petrenko reassigned HARMONY-5260:
----------------------------------------

    Assignee: Alexey Petrenko

> [classlib][awt] Graphics.drawLine method works incorretly with in XORMode
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-5260
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5260
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Linux
>            Reporter: Igor V. Stolyarov
>            Assignee: Alexey Petrenko
>         Attachments: H-5260.patch, Harmony.PNG, RI.PNG
>
>
> Graphics.drawLine method works incorretly with in XORMode
> Simple reproducer:
> import java.io.*; 
> import java.awt.*; 
> import java.awt.image.*; 
> import javax.swing.*; 
> public class DrawLineTest extends JFrame { 
>    public static void main(String[] args){ 
>       final DrawLineTest test = new DrawLineTest(); 
>       test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
>       test.setSize(200, 200); 
>       test.add(new Panel(){
>           public void paint(Graphics g){
>               Composite composite = AlphaComposite.Clear;
>               int w = getWidth();
>               int h = getHeight();
>               g.setColor(Color.green);
>               g.fillRect(0, 0, w, h);
>               g.setColor(Color.red);
>               g.setXORMode(Color.blue);
>               g.drawLine(w/4, h - h/4, w - w/4, h/4);
>           }
>       });
>       test.setVisible(true);
>    } 
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.