On Thu, Apr 8, 2010 at 2:29 PM, Bob Tarling <[email protected]> wrote:
> The class to look at is FigActor.
>
> It looks as if someone has already put some code in to force the
> arrows to connect directly to the stick figure rather than the outer
> bounds of the figure.

Presumably so that connections don't end out in space some distance
away from the irregularly shaped figure.

> This was done by overriding the getGravityPoints() method on that class.
>
> Maybe its worth just removing that method first of all to see if it is
> really needed. If the connection does not look so good then you could
> try amending the method instead.

I'd try adding the lower (or all?) corners of the label text box to
the polygon used for connections, so instead of

  Left Arm, Left Leg, Right Leg, Right Arm,

it goes

  Left Arm, Left Leg, Text Box upper left, Text Box lower left, Text
box lower right, Text box upper right, Right leg, Right arm

That should give you the best of both worlds.

Tom

>
> Register with tigris and then you can apply any patch to the issue.
>
> Regards
>
> Bob
>
> On 8 April 2010 18:10, Tom Morris <[email protected]> wrote:
>> On Wed, Apr 7, 2010 at 8:59 PM, Ralph Sawaya <[email protected]> 
>> wrote:
>>
>>> I just would like to know if u can give me some guides in order to solve the
>>> following issue:
>>>
>>> http://argouml.tigris.org/issues/show_bug.cgi?id=3820
>>>
>>> I was thinking of finding the class that draws the arrow and instead of the
>>> endpoint of the arrow being the leg of the Actor (when mouse released), it
>>> should rather be the bottom of the Actor text name.
>>
>> The connection is made to the closest point on the perimeter of the
>> figure (not just the leg).  Bob could probably offer the best advice,
>> but rather than looking for code that deals with the connection, I'd
>> instead investigate moving the text label inside a containing Fig
>> group.  The right connection positioning should then happen
>> automagically.
>>
>> Tom
>>
>> ------------------------------------------------------
>> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2523699
>>
>> To unsubscribe from this discussion, e-mail: 
>> [[email protected]].
>> To be allowed to post to the list contact the mailing list moderator, email: 
>> [[email protected]]
>>
>
> ------------------------------------------------------
> http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2524284
>
> To unsubscribe from this discussion, e-mail: 
> [[email protected]].
> To be allowed to post to the list contact the mailing list moderator, email: 
> [[email protected]]
>

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2524575

To unsubscribe from this discussion, e-mail: 
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email: 
[[email protected]]

Reply via email to