Unwanted Horizontal Rule Above a Compartment [message #96356] |
Wed, 24 January 2007 18:00  |
Eclipse User |
|
|
|
Originally posted by: webwhysguy.gmail.com
Greetings,
I'm having trouble getting rid of an unwanted horizontal rule above a
compartment. I've put together a graphic (see below), but here is a text
description of the layout as well:
- Within a "Files" compartment I have a "Files" rectangle (no fill,
line width=0).
- The files rectangle is composed of a "Files" label (w/icon and fixed
text of "Files") and a "File" compartment that
is actually a Diagram Label.
- Within the File compartment is a list of "File" nodes which are
feature labels.
For some reason I am getting a horizontal rule just above the first file in
the "File" compartment. The rule grows as the compartment grows. The
horizontal rule is just visual clutter for my purposes, so I want to get rid
of it. I've tried working with all of the properties I can think of for the
Rectangle and labels, but no success. Any suggestions would be greatly
appreciated.
Thanks in advance!
- Billy
|
|
|
Re: Unwanted Horizontal Rule Above a Compartment (Correction!) [message #96376 is a reply to message #96356] |
Wed, 24 January 2007 18:54   |
Eclipse User |
|
|
|
Originally posted by: webwhysguy.gmail.com
Hi,
Sorry, but I was just a bit off on the description of my figure and it's
compartments. The "Files" Rectangle is the "File" compartment. I've
updated my description and image. Sorry for the confusion!
- Within a "Files" compartment I have a "Files" rectangle (no fill,
(no fill, line width=0).
- The files rectangle is also the "File" compartment and is
composed of a "Files" label (w/icon and fixed text of "Files")
- Within the "File" compartment is a list of "File" feature labels.
Take Care,
- Billy
"webwhysguy" <webwhysguy@gmail.com> wrote in message
news:ep8of0$8ua$1@utils.eclipse.org...
> Greetings,
>
> I'm having trouble getting rid of an unwanted horizontal rule above a
> compartment. I've put together a graphic (see below), but here is a text
> description of the layout as well:
> - Within a "Files" compartment I have a "Files" rectangle (no fill,
> line width=0).
> - The files rectangle is composed of a "Files" label (w/icon and fixed
> text of "Files") and a "File" compartment that
> is actually a Diagram Label.
> - Within the File compartment is a list of "File" nodes which are
> feature labels.
>
> For some reason I am getting a horizontal rule just above the first file
> in
> the "File" compartment. The rule grows as the compartment grows. The
> horizontal rule is just visual clutter for my purposes, so I want to get
> rid
> of it. I've tried working with all of the properties I can think of for
> the
> Rectangle and labels, but no success. Any suggestions would be greatly
> appreciated.
>
> Thanks in advance!
>
> - Billy
>
>
>
>
>
|
|
|
Re: Unwanted Horizontal Rule Above a Compartment (Correction!) [message #96590 is a reply to message #96376] |
Thu, 25 January 2007 05:23   |
Eclipse User |
|
|
|
Originally posted by: christian.bartels.gmx.de
Hi Billy,
I had the same problem and solved it this way:
Go to the createFigure Method of your CompartmentEditPart where the
ruler is painted and add the following line to it:
result.setBorder(null);
This horizonztal rule is set since the M4 release in the constructor of
the ResizableCompartmentFigure at the last line (113):
setBorder(new OneLineBorder());
By setting it back to null it disappears.
Hope that will help,
Christian.
webwhysguy schrieb:
> Hi,
>
> Sorry, but I was just a bit off on the description of my figure and it's
> compartments. The "Files" Rectangle is the "File" compartment. I've
> updated my description and image. Sorry for the confusion!
> - Within a "Files" compartment I have a "Files" rectangle (no fill,
> (no fill, line width=0).
> - The files rectangle is also the "File" compartment and is
> composed of a "Files" label (w/icon and fixed text of "Files")
> - Within the "File" compartment is a list of "File" feature labels.
>
> Take Care,
> - Billy
>
>
>
>
> "webwhysguy" <webwhysguy@gmail.com> wrote in message
> news:ep8of0$8ua$1@utils.eclipse.org...
>> Greetings,
>>
>> I'm having trouble getting rid of an unwanted horizontal rule above a
>> compartment. I've put together a graphic (see below), but here is a text
>> description of the layout as well:
>> - Within a "Files" compartment I have a "Files" rectangle (no fill,
>> line width=0).
>> - The files rectangle is composed of a "Files" label (w/icon and fixed
>> text of "Files") and a "File" compartment that
>> is actually a Diagram Label.
>> - Within the File compartment is a list of "File" nodes which are
>> feature labels.
>>
>> For some reason I am getting a horizontal rule just above the first file
>> in
>> the "File" compartment. The rule grows as the compartment grows. The
>> horizontal rule is just visual clutter for my purposes, so I want to get
>> rid
>> of it. I've tried working with all of the properties I can think of for
>> the
>> Rectangle and labels, but no success. Any suggestions would be greatly
>> appreciated.
>>
>> Thanks in advance!
>>
>> - Billy
>>
>>
>>
>>
>>
>
>
|
|
|
Re: Unwanted Horizontal Rule Above a Compartment (Correction!) [message #97090 is a reply to message #96590] |
Thu, 25 January 2007 21:38  |
Eclipse User |
|
|
|
Originally posted by: webwhysguy.gmail.com
Worked like a charm ... thanks!
"Christian Bartels" <christian.bartels@gmx.de> wrote in message
news:epa0ge$6f6$1@utils.eclipse.org...
> Hi Billy,
>
> I had the same problem and solved it this way:
>
> Go to the createFigure Method of your CompartmentEditPart where the ruler
> is painted and add the following line to it:
>
> result.setBorder(null);
>
> This horizonztal rule is set since the M4 release in the constructor of
> the ResizableCompartmentFigure at the last line (113):
>
> setBorder(new OneLineBorder());
>
> By setting it back to null it disappears.
>
> Hope that will help,
> Christian.
>
> webwhysguy schrieb:
>> Hi,
>>
>> Sorry, but I was just a bit off on the description of my figure and it's
>> compartments. The "Files" Rectangle is the "File" compartment. I've
>> updated my description and image. Sorry for the confusion!
>> - Within a "Files" compartment I have a "Files" rectangle (no fill,
>> (no fill, line width=0).
>> - The files rectangle is also the "File" compartment and is
>> composed of a "Files" label (w/icon and fixed text of "Files")
>> - Within the "File" compartment is a list of "File" feature labels.
>>
>> Take Care,
>> - Billy
>>
>>
>>
>>
>> "webwhysguy" <webwhysguy@gmail.com> wrote in message
>> news:ep8of0$8ua$1@utils.eclipse.org...
>>> Greetings,
>>>
>>> I'm having trouble getting rid of an unwanted horizontal rule above a
>>> compartment. I've put together a graphic (see below), but here is a
>>> text
>>> description of the layout as well:
>>> - Within a "Files" compartment I have a "Files" rectangle (no fill,
>>> line width=0).
>>> - The files rectangle is composed of a "Files" label (w/icon and
>>> fixed
>>> text of "Files") and a "File" compartment that
>>> is actually a Diagram Label.
>>> - Within the File compartment is a list of "File" nodes which are
>>> feature labels.
>>>
>>> For some reason I am getting a horizontal rule just above the first file
>>> in
>>> the "File" compartment. The rule grows as the compartment grows. The
>>> horizontal rule is just visual clutter for my purposes, so I want to get
>>> rid
>>> of it. I've tried working with all of the properties I can think of for
>>> the
>>> Rectangle and labels, but no success. Any suggestions would be greatly
>>> appreciated.
>>>
>>> Thanks in advance!
>>>
>>> - Billy
>>>
>>>
>>>
>>>
>>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.05163 seconds