|
Re: Problems with Border, setClip() and getInsets() [message #242926 is a reply to message #242872] |
Wed, 14 May 2008 16:42 |
Del Myers Messages: 82 Registered: July 2009 |
Member |
|
|
I had a similar problem, and I ended up just writing my own Figure for it. That
is a lot easier than trying to create a border. I can probably send you the code
for it, if you like.
Del
chris wrote:
> Hi,
>
> I'm having trouble defining my own border. I'm trying to do something
> like a UML "multi-object" (see attached pic). This works so far, but
> only if I use the setClip method as shown in the attached class (I've
> learned that from some example code). But this seems to be causing
> trouble with repainting in some situations...
>
> In fact, I've seen a message where somebody suggests not to use
> setClip() - returning appropriate Insets shall be the solution.
> Unfortunately, I can't find the message in this newsgroup any more.
>
> So I tried to return Insets as can be seen in the code, but my border
> wouldn't appear, so I switched back to the setClip() solution for now.
>
> Can anybody help me figuring out what I'm doing wrong?
>
> Thanks in advance,
> Chris
>
> ------------------------------------------------------------ ------------
>
|
|
|
Re: Problems with Border, setClip() and getInsets() [message #242936 is a reply to message #242926] |
Thu, 15 May 2008 05:07 |
chris Messages: 72 Registered: July 2009 |
Member |
|
|
Hi Del,
that would be awesome. The only problem is that I need to add/remove
that border depending on a boolean attribute of the semantic element -
with your solution, I would have to learn how to exchange the figure of
an EditPart :-)
In fact, I thought it's pretty easy to write a custom border, but this
doesn't seem to be the case - does anybody have a solution to the
original problem?
Thanks,
Chris
Del Myers schrieb:
> I had a similar problem, and I ended up just writing my own Figure for
> it. That is a lot easier than trying to create a border. I can probably
> send you the code for it, if you like.
>
> Del
>
> chris wrote:
>> Hi,
>>
>> I'm having trouble defining my own border. I'm trying to do something
>> like a UML "multi-object" (see attached pic). This works so far, but
>> only if I use the setClip method as shown in the attached class (I've
>> learned that from some example code). But this seems to be causing
>> trouble with repainting in some situations...
>>
>> In fact, I've seen a message where somebody suggests not to use
>> setClip() - returning appropriate Insets shall be the solution.
>> Unfortunately, I can't find the message in this newsgroup any more.
>>
>> So I tried to return Insets as can be seen in the code, but my border
>> wouldn't appear, so I switched back to the setClip() solution for now.
>>
>> Can anybody help me figuring out what I'm doing wrong?
>>
>> Thanks in advance,
>> Chris
>>
>> ------------------------------------------------------------ ------------
>>
--
Olin Miller: "You probably wouldn't worry about what people think of you
if you could know how seldom they do."
|
|
|
Powered by
FUDForum. Page generated in 0.04226 seconds