Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Create a block arrow
Create a block arrow [message #155500] Mon, 25 October 2004 21:06 Go to next message
Eclipse UserFriend
Originally posted by: pavan.podila.gmail.com

This is a multi-part message in MIME format.
--------------040004090503030605080600
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,
I want to make a ConnectionEditPart that has a block arrow as it's
figure. What is the right way to do it ? I am thinking of using the
Polygon figure but not sure if it would automatically stretch. Any
pointers in this regard are greatly appreciated.
I have attached an image that depicts my requirement.

Thanks,
Pavan

--------------040004090503030605080600
Content-Type: image/gif;
name="arrow.gif"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="arrow.gif"

R0lGODlh8QAxAHAAACwAAAAA8QAxAIcAAAAICAgMDBAcHBwkKCgsLCw4PDw8 PDxMTExdXWFt
cXVxcXGRlZmlpaWlrrKusrq+vr7K0tre3t7m5ubq7vb29vb///8AAAAAAAAA AAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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fropBVVJSmlmEbU1KWZdjoUBZx6KmpC MIU66qkvCZAk
qqxONAEBD2oCFBAAOw==
--------------040004090503030605080600--
Re: Create a block arrow [message #155673 is a reply to message #155500] Tue, 26 October 2004 15:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

"Any pointers". lol.
I would just subclass Figure or Shape and override paint (or outline/fill
for shapes).
I'm assuming you want to treat this arrow like a rectangle.

"Pavan Podila" <pavan.podila@gmail.com> wrote in message
news:cljm03$6ad$1@eclipse.org...
> Hi,
> I want to make a ConnectionEditPart that has a block arrow as it's
> figure. What is the right way to do it ? I am thinking of using the
> Polygon figure but not sure if it would automatically stretch. Any
> pointers in this regard are greatly appreciated.
> I have attached an image that depicts my requirement.
>
> Thanks,
> Pavan
>


------------------------------------------------------------ ----------------
----
Re: Create a block arrow [message #155826 is a reply to message #155673] Wed, 27 October 2004 04:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pavan.podila.gmail.com

I will be using this as a ConnectionEditPart. So when I move figures
connected by this arrow, will the arrow be automatically stretched. How
do I specify the size of the arrow. Do I give direct values for the
length of the arrow ? "Pointers" needed again.

Randy Hudson wrote:
> "Any pointers". lol.
> I would just subclass Figure or Shape and override paint (or outline/fill
> for shapes).
> I'm assuming you want to treat this arrow like a rectangle.
>
> "Pavan Podila" <pavan.podila@gmail.com> wrote in message
> news:cljm03$6ad$1@eclipse.org...
>
>>Hi,
>> I want to make a ConnectionEditPart that has a block arrow as it's
>>figure. What is the right way to do it ? I am thinking of using the
>>Polygon figure but not sure if it would automatically stretch. Any
>>pointers in this regard are greatly appreciated.
>> I have attached an image that depicts my requirement.
>>
>>Thanks,
>>Pavan
>>
>
>
>
> ------------------------------------------------------------ ----------------
> ----
>
>
>
>
>
Re: Create a block arrow [message #155865 is a reply to message #155826] Wed, 27 October 2004 13:57 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

To do what you are trying, you will need to create a custom connection
implementation.
You could extend PolylineConnection, but you'd be changing the way bounds
calculation and painting is done completely.

"Pavan Podila" <pavan.podila@gmail.com> wrote in message
news:417F248C.9090207@gmail.com...
> I will be using this as a ConnectionEditPart. So when I move figures
> connected by this arrow, will the arrow be automatically stretched. How
> do I specify the size of the arrow. Do I give direct values for the
> length of the arrow ? "Pointers" needed again.
>
> Randy Hudson wrote:
> > "Any pointers". lol.
> > I would just subclass Figure or Shape and override paint (or
outline/fill
> > for shapes).
> > I'm assuming you want to treat this arrow like a rectangle.
> >
> > "Pavan Podila" <pavan.podila@gmail.com> wrote in message
> > news:cljm03$6ad$1@eclipse.org...
> >
> >>Hi,
> >> I want to make a ConnectionEditPart that has a block arrow as it's
> >>figure. What is the right way to do it ? I am thinking of using the
> >>Polygon figure but not sure if it would automatically stretch. Any
> >>pointers in this regard are greatly appreciated.
> >> I have attached an image that depicts my requirement.
> >>
> >>Thanks,
> >>Pavan
> >>
> >
> >
> >
>
> ------------------------------------------------------------ --------------
--
> > ----
> >
> >
> >
> >
> >
Previous Topic:I have confused by create my connection?
Next Topic:Popup menu problem
Goto Forum:
  


Current Time: Thu Apr 25 12:52:07 GMT 2024

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

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

Back to the top