Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » What is the best way to make a thick arrow connector?
What is the best way to make a thick arrow connector? [message #191041] Mon, 08 August 2005 15:17 Go to next message
Eclipse UserFriend
Originally posted by: ada_nospam_m._No_softfab_Spam.com

Dear All,

I am looking at doing a visual modelling tool for HL7. We use a
graphical notation where the connectors are (colour coded) thick arrows
containing text showing some of the attributes e.g. (in Ascii art)

--------------------------------\
| Attribute A \
| Attribute B /
--------------------------------/


A) How is this best achieved in GEF/Draw2D?
B) Is there anywhere a collection of "user contributed" stencils/shapes
such as the above so people don't have to re-invent the wheel on shapes etc?

TIA

Adam
Re: What is the best way to make a thick arrow connector? [message #191085 is a reply to message #191041] Mon, 08 August 2005 19:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

PolylineConnection supports children and places them using a Locator as the
constraint. There are no included figures currently for doing what you want
to do. You could use some kind of label and border combination perhaps, but
you might need some new locator type. You're in new territory I think.


"Adam Flinton" <ada_nospam_m@_No_softfab_Spam.com> wrote in message
news:dd7t2b$rv5$1@news.eclipse.org...
> Dear All,
>
> I am looking at doing a visual modelling tool for HL7. We use a graphical
> notation where the connectors are (colour coded) thick arrows containing
> text showing some of the attributes e.g. (in Ascii art)
>
> --------------------------------\
> | Attribute A \
> | Attribute B /
> --------------------------------/
>
>
> A) How is this best achieved in GEF/Draw2D?
> B) Is there anywhere a collection of "user contributed" stencils/shapes
> such as the above so people don't have to re-invent the wheel on shapes
> etc?
>
> TIA
>
> Adam
Re: What is the best way to make a thick arrow connector? [message #191184 is a reply to message #191085] Tue, 09 August 2005 09:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ada_nospam_m._No_softfab_Spam.com

Randy Hudson wrote:

> PolylineConnection supports children and places them using a Locator as the
> constraint. There are no included figures currently for doing what you want
> to do. You could use some kind of label and border combination perhaps, but
> you might need some new locator type. You're in new territory I think.
>

Oh t'riffic. My favourite place is to be out in front of the herd <G>....

BTW has anyone given any thought (esp in the context of the GMF etc
project helping to grow eclipse/emf/gmf as modelling tool foundations)
towards a kinda "stencils/shapes contrib" section? i.e. If/When I create
myself my thick colourable arrow as below I'd like to think others could
simply reuse it, but where would I send/put it?

Adam


>
> "Adam Flinton" <ada_nospam_m@_No_softfab_Spam.com> wrote in message
> news:dd7t2b$rv5$1@news.eclipse.org...
>
>>Dear All,
>>
>>I am looking at doing a visual modelling tool for HL7. We use a graphical
>>notation where the connectors are (colour coded) thick arrows containing
>>text showing some of the attributes e.g. (in Ascii art)
>>
>>--------------------------------\
>>| Attribute A \
>>| Attribute B /
>>--------------------------------/
>>
>>
>>A) How is this best achieved in GEF/Draw2D?
>>B) Is there anywhere a collection of "user contributed" stencils/shapes
>>such as the above so people don't have to re-invent the wheel on shapes
>>etc?
>>
>>TIA
>>
>>Adam
>
>
>
Re: What is the best way to make a thick arrow connector? [message #191293 is a reply to message #191184] Tue, 09 August 2005 19:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

If it is a general purpose figure it belongs in draw2d. Feel free to
contribute code when you have something working.
> BTW has anyone given any thought (esp in the context of the GMF etc
> project helping to grow eclipse/emf/gmf as modelling tool foundations)
> towards a kinda "stencils/shapes contrib" section? i.e. If/When I create
> myself my thick colourable arrow as below I'd like to think others could
> simply reuse it, but where would I send/put it?
>
> Adam
Re: What is the best way to make a thick arrow connector? [message #192047 is a reply to message #191293] Sat, 13 August 2005 09:06 Go to previous message
Eclipse UserFriend
Originally posted by: venkataramana.m.tcs.com

Adam, if you can spare thick-lines without labels...then changing
PolylineConnection's lineWidth with setLineWidth and changing
foregroundcolor should suffice. Though this seems silly I thought of
mentioning it.

Thanks
Venkat
Previous Topic:eclipse, GEF: how to use zoom
Next Topic:Attaching one figure to another
Goto Forum:
  


Current Time: Wed Feb 05 18:53:54 GMT 2025

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

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

Back to the top