Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to create filled and not filled triangle at the end points of connection
How to create filled and not filled triangle at the end points of connection [message #210763] Mon, 06 March 2006 05:01 Go to next message
Eclipse UserFriend
Originally posted by: rupesh_wakde.yahoo.com

Hi,
Can anybody tell me how to create not filled triangle(used for
association)and filled at the end points of the connection.
Re: How to create filled and not filled triangle at the end points of connection [message #210843 is a reply to message #210763] Mon, 06 March 2006 15:11 Go to previous message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
You would create a subclass of PolylineDecoration and install it on your
PolylineConnection. I believe you would use the Shape#setFill method to
indicate it needs to be filled and then override the fillShape and call
g.drawPolygon(points).

@see
org.eclipse.gef.examples.ediagram.edit.parts.ReferenceLinkEd itPart#createPol
ylineDecoration

-Steve

"rupesh" <rupesh_wakde@yahoo.com> wrote in message
news:b710e47ada67a1dc4a2cc111cc65962f$1@www.eclipse.org...
> Hi,
> Can anybody tell me how to create not filled triangle(used for
> association)and filled at the end points of the connection.
>
Previous Topic:paintChildren and IProgressMonitor updates
Next Topic:How to draw a line?
Goto Forum:
  


Current Time: Fri Dec 09 06:39:30 GMT 2022

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

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

Back to the top