Hi Doru,
please remove "Software Cartographer" from Moose page. It never integrated with Moose at all.
http://www.moosetechnology.org/tools/vw/softwarecartographer
thanks, AA
Hi Adrian,
The page was created by Peter Loretan as an advertisement for his project, so I would need his accept to remove it.
Then again, it is not quite true that it "never integrated with Moose at all", given that it was using Hapax and FAMIX information :).
Cheers, Doru
On 27 Dec 2009, at 20:51, Adrian Kuhn wrote:
Hi Doru,
please remove "Software Cartographer" from Moose page. It never integrated with Moose at all.
http://www.moosetechnology.org/tools/vw/softwarecartographer
thanks, AA
-- www.tudorgirba.com
"To lead is not to demand things, it is to make them happen."
Peter abandoned his master.
So just remove it at my request.
thanks, AA
On Dec 27, 2009, at 21:29 , Tudor Girba wrote:
Hi Adrian,
The page was created by Peter Loretan as an advertisement for his project, so I would need his accept to remove it.
Then again, it is not quite true that it "never integrated with Moose at all", given that it was using Hapax and FAMIX information :).
Cheers, Doru
On 27 Dec 2009, at 20:51, Adrian Kuhn wrote:
Hi Doru,
please remove "Software Cartographer" from Moose page. It never integrated with Moose at all.
http://www.moosetechnology.org/tools/vw/softwarecartographer
thanks, AA
-- www.tudorgirba.com
"To lead is not to demand things, it is to make them happen."
Ok.
Doru
On 27 Dec 2009, at 22:19, Adrian Kuhn wrote:
Peter abandoned his master.
So just remove it at my request.
thanks, AA
On Dec 27, 2009, at 21:29 , Tudor Girba wrote:
Hi Adrian,
The page was created by Peter Loretan as an advertisement for his project, so I would need his accept to remove it.
Then again, it is not quite true that it "never integrated with Moose at all", given that it was using Hapax and FAMIX information :).
Cheers, Doru
On 27 Dec 2009, at 20:51, Adrian Kuhn wrote:
Hi Doru,
please remove "Software Cartographer" from Moose page. It never integrated with Moose at all.
http://www.moosetechnology.org/tools/vw/softwarecartographer
thanks, AA
-- www.tudorgirba.com
"To lead is not to demand things, it is to make them happen."
-- www.tudorgirba.com
"Problem solving efficiency grows with the abstractness level of problem understanding."
Hi,
I would like to have the following feature in Mondrian: when the user clicks on the main canvas, a text box (a rectangle figure) appears and the user can write in it and move it around. Is this doable with a script or should I work with the canvas class? Any hint on where should I look at to implement it is appreciated.
Thanks! Marco
Hi Marco,
Which version of Mondrian are you referring to? VW or Pharo?
Cheers, Alexandre
On 28 Dec 2009, at 00:05, Marco D'Ambros wrote:
Hi,
I would like to have the following feature in Mondrian: when the user clicks on the main canvas, a text box (a rectangle figure) appears and the user can write in it and move it around. Is this doable with a script or should I work with the canvas class? Any hint on where should I look at to implement it is appreciated.
Thanks! Marco _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Pharo
Cheers, Marco
On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote:
Hi Marco,
Which version of Mondrian are you referring to? VW or Pharo?
Cheers, Alexandre
On 28 Dec 2009, at 00:05, Marco D'Ambros wrote:
Hi,
I would like to have the following feature in Mondrian: when the user clicks on the main canvas, a text box (a rectangle figure) appears and the user can write in it and move it around. Is this doable with a script or should I work with the canvas class? Any hint on where should I look at to implement it is appreciated.
Thanks! Marco _______________________________________________ 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
cool!
Stef On Dec 28, 2009, at 4:03 AM, Marco D'Ambros wrote:
Pharo
Cheers, Marco
On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote:
Hi Marco,
Which version of Mondrian are you referring to? VW or Pharo?
Cheers, Alexandre
On 28 Dec 2009, at 00:05, Marco D'Ambros wrote:
Hi,
I would like to have the following feature in Mondrian: when the user clicks on the main canvas, a text box (a rectangle figure) appears and the user can write in it and move it around. Is this doable with a script or should I work with the canvas class? Any hint on where should I look at to implement it is appreciated.
Thanks! Marco _______________________________________________ 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
Hi Marco,
First of all, great to hear that you are working on Pharo :).
Could you detail your goal a little bit more?
You seem to need to add nodes to the existing graph. Is this so? Or do you just need a way to add some annotations that are then rendered somehow?
I am asking because adding nodes dynamically is not quite supported, in particular because it changes the semantics of the layout.
Cheers, Doru
On 28 Dec 2009, at 04:03, Marco D'Ambros wrote:
Pharo
Cheers, Marco
On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote:
Hi Marco,
Which version of Mondrian are you referring to? VW or Pharo?
Cheers, Alexandre
On 28 Dec 2009, at 00:05, Marco D'Ambros wrote:
Hi,
I would like to have the following feature in Mondrian: when the user clicks on the main canvas, a text box (a rectangle figure) appears and the user can write in it and move it around. Is this doable with a script or should I work with the canvas class? Any hint on where should I look at to implement it is appreciated.
Thanks! Marco _______________________________________________ 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
-- www.tudorgirba.com
"What we can governs what we wish."
Hi Doru,
First of all, great to hear that you are working on Pharo :).
;)
Could you detail your goal a little bit more?
You seem to need to add nodes to the existing graph. Is this so? Or do you just need a way to add some annotations that are then rendered somehow?
I just need to add annotations to the visualization, than I can then export to png etc. For what I need I can just move the text boxes manually, without automatic layout.
cheers, Marco
I am asking because adding nodes dynamically is not quite supported, in particular because it changes the semantics of the layout.
Cheers, Doru
On 28 Dec 2009, at 04:03, Marco D'Ambros wrote:
Pharo
Cheers, Marco
On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote:
Hi Marco,
Which version of Mondrian are you referring to? VW or Pharo?
Cheers, Alexandre
On 28 Dec 2009, at 00:05, Marco D'Ambros wrote:
Hi,
I would like to have the following feature in Mondrian: when the user clicks on the main canvas, a text box (a rectangle figure) appears and the user can write in it and move it around. Is this doable with a script or should I work with the canvas class? Any hint on where should I look at to implement it is appreciated.
Thanks! Marco _______________________________________________ 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
-- www.tudorgirba.com
"What we can governs what we wish."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Marco,
Try the following: -=-=-=-=-=-=-=-=-=-=-=-= view nodes: (1 to: 100). view gridLayout gapSize: 10.
view root interaction on: MOMouseDouble do: [:ann | | node txt | txt := UIManager default request: 'Enter a text'. view shape rectangle withText. node := view node: txt. node translateBy: ann position. view updateWindow ] -=-=-=-=-=-=-=-=-=-=-=-= Is it what you wanted?
Cheers, Alexandre
On 28 Dec 2009, at 04:03, Marco D'Ambros wrote:
Pharo
Cheers, Marco
On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote:
Hi Marco,
Which version of Mondrian are you referring to? VW or Pharo?
Cheers, Alexandre
On 28 Dec 2009, at 00:05, Marco D'Ambros wrote:
Hi,
I would like to have the following feature in Mondrian: when the user clicks on the main canvas, a text box (a rectangle figure) appears and the user can write in it and move it around. Is this doable with a script or should I work with the canvas class? Any hint on where should I look at to implement it is appreciated.
Thanks! Marco _______________________________________________ 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
Thanks! That's exactly what I wanted :-) How can I make the figure resizable with the text arranging accordingly (i.e. going on multiple lines?)
cheers, Marco
On Dec 28, 2009, at 1:15 PM, Alexandre Bergel wrote:
Hi Marco,
Try the following:
view nodes: (1 to: 100). view gridLayout gapSize: 10.
view root interaction on: MOMouseDouble do: [:ann | | node txt | txt := UIManager default request: 'Enter a text'. view shape rectangle withText. node := view node: txt. node translateBy: ann position. view updateWindow ] -=-=-=-=-=-=-=-=-=-=-=-= Is it what you wanted?
Cheers, Alexandre
On 28 Dec 2009, at 04:03, Marco D'Ambros wrote:
Pharo
Cheers, Marco
On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote:
Hi Marco,
Which version of Mondrian are you referring to? VW or Pharo?
Cheers, Alexandre
On 28 Dec 2009, at 00:05, Marco D'Ambros wrote:
Hi,
I would like to have the following feature in Mondrian: when the user clicks on the main canvas, a text box (a rectangle figure) appears and the user can write in it and move it around. Is this doable with a script or should I work with the canvas class? Any hint on where should I look at to implement it is appreciated.
Thanks! Marco _______________________________________________ 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Arg... I have to say "we cannot for now". Node resizing is currently not supported.
Alexandre
On 28 Dec 2009, at 14:13, Marco D'Ambros wrote:
Thanks! That's exactly what I wanted :-) How can I make the figure resizable with the text arranging accordingly (i.e. going on multiple lines?)
cheers, Marco
On Dec 28, 2009, at 1:15 PM, Alexandre Bergel wrote:
Hi Marco,
Try the following:
view nodes: (1 to: 100). view gridLayout gapSize: 10.
view root interaction on: MOMouseDouble do: [:ann | | node txt | txt := UIManager default request: 'Enter a text'. view shape rectangle withText. node := view node: txt. node translateBy: ann position. view updateWindow ] -=-=-=-=-=-=-=-=-=-=-=-= Is it what you wanted?
Cheers, Alexandre
On 28 Dec 2009, at 04:03, Marco D'Ambros wrote:
Pharo
Cheers, Marco
On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote:
Hi Marco,
Which version of Mondrian are you referring to? VW or Pharo?
Cheers, Alexandre
On 28 Dec 2009, at 00:05, Marco D'Ambros wrote:
Hi,
I would like to have the following feature in Mondrian: when the user clicks on the main canvas, a text box (a rectangle figure) appears and the user can write in it and move it around. Is this doable with a script or should I work with the canvas class? Any hint on where should I look at to implement it is appreciated.
Thanks! Marco _______________________________________________ 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: 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
ok, but how can I render a multiline label? I found that by changing #textHeightFor: and #textWidthFor: in MORectangleShape like this:
textHeightFor: aFigure |lineCount| lineCount := (self textFor: aFigure) lineCount. ^ (self fontFor: aFigure) height * lineCount
textWidthFor: aFigure |longestLine| longestLine := ''. (self textFor: aFigure) linesDo: [:line | longestLine := line size > longestLine size ifTrue: [line] ifFalse: [longestLine]]. ^ (self fontFor: aFigure) widthOfString: longestLine
I can render the text box with the correct size. What I am not able to do is to render the text (which is multiline) on different lines.
cheers Marco
On Dec 28, 2009, at 3:20 PM, Alexandre Bergel wrote:
Arg... I have to say "we cannot for now". Node resizing is currently not supported.
Alexandre
On 28 Dec 2009, at 14:13, Marco D'Ambros wrote:
Thanks! That's exactly what I wanted :-) How can I make the figure resizable with the text arranging accordingly (i.e. going on multiple lines?)
cheers, Marco
On Dec 28, 2009, at 1:15 PM, Alexandre Bergel wrote:
Hi Marco,
Try the following:
view nodes: (1 to: 100). view gridLayout gapSize: 10.
view root interaction on: MOMouseDouble do: [:ann | | node txt | txt := UIManager default request: 'Enter a text'. view shape rectangle withText. node := view node: txt. node translateBy: ann position. view updateWindow ] -=-=-=-=-=-=-=-=-=-=-=-= Is it what you wanted?
Cheers, Alexandre
On 28 Dec 2009, at 04:03, Marco D'Ambros wrote:
Pharo
Cheers, Marco
On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote:
Hi Marco,
Which version of Mondrian are you referring to? VW or Pharo?
Cheers, Alexandre
On 28 Dec 2009, at 00:05, Marco D'Ambros wrote:
Hi,
I would like to have the following feature in Mondrian: when the user clicks on the main canvas, a text box (a rectangle figure) appears and the user can write in it and move it around. Is this doable with a script or should I work with the canvas class? Any hint on where should I look at to implement it is appreciated.
Thanks! Marco _______________________________________________ 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
give me a few minutes...
Alexandre
On 28 Dec 2009, at 15:54, Marco D'Ambros wrote:
ok, but how can I render a multiline label? I found that by changing #textHeightFor: and #textWidthFor: in MORectangleShape like this:
textHeightFor: aFigure |lineCount| lineCount := (self textFor: aFigure) lineCount. ^ (self fontFor: aFigure) height * lineCount
textWidthFor: aFigure |longestLine| longestLine := ''. (self textFor: aFigure) linesDo: [:line | longestLine := line size > longestLine size ifTrue: [line] ifFalse: [longestLine]]. ^ (self fontFor: aFigure) widthOfString: longestLine
I can render the text box with the correct size. What I am not able to do is to render the text (which is multiline) on different lines.
cheers Marco
On Dec 28, 2009, at 3:20 PM, Alexandre Bergel wrote:
Arg... I have to say "we cannot for now". Node resizing is currently not supported.
Alexandre
On 28 Dec 2009, at 14:13, Marco D'Ambros wrote:
Thanks! That's exactly what I wanted :-) How can I make the figure resizable with the text arranging accordingly (i.e. going on multiple lines?)
cheers, Marco
On Dec 28, 2009, at 1:15 PM, Alexandre Bergel wrote:
Hi Marco,
Try the following:
view nodes: (1 to: 100). view gridLayout gapSize: 10.
view root interaction on: MOMouseDouble do: [:ann | | node txt | txt := UIManager default request: 'Enter a text'. view shape rectangle withText. node := view node: txt. node translateBy: ann position. view updateWindow ] -=-=-=-=-=-=-=-=-=-=-=-= Is it what you wanted?
Cheers, Alexandre
On 28 Dec 2009, at 04:03, Marco D'Ambros wrote:
Pharo
Cheers, Marco
On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote:
Hi Marco,
Which version of Mondrian are you referring to? VW or Pharo?
Cheers, Alexandre
On 28 Dec 2009, at 00:05, Marco D'Ambros wrote:
> Hi, > > I would like to have the following feature in Mondrian: when the > user clicks on the main canvas, a text box (a rectangle figure) > appears and the user can write in it and move it around. > Is this doable with a script or should I work with the canvas > class? > Any hint on where should I look at to implement it is > appreciated. > > Thanks! > Marco > _______________________________________________ > 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: 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
update Mondrian and doit in an Easel:
view shape rectangle withText. view node: 'Hello', String cr, 'World '
I've tried to add centerAlign & rightAlign, but this will consume some hours I fear...
Cheers, Alexandre
On 28 Dec 2009, at 15:54, Marco D'Ambros wrote:
ok, but how can I render a multiline label? I found that by changing #textHeightFor: and #textWidthFor: in MORectangleShape like this:
textHeightFor: aFigure |lineCount| lineCount := (self textFor: aFigure) lineCount. ^ (self fontFor: aFigure) height * lineCount
textWidthFor: aFigure |longestLine| longestLine := ''. (self textFor: aFigure) linesDo: [:line | longestLine := line size > longestLine size ifTrue: [line] ifFalse: [longestLine]]. ^ (self fontFor: aFigure) widthOfString: longestLine
I can render the text box with the correct size. What I am not able to do is to render the text (which is multiline) on different lines.
cheers Marco
On Dec 28, 2009, at 3:20 PM, Alexandre Bergel wrote:
Arg... I have to say "we cannot for now". Node resizing is currently not supported.
Alexandre
On 28 Dec 2009, at 14:13, Marco D'Ambros wrote:
Thanks! That's exactly what I wanted :-) How can I make the figure resizable with the text arranging accordingly (i.e. going on multiple lines?)
cheers, Marco
On Dec 28, 2009, at 1:15 PM, Alexandre Bergel wrote:
Hi Marco,
Try the following:
view nodes: (1 to: 100). view gridLayout gapSize: 10.
view root interaction on: MOMouseDouble do: [:ann | | node txt | txt := UIManager default request: 'Enter a text'. view shape rectangle withText. node := view node: txt. node translateBy: ann position. view updateWindow ] -=-=-=-=-=-=-=-=-=-=-=-= Is it what you wanted?
Cheers, Alexandre
On 28 Dec 2009, at 04:03, Marco D'Ambros wrote:
Pharo
Cheers, Marco
On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote:
Hi Marco,
Which version of Mondrian are you referring to? VW or Pharo?
Cheers, Alexandre
On 28 Dec 2009, at 00:05, Marco D'Ambros wrote:
> Hi, > > I would like to have the following feature in Mondrian: when the > user clicks on the main canvas, a text box (a rectangle figure) > appears and the user can write in it and move it around. > Is this doable with a script or should I work with the canvas > class? > Any hint on where should I look at to implement it is > appreciated. > > Thanks! > Marco > _______________________________________________ > 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: 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
thanks a lot Alex! It works like a breeze
cheers Marco
On Dec 28, 2009, at 5:13 PM, Alexandre Bergel wrote:
update Mondrian and doit in an Easel:
view shape rectangle withText. view node: 'Hello', String cr, 'World '
I've tried to add centerAlign & rightAlign, but this will consume some hours I fear...
Cheers, Alexandre
On 28 Dec 2009, at 15:54, Marco D'Ambros wrote:
ok, but how can I render a multiline label? I found that by changing #textHeightFor: and #textWidthFor: in MORectangleShape like this:
textHeightFor: aFigure |lineCount| lineCount := (self textFor: aFigure) lineCount. ^ (self fontFor: aFigure) height * lineCount
textWidthFor: aFigure |longestLine| longestLine := ''. (self textFor: aFigure) linesDo: [:line | longestLine := line size > longestLine size ifTrue: [line] ifFalse: [longestLine]]. ^ (self fontFor: aFigure) widthOfString: longestLine
I can render the text box with the correct size. What I am not able to do is to render the text (which is multiline) on different lines.
cheers Marco
On Dec 28, 2009, at 3:20 PM, Alexandre Bergel wrote:
Arg... I have to say "we cannot for now". Node resizing is currently not supported.
Alexandre
On 28 Dec 2009, at 14:13, Marco D'Ambros wrote:
Thanks! That's exactly what I wanted :-) How can I make the figure resizable with the text arranging accordingly (i.e. going on multiple lines?)
cheers, Marco
On Dec 28, 2009, at 1:15 PM, Alexandre Bergel wrote:
Hi Marco,
Try the following:
view nodes: (1 to: 100). view gridLayout gapSize: 10.
view root interaction on: MOMouseDouble do: [:ann | | node txt | txt := UIManager default request: 'Enter a text'. view shape rectangle withText. node := view node: txt. node translateBy: ann position. view updateWindow ] -=-=-=-=-=-=-=-=-=-=-=-= Is it what you wanted?
Cheers, Alexandre
On 28 Dec 2009, at 04:03, Marco D'Ambros wrote:
Pharo
Cheers, Marco
On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote:
> Hi Marco, > > Which version of Mondrian are you referring to? VW or Pharo? > > Cheers, > Alexandre > > On 28 Dec 2009, at 00:05, Marco D'Ambros wrote: > >> Hi, >> >> I would like to have the following feature in Mondrian: when the >> user clicks on the main canvas, a text box (a rectangle figure) >> appears and the user can write in it and move it around. >> Is this doable with a script or should I work with the canvas >> class? >> Any hint on where should I look at to implement it is >> appreciated. >> >> Thanks! >> Marco >> _______________________________________________ >> 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Glad to hear you're using Pharo :-)
Alexandre
On 28 Dec 2009, at 17:32, Marco D'Ambros wrote:
thanks a lot Alex! It works like a breeze
cheers Marco
On Dec 28, 2009, at 5:13 PM, Alexandre Bergel wrote:
update Mondrian and doit in an Easel:
view shape rectangle withText. view node: 'Hello', String cr, 'World '
I've tried to add centerAlign & rightAlign, but this will consume some hours I fear...
Cheers, Alexandre
On 28 Dec 2009, at 15:54, Marco D'Ambros wrote:
ok, but how can I render a multiline label? I found that by changing #textHeightFor: and #textWidthFor: in MORectangleShape like this:
textHeightFor: aFigure |lineCount| lineCount := (self textFor: aFigure) lineCount. ^ (self fontFor: aFigure) height * lineCount
textWidthFor: aFigure |longestLine| longestLine := ''. (self textFor: aFigure) linesDo: [:line | longestLine := line size > longestLine size ifTrue: [line] ifFalse: [longestLine]]. ^ (self fontFor: aFigure) widthOfString: longestLine
I can render the text box with the correct size. What I am not able to do is to render the text (which is multiline) on different lines.
cheers Marco
On Dec 28, 2009, at 3:20 PM, Alexandre Bergel wrote:
Arg... I have to say "we cannot for now". Node resizing is currently not supported.
Alexandre
On 28 Dec 2009, at 14:13, Marco D'Ambros wrote:
Thanks! That's exactly what I wanted :-) How can I make the figure resizable with the text arranging accordingly (i.e. going on multiple lines?)
cheers, Marco
On Dec 28, 2009, at 1:15 PM, Alexandre Bergel wrote:
Hi Marco,
Try the following:
view nodes: (1 to: 100). view gridLayout gapSize: 10.
view root interaction on: MOMouseDouble do: [:ann | | node txt | txt := UIManager default request: 'Enter a text'. view shape rectangle withText. node := view node: txt. node translateBy: ann position. view updateWindow ] -=-=-=-=-=-=-=-=-=-=-=-= Is it what you wanted?
Cheers, Alexandre
On 28 Dec 2009, at 04:03, Marco D'Ambros wrote:
> Pharo > > Cheers, > Marco > > > On Dec 28, 2009, at 12:15 AM, Alexandre Bergel wrote: > >> Hi Marco, >> >> Which version of Mondrian are you referring to? VW or Pharo? >> >> Cheers, >> Alexandre >> >> On 28 Dec 2009, at 00:05, Marco D'Ambros wrote: >> >>> Hi, >>> >>> I would like to have the following feature in Mondrian: when >>> the >>> user clicks on the main canvas, a text box (a rectangle >>> figure) >>> appears and the user can write in it and move it around. >>> Is this doable with a script or should I work with the canvas >>> class? >>> Any hint on where should I look at to implement it is >>> appreciated. >>> >>> Thanks! >>> Marco >>> _______________________________________________ >>> 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: 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
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: 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
Hi marcos
create a new thread do not just reply to an old one. Else you mail an get lost.
Stef
On Dec 28, 2009, at 12:05 AM, Marco D'Ambros wrote:
Hi,
I would like to have the following feature in Mondrian: when the user clicks on the main canvas, a text box (a rectangle figure) appears and the user can write in it and move it around. Is this doable with a script or should I work with the canvas class? Any hint on where should I look at to implement it is appreciated.
Thanks! Marco _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev