Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [gef-issues] [Issue 338] New - Ellipses drawn incorrectly

gef
Discussion topic

Hide all messages in topic

All messages in topic

[gef-issues] [Issue 338] Non-dashed ellipses drawn incorrectly

Reply

Author mvw
Full name Michiel van der Wulp
Date 2009-09-26 23:45:14 PDT
Message http://gef.tigris.or​g/issues/show_bug.cg​i?id=338



User mvw changed the following:

                What |Old value |New value
====================​====================​====================​====================​
                      CC|'' |'mvw'
--------------------​--------------------​--------------------​--------------------​
                  Status|NEW |RESOLVED
--------------------​--------------------​--------------------​--------------------​
              Resolution| |FIXED
--------------------​--------------------​--------------------​--------------------​




------- Additional comments from mvw at tigris dot org Sat Sep 26 23:45:12 -0700 2009 -------
This has been solved in FigCircle: there is now a paint() method that makes use
of Graphics2D when it is available.

[gef-issues] [Issue 338] Non-dashed ellipses drawn incorrectly

Reply

Author bobtarling
Full name Bob Tarling
Date 2009-01-12 13:52:02 PST
Message http://gef.tigris.or​g/issues/show_bug.cg​i?id=338






------- Additional comments from bobtarling at tigris dot org Mon Jan 12 13:52:02 -0800 2009 -------
Unfortunately GEF is pre java1.2 and many updates are needed.

Unfortunately GEFs SVGWriter still extends Graphics rather than Graphics2D.
Thats a great shame and a great deal of work to update.

There was some discusion on the ArgoUML dev list about trying to reuse batik to
generate SVG and remove this issue from GEF/ArgoUML - http://argouml.markm​ail.org/search/?
q=batik#query:batik%​20list%3Aorg.tigris.​argouml.dev+page:1+m​id:su53p4vf63ymco5p+​
state:results

Hence my comments on issue 252

If we can do that then we can concentrate on Graphics2D alone

[gef-issues] [Issue 338] Non-dashed ellipses drawn incorrectly

Reply

Author tfmorris
Full name Tom Morris
Date 2009-01-12 11:19:03 PST
Message http://gef.tigris.or​g/issues/show_bug.cg​i?id=338



User tfmorris changed the following:

                What |Old value |New value
====================​====================​====================​====================​
                 Summary|Ellipses drawn incorrectly|Non-dashed ellipses drawn
                        | |incorrectly
--------------------​--------------------​--------------------​--------------------​




------- Additional comments from tfmorris at tigris dot org Mon Jan 12 11:19:03 -0800 2009 -------
In looking at the source code it appears that this is another instance of the
dashed vs. non-dashed differences. The Graphics2D drawing operations should be
used whenever possible, not just when the outline is dashed. Graphics2D was
introduced with Java 1.2 (i.e. many, many years ago) and should be design target
for all operations.

[gef-issues] [Issue 338] New - Ellipses drawn incorrectly

Reply

Author tfmorris
Full name Tom Morris
Date 2009-01-12 10:17:54 PST
Message http://gef.tigris.or​g/issues/show_bug.cg​i?id=338
                 Issue #|338
                 Summary|Ellipses drawn incorrectly
               Component|gef
                 Version|current
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|core
             Assigned to|issues@gef
             Reported by|tfmorris






------- Additional comments from tfmorris at tigris dot org Mon Jan 12 10:17:54 -0800 2009 -------
In FigCircle, if an ellipse has a border, it is drawn is two overlapping
ellipses with a filled ellipse of the border color drawn first and then an inner
filled ellipse of the fill color drawn.

This hack prevents the use of translucent fill colors (i.e. with an alpha
channel) as well as any drawing modes other than replace (ie no ORing, etc).
Messages per page: