sector figures [message #239801] |
Fri, 16 November 2007 09:04 |
Richard Adams Messages: 77 Registered: July 2009 Location: Edinburgh |
Member |
|
|
Hello,
I am trying to implement a circular sector figure in draw2d where the
radii of
the sector are drawn lines.
Currently in draw2d graphics.drawArc() will draw the arc and
graphics.fillArc()
will fill the sector - what I need to be able to do is show the outline
of the sector even when setFill() is false.
Does anyone know of any implementations of such a figure? I've looked in
gmf.
To draw the lines for a circular sector I think should be straightforward
using
circle geometry but I'm not sure how this would work after a resize to an
ellipse. Another solution would be to constrain resize to maintain the
sector as a circular sector, does GEF provide any functionality for this?
Many thanks
Richard
Dr Richard Adams, University of Edinburgh
http://richardadams606blog.blogspot.com/
http://csbe.bio.ed.ac.uk/adams.php
|
|
|
Powered by
FUDForum. Page generated in 0.02657 seconds