Dear List,
I tried to understand the ScatterplotLayout in VW. Few questions on the design raised to me: - Why NodeFigure has variables xBlock and yBlock. I understand what these variables are for. However, I expected to see them in the shape, since the node is meant to represent the model, and should therefore not be aware of where it is supposed to be displayed. - What xOffset and yOffset are for? I could not really infer their meaning from the various examples I found
Cheers, Alexandre
Hi,
I tried to understand the ScatterplotLayout in VW. Few questions on the design raised to me:
- Why NodeFigure has variables xBlock and yBlock. I understand what
these variables are for. However, I expected to see them in the shape, since the node is meant to represent the model, and should therefore not be aware of where it is supposed to be displayed.
In the beginning they were in shape, but the problem was that it does not really belong there, because shape only encapsulates the way a figure should be drawn, and not where. That is why we moved anything that has to do with the position to the figure, rather than in the shape.
To access the x and y specifically, you have to say: view figure x: [...]; y: [...].
- What xOffset and yOffset are for? I could not really infer their
meaning from the various examples I found
xOffset is not really used. It was supposed to be a sort of margin. If you look for senders of xOffset you will see that they are only used in the ScatterplotLayout.
Cheers, Doru
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Next time you see your life passing by, say 'hi' and get to know her."
Today with Simon, we thought about something. Why not to put it in layout?
What about the following: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= view nodes: elements. view layout: (MOScatterplotLayout new upSideDown; scaleFactor: 2; x: #numberOfAttributes; y: #numberOfMethods) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Where the elements variable is bound to the famix classes.
Alexandre
On 29 Apr 2009, at 16:33, Tudor Girba wrote:
Hi,
I tried to understand the ScatterplotLayout in VW. Few questions on the design raised to me:
- Why NodeFigure has variables xBlock and yBlock. I understand
what these variables are for. However, I expected to see them in the shape, since the node is meant to represent the model, and should therefore not be aware of where it is supposed to be displayed.
In the beginning they were in shape, but the problem was that it does not really belong there, because shape only encapsulates the way a figure should be drawn, and not where. That is why we moved anything that has to do with the position to the figure, rather than in the shape.
To access the x and y specifically, you have to say: view figure x: [...]; y: [...].
- What xOffset and yOffset are for? I could not really infer their
meaning from the various examples I found
xOffset is not really used. It was supposed to be a sort of margin. If you look for senders of xOffset you will see that they are only used in the ScatterplotLayout.
Cheers, Doru
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Next time you see your life passing by, say 'hi' and get to know her."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi,
Yes, that is a possibility for the scatterplot layout, but it should not replace the previous mechanism.
Cheers, Doru
On 29 Apr 2009, at 19:35, Alexandre Bergel wrote:
Today with Simon, we thought about something. Why not to put it in layout?
What about the following:
view nodes: elements. view layout: (MOScatterplotLayout new upSideDown; scaleFactor: 2; x: #numberOfAttributes; y: #numberOfMethods) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Where the elements variable is bound to the famix classes.
Alexandre
On 29 Apr 2009, at 16:33, Tudor Girba wrote:
Hi,
I tried to understand the ScatterplotLayout in VW. Few questions on the design raised to me:
- Why NodeFigure has variables xBlock and yBlock. I understand
what these variables are for. However, I expected to see them in the shape, since the node is meant to represent the model, and should therefore not be aware of where it is supposed to be displayed.
In the beginning they were in shape, but the problem was that it does not really belong there, because shape only encapsulates the way a figure should be drawn, and not where. That is why we moved anything that has to do with the position to the figure, rather than in the shape.
To access the x and y specifically, you have to say: view figure x: [...]; y: [...].
- What xOffset and yOffset are for? I could not really infer
their meaning from the various examples I found
xOffset is not really used. It was supposed to be a sort of margin. If you look for senders of xOffset you will see that they are only used in the ScatterplotLayout.
Cheers, Doru
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Next time you see your life passing by, say 'hi' and get to know her."
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
-- www.tudorgirba.com
"Beauty is where we see it."