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!
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.
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
>
> ------------------------------------------------------------------------
>
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
>>
>> ------------------------------------------------------------------------
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
>>>
>>> ------------------------------------------------------------------------
>
>
non-rectangular bound?
At 4:51 PM on Jul 24, 2008, Kelvin Ng wrote:
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
4 replies so far (
Post your own)
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.
Re: non-rectangular bound?
I guess you are using ChopboxAnchor. You can define your ownConnectionAnchor 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
>
> ------------------------------------------------------------------------
>
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
>>
>> ------------------------------------------------------------------------
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
>>>
>>> ------------------------------------------------------------------------
>
>