Hello, I noticed that RTEllipse doesn’t have the border. Why it is like that?
Best regards, Natalia
It does have a border, you just can't change it's width, which is set to 0.005.
~~~~~~~~~~~ e := RTEllipse new size: 30; color: Color white; borderColor: Color black; element. ~~~~~~~~~~~
I believe there was a problem with it's nonuniformity --- it would be thicker on the wider side and vice versa, or something like that.
In theory RTSVGPath could be used, but I don't think support for arcs was added yet (and maybe the problem is still there).
Peter
On Mon, Jun 8, 2015 at 1:03 PM, Natalia Tymchuk < natalia.tymchuk@unikernel.net> wrote:
Hello, I noticed that RTEllipse doesn’t have the border. Why it is like that?
Best regards, Natalia _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Natalia,
You can set the border as:
v := RTView new. shape := RTEllipse new size: 30; color: Color white; borderWidth: [ :vv | vv / 30 ]; borderColor: Color black. v addAll: (shape elementsOn: (1 to: 10)). RTGridLayout on: v elements. v
You questioned whether ellipse are special. I would say that border are rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.
Cheers, Alexandre
On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk natalia.tymchuk@unikernel.net wrote:
Hello, I noticed that RTEllipse doesn’t have the border. Why it is like that?
Best regards, Natalia _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Thank you.
Best regards, Natalia
On 08 Jun 2015, at 17:14, Alexandre Bergel alexandre.bergel@me.com wrote:
Hi Natalia,
You can set the border as:
v := RTView new. shape := RTEllipse new size: 30; color: Color white; borderWidth: [ :vv | vv / 30 ]; borderColor: Color black.
v addAll: (shape elementsOn: (1 to: 10)). RTGridLayout on: v elements. v
You questioned whether ellipse are special. I would say that border are rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.
Cheers, Alexandre
On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk natalia.tymchuk@unikernel.net wrote:
Hello, I noticed that RTEllipse doesn’t have the border. Why it is like that?
Best regards, Natalia _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Interesting; the layout is ignoring the border --- there should be spacing everywhere. It seems that the border is not accounted for in encompassingRectangle and/or containsPoint: as RTDraggable also works only on the inner half of the border.
Peter
On Mon, Jun 8, 2015 at 5:19 PM, Natalia Tymchuk < natalia.tymchuk@unikernel.net> wrote:
Thank you.
Best regards, Natalia
On 08 Jun 2015, at 17:14, Alexandre Bergel alexandre.bergel@me.com
wrote:
Hi Natalia,
You can set the border as:
v := RTView new. shape := RTEllipse new size: 30; color: Color white; borderWidth: [ :vv | vv / 30 ]; borderColor: Color black.
v addAll: (shape elementsOn: (1 to: 10)). RTGridLayout on: v elements. v
You questioned whether ellipse are special. I would say that border are
rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.
Cheers, Alexandre
On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk <
natalia.tymchuk@unikernel.net> wrote:
Hello, I noticed that RTEllipse doesn’t have the border. Why it is like that?
Best regards, Natalia _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Also, why does RTEllipse has different units for the border? I.e. why is there division by 30; if I did that with RTBox I would get quite different results.
Thanks, Peter
On Mon, Jun 8, 2015 at 8:57 PM, Peter Uhnák i.uhnak@gmail.com wrote:
Interesting; the layout is ignoring the border --- there should be spacing everywhere. It seems that the border is not accounted for in encompassingRectangle and/or containsPoint: as RTDraggable also works only on the inner half of the border.
Peter
On Mon, Jun 8, 2015 at 5:19 PM, Natalia Tymchuk < natalia.tymchuk@unikernel.net> wrote:
Thank you.
Best regards, Natalia
On 08 Jun 2015, at 17:14, Alexandre Bergel alexandre.bergel@me.com
wrote:
Hi Natalia,
You can set the border as:
v := RTView new. shape := RTEllipse new size: 30; color: Color white; borderWidth: [ :vv | vv / 30 ]; borderColor: Color black.
v addAll: (shape elementsOn: (1 to: 10)). RTGridLayout on: v elements. v
You questioned whether ellipse are special. I would say that border are
rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.
Cheers, Alexandre
On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk <
natalia.tymchuk@unikernel.net> wrote:
Hello, I noticed that RTEllipse doesn’t have the border. Why it is like that?
Best regards, Natalia _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
I am not sure why. I guess this comes from Athens…
Alexandre
On Jun 8, 2015, at 3:58 PM, Peter Uhnák i.uhnak@gmail.com wrote:
Also, why does RTEllipse has different units for the border? I.e. why is there division by 30; if I did that with RTBox I would get quite different results.
Thanks, Peter
On Mon, Jun 8, 2015 at 8:57 PM, Peter Uhnák i.uhnak@gmail.com wrote: Interesting; the layout is ignoring the border --- there should be spacing everywhere. It seems that the border is not accounted for in encompassingRectangle and/or containsPoint: as RTDraggable also works only on the inner half of the border.
Peter
On Mon, Jun 8, 2015 at 5:19 PM, Natalia Tymchuk natalia.tymchuk@unikernel.net wrote: Thank you.
Best regards, Natalia
On 08 Jun 2015, at 17:14, Alexandre Bergel alexandre.bergel@me.com wrote:
Hi Natalia,
You can set the border as:
v := RTView new. shape := RTEllipse new size: 30; color: Color white; borderWidth: [ :vv | vv / 30 ]; borderColor: Color black.
v addAll: (shape elementsOn: (1 to: 10)). RTGridLayout on: v elements. v
You questioned whether ellipse are special. I would say that border are rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.
Cheers, Alexandre
On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk natalia.tymchuk@unikernel.net wrote:
Hello, I noticed that RTEllipse doesn’t have the border. Why it is like that?
Best regards, Natalia _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
2015-06-08 22:06 GMT+02:00 Alexandre Bergel alexandre.bergel@me.com:
I am not sure why. I guess this comes from Athens…
Alexandre
Just look at these issues:
Issue 1097 https://code.google.com/p/moose-technology/issues/detail?id=1097: Not all shapes support borderColor/borderWidth https://code.google.com/p/moose-technology/issues/detail?id=1097
14796 https://pharo.fogbugz.com/default.asp?14796 PaintMatrix does not effect strokepaints 15554 https://pharo.fogbugz.com/default.asp?15554 change athens EllipseMorph drawing
On Jun 8, 2015, at 3:58 PM, Peter Uhnák i.uhnak@gmail.com wrote:
Also, why does RTEllipse has different units for the border? I.e. why is
there division by 30; if I did that with RTBox I would get quite different results.
Thanks, Peter
On Mon, Jun 8, 2015 at 8:57 PM, Peter Uhnák i.uhnak@gmail.com wrote: Interesting; the layout is ignoring the border --- there should be
spacing everywhere.
It seems that the border is not accounted for in encompassingRectangle
and/or containsPoint: as RTDraggable also works only on the inner half of the border.
Peter
On Mon, Jun 8, 2015 at 5:19 PM, Natalia Tymchuk <
natalia.tymchuk@unikernel.net> wrote:
Thank you.
Best regards, Natalia
On 08 Jun 2015, at 17:14, Alexandre Bergel alexandre.bergel@me.com
wrote:
Hi Natalia,
You can set the border as:
v := RTView new. shape := RTEllipse new size: 30; color: Color white; borderWidth: [ :vv | vv / 30 ]; borderColor: Color black.
v addAll: (shape elementsOn: (1 to: 10)). RTGridLayout on: v elements. v
You questioned whether ellipse are special. I would say that border
are rarely required for an ellipse, but for a box it is often necessary. This is just my feeling.
Cheers, Alexandre
On Jun 8, 2015, at 8:03 AM, Natalia Tymchuk <
natalia.tymchuk@unikernel.net> wrote:
Hello, I noticed that RTEllipse doesn’t have the border. Why it is like that?
Best regards, Natalia _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev