Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » sector figures
sector figures [message #239801] Fri, 16 November 2007 09:04
Richard Adams is currently offline Richard AdamsFriend
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


Previous Topic:Connections to digraph1
Next Topic:RotatableShapeEditPolicy with Polygon
Goto Forum:
  


Current Time: Sat Apr 20 06:51:53 GMT 2024

Powered by FUDForum. Page generated in 0.02657 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top