Forum Controls
Spotlight Features

The Rich Engineering Heritage Behind Dependency Injection

Andrew McVeigh takes us on a tour of the rich heritage behind dependency injection, what it represents, and tells us why its here to stay.

Java, the OLPC, and community responsibility

The "One Laptop Per Child" project has a great device ready to ship, but there's no Java on there. Let's think about working together to put Java on OLPC!
Replies: 4 - Pages: 1  
Threads: [ Previous | Next ]
  Click to reply to this thread Reply

non-rectangular bound?

At 4:51 PM on Jul 24, 2008, Kelvin Ng wrote:

is there some possible way to define a non-rectangular boundary?

I want my link (the arrow) to point at the edge of the curved corner,
not the rectangular bound.
(Please take a look at the attachment)

~Kelvin Ng
  Click to reply to this thread Reply
1. At 10:14 PM on Jul 24, 2008, David BY Chan wrote:

Re: non-rectangular bound?

Kelvin Ng wrote:
> is there some possible way to define a non-rectangular boundary?
>
> I want my link (the arrow) to point at the edge of the curved corner,
> not the rectangular bound.
> (Please take a look at the attachment)
>
> ~Kelvin Ng
>
> ------------------------------------------------------------------------
>
IMO, impossible, because the OS GUI system SWT adapting disallowed
non-rectangular boundary.
  Click to reply to this thread Reply
2. At 12:49 AM on Jul 25, 2008, Prakash Javalobby Regulars wrote:

Re: non-rectangular bound?

I guess you are using ChopboxAnchor. You can define your own
ConnectionAnchor and give out the x, y position for the connection.


- Prakash

www.eclipse-tips.com





Kelvin Ng wrote:
> is there some possible way to define a non-rectangular boundary?
>
> I want my link (the arrow) to point at the edge of the curved corner,
> not the rectangular bound.
> (Please take a look at the attachment)
>
> ~Kelvin Ng
>
> ------------------------------------------------------------------------
>
Eclipse Tips Eclipse Search
  Click to reply to this thread Reply
3. At 2:40 PM on Jul 25, 2008, Kelvin Ng wrote:

Re: non-rectangular bound?

Are you able to provide any example code for this?

~Kelvin Ng


On 2008-07-25 01:19:04 -0400, "Prakash G.R." said:

> I guess you are using ChopboxAnchor. You can define your own
> ConnectionAnchor and give out the x, y position for the connection.
>
>
> - Prakash
>
> www.eclipse-tips.com
>
>
>
>
>
> Kelvin Ng wrote:
>> is there some possible way to define a non-rectangular boundary?
>>
>> I want my link (the arrow) to point at the edge of the curved corner,
>> not the rectangular bound.
>> (Please take a look at the attachment)
>>
>> ~Kelvin Ng
>>
>> ------------------------------------------------------------------------


  Click to reply to this thread Reply
4. At 9:41 AM on Jul 28, 2008, Simon Bernard wrote:

Re: non-rectangular bound?

see the shapes example (you could take inspiration from ellipse)

the idea is to :
- add interface NodeEditpart on the editpart which control your ellipse
- implement getTargetConnectionAnchor,getSourceConnectionAnchor on the
editPart to return your own anchors.



Kelvin Ng a écrit :
> Are you able to provide any example code for this?
>
> ~Kelvin Ng
>
>
> On 2008-07-25 01:19:04 -0400, "Prakash G.R." said:
>
>> I guess you are using ChopboxAnchor. You can define your own
>> ConnectionAnchor and give out the x, y position for the connection.
>>
>>
>> - Prakash
>>
>> www.eclipse-tips.com
>>
>>
>>
>>
>>
>> Kelvin Ng wrote:
>>> is there some possible way to define a non-rectangular boundary?
>>>
>>> I want my link (the arrow) to point at the edge of the curved corner,
>>> not the rectangular bound.
>>> (Please take a look at the attachment)
>>>
>>> ~Kelvin Ng
>>>
>>> ------------------------------------------------------------------------
>
>

thread.rss_message