Hi there
Is there a way to add some padding around the text inside a shape (for example, inside a MORectangleShape)?
thanks in advance
-- Simon
I am not sure to understand. It does not work using node:forIt: ?
Alexandre
On 6 Jan 2010, at 11:16, Simon Denier wrote:
Hi there
Is there a way to add some padding around the text inside a shape (for example, inside a MORectangleShape)?
thanks in advance
-- Simon
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
On 6 janv. 2010, at 16:08, Alexandre Bergel wrote:
I am not sure to understand. It does not work using node:forIt: ?
I dont know, but if I can avoid the extra complexity of embedding a node into another, that's good. It could be in the shape, then the shape knows how much extra space it adds around its content.
Alexandre
On 6 Jan 2010, at 11:16, Simon Denier wrote:
Hi there
Is there a way to add some padding around the text inside a shape (for example, inside a MORectangleShape)?
thanks in advance
-- Simon
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
-- Simon
+1 on this.
On 06 Jan 2010, at 12:42, Simon Denier wrote:
On 6 janv. 2010, at 16:08, Alexandre Bergel wrote:
I am not sure to understand. It does not work using node:forIt: ?
I dont know, but if I can avoid the extra complexity of embedding a node into another, that's good. It could be in the shape, then the shape knows how much extra space it adds around its content.
Alexandre
On 6 Jan 2010, at 11:16, Simon Denier wrote:
Hi there
Is there a way to add some padding around the text inside a shape (for example, inside a MORectangleShape)?
thanks in advance
-- Simon
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
-- Simon
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Johan Fabry jfabry@dcc.uchile.cl - http://dcc.uchile.cl/~jfabry PLEIAD Lab - Computer Science Department (DCC) - University of Chile
You can easy add space character before and after. You can also set a height: and a width: bigger than the text.
Alexandre
On 6 Jan 2010, at 12:42, Simon Denier wrote:
On 6 janv. 2010, at 16:08, Alexandre Bergel wrote:
I am not sure to understand. It does not work using node:forIt: ?
I dont know, but if I can avoid the extra complexity of embedding a node into another, that's good. It could be in the shape, then the shape knows how much extra space it adds around its content.
Alexandre
On 6 Jan 2010, at 11:16, Simon Denier wrote:
Hi there
Is there a way to add some padding around the text inside a shape (for example, inside a MORectangleShape)?
thanks in advance
-- Simon
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
-- Simon
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
On 6 janv. 2010, at 16:58, Alexandre Bergel wrote:
You can easy add space character before and after. You can also set a height: and a width: bigger than the text.
Yep
height: [:model | model name..... ]
but how I can compute the text width and height? There are textWidthFor: and textHeightFor: but those are internal methods.
Alexandre
On 6 Jan 2010, at 12:42, Simon Denier wrote:
On 6 janv. 2010, at 16:08, Alexandre Bergel wrote:
I am not sure to understand. It does not work using node:forIt: ?
I dont know, but if I can avoid the extra complexity of embedding a node into another, that's good. It could be in the shape, then the shape knows how much extra space it adds around its content.
Alexandre
On 6 Jan 2010, at 11:16, Simon Denier wrote:
Hi there
Is there a way to add some padding around the text inside a shape (for example, inside a MORectangleShape)?
thanks in advance
-- Simon
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
-- Simon
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
-- Simon
Just to make sure that I fully understand, you want to have the effect of the second node, without nesting it?
view shape rectangle withText. view node: 'hello world!'.
view node: #foo forIt: [ view shape label. view interaction forwarder. view node: 'hello world!'. ]
Something like: view shape label padding: 5. view node: 'hello world!'.
?
Alexandre
On 6 Jan 2010, at 13:32, Simon Denier wrote:
On 6 janv. 2010, at 16:58, Alexandre Bergel wrote:
You can easy add space character before and after. You can also set a height: and a width: bigger than the text.
Yep
height: [:model | model name..... ]
but how I can compute the text width and height? There are textWidthFor: and textHeightFor: but those are internal methods.
Alexandre
On 6 Jan 2010, at 12:42, Simon Denier wrote:
On 6 janv. 2010, at 16:08, Alexandre Bergel wrote:
I am not sure to understand. It does not work using node:forIt: ?
I dont know, but if I can avoid the extra complexity of embedding a node into another, that's good. It could be in the shape, then the shape knows how much extra space it adds around its content.
Alexandre
On 6 Jan 2010, at 11:16, Simon Denier wrote:
Hi there
Is there a way to add some padding around the text inside a shape (for example, inside a MORectangleShape)?
thanks in advance
-- Simon
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
-- Simon
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
-- Simon
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
On 6 janv. 2010, at 17:56, Alexandre Bergel wrote:
Just to make sure that I fully understand, you want to have the effect of the second node, without nesting it?
view shape rectangle withText. view node: 'hello world!'.
view node: #foo forIt: [ view shape label. view interaction forwarder. view node: 'hello world!'. ]
Yes, exactly, this gives the visual effect I want.
Something like: view shape label padding: 5. view node: 'hello world!'.
yes, this the code I want to write (at least in simple case like a Shape which can have a label)
also
view shape rectangle padding: 5; text: 'hello world!'. view node: #hello
?
Alexandre
On 6 Jan 2010, at 13:32, Simon Denier wrote:
On 6 janv. 2010, at 16:58, Alexandre Bergel wrote:
You can easy add space character before and after. You can also set a height: and a width: bigger than the text.
Yep
height: [:model | model name..... ]
but how I can compute the text width and height? There are textWidthFor: and textHeightFor: but those are internal methods.
Alexandre
On 6 Jan 2010, at 12:42, Simon Denier wrote:
On 6 janv. 2010, at 16:08, Alexandre Bergel wrote:
I am not sure to understand. It does not work using node:forIt: ?
I dont know, but if I can avoid the extra complexity of embedding a node into another, that's good. It could be in the shape, then the shape knows how much extra space it adds around its content.
Alexandre
On 6 Jan 2010, at 11:16, Simon Denier wrote:
Hi there
Is there a way to add some padding around the text inside a shape (for example, inside a MORectangleShape)?
thanks in advance
-- Simon
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
-- Simon
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
-- Simon
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
-- Simon
Ok, give me a few hours.
Alexandre
On 6 Jan 2010, at 18:07, Simon Denier wrote:
On 6 janv. 2010, at 17:56, Alexandre Bergel wrote:
Just to make sure that I fully understand, you want to have the effect of the second node, without nesting it?
view shape rectangle withText. view node: 'hello world!'.
view node: #foo forIt: [ view shape label. view interaction forwarder. view node: 'hello world!'. ]
Yes, exactly, this gives the visual effect I want.
Something like: view shape label padding: 5. view node: 'hello world!'.
yes, this the code I want to write (at least in simple case like a Shape which can have a label)
also
view shape rectangle padding: 5; text: 'hello world!'. view node: #hello
?
Alexandre
On 6 Jan 2010, at 13:32, Simon Denier wrote:
On 6 janv. 2010, at 16:58, Alexandre Bergel wrote:
You can easy add space character before and after. You can also set a height: and a width: bigger than the text.
Yep
height: [:model | model name..... ]
but how I can compute the text width and height? There are textWidthFor: and textHeightFor: but those are internal methods.
Alexandre
On 6 Jan 2010, at 12:42, Simon Denier wrote:
On 6 janv. 2010, at 16:08, Alexandre Bergel wrote:
I am not sure to understand. It does not work using node:forIt: ?
I dont know, but if I can avoid the extra complexity of embedding a node into another, that's good. It could be in the shape, then the shape knows how much extra space it adds around its content.
Alexandre
On 6 Jan 2010, at 11:16, Simon Denier wrote:
> > Hi there > > Is there a way to add some padding around the text inside a > shape (for example, inside a MORectangleShape)? > > thanks in advance > > -- > Simon > > > > > _______________________________________________ > 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
-- Simon
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
-- Simon
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
-- Simon
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
This is now in!
New version of Mondrian: Mondrian-Alexandre_Bergel.334
Comment: Added text padding: - MORectangleShape>>textPadding: - MORectangleShape>>textHorizontalPadding: - MORectangleShape>>textVerticalPadding: - MOViewRendererTest>>testLabel6Padding, testLabel7HorizontalPadding, testLabel8VerticalPadding
Example: view shape rectangle withText; textPadding: 5. view node: 'hello world!'.
Cheers, Alexandre
On 6 Jan 2010, at 18:07, Simon Denier wrote:
On 6 janv. 2010, at 17:56, Alexandre Bergel wrote:
Just to make sure that I fully understand, you want to have the effect of the second node, without nesting it?
view shape rectangle withText. view node: 'hello world!'.
view node: #foo forIt: [ view shape label. view interaction forwarder. view node: 'hello world!'. ]
Yes, exactly, this gives the visual effect I want.
Something like: view shape label padding: 5. view node: 'hello world!'.
yes, this the code I want to write (at least in simple case like a Shape which can have a label)
also
view shape rectangle padding: 5; text: 'hello world!'. view node: #hello
?
Alexandre
On 6 Jan 2010, at 13:32, Simon Denier wrote:
On 6 janv. 2010, at 16:58, Alexandre Bergel wrote:
You can easy add space character before and after. You can also set a height: and a width: bigger than the text.
Yep
height: [:model | model name..... ]
but how I can compute the text width and height? There are textWidthFor: and textHeightFor: but those are internal methods.
Alexandre
On 6 Jan 2010, at 12:42, Simon Denier wrote:
On 6 janv. 2010, at 16:08, Alexandre Bergel wrote:
I am not sure to understand. It does not work using node:forIt: ?
I dont know, but if I can avoid the extra complexity of embedding a node into another, that's good. It could be in the shape, then the shape knows how much extra space it adds around its content.
Alexandre
On 6 Jan 2010, at 11:16, Simon Denier wrote:
> > Hi there > > Is there a way to add some padding around the text inside a > shape (for example, inside a MORectangleShape)? > > thanks in advance > > -- > Simon > > > > > _______________________________________________ > 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
-- Simon
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
-- Simon
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
-- Simon
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
On 7 janv. 2010, at 21:52, Alexandre Bergel wrote:
This is now in!
New version of Mondrian: Mondrian-Alexandre_Bergel.334
Comment: Added text padding:
- MORectangleShape>>textPadding:
- MORectangleShape>>textHorizontalPadding:
- MORectangleShape>>textVerticalPadding:
- MOViewRendererTest>>testLabel6Padding, testLabel7HorizontalPadding, testLabel8VerticalPadding
Example: view shape rectangle withText; textPadding: 5. view node: 'hello world!'.
Thanks Alex, that's really neat.
Cheers, Alexandre
On 6 Jan 2010, at 18:07, Simon Denier wrote:
On 6 janv. 2010, at 17:56, Alexandre Bergel wrote:
Just to make sure that I fully understand, you want to have the effect of the second node, without nesting it?
view shape rectangle withText. view node: 'hello world!'.
view node: #foo forIt: [ view shape label. view interaction forwarder. view node: 'hello world!'. ]
Yes, exactly, this gives the visual effect I want.
Something like: view shape label padding: 5. view node: 'hello world!'.
yes, this the code I want to write (at least in simple case like a Shape which can have a label)
also
view shape rectangle padding: 5; text: 'hello world!'. view node: #hello
?
Alexandre
On 6 Jan 2010, at 13:32, Simon Denier wrote:
On 6 janv. 2010, at 16:58, Alexandre Bergel wrote:
You can easy add space character before and after. You can also set a height: and a width: bigger than the text.
Yep
height: [:model | model name..... ]
but how I can compute the text width and height? There are textWidthFor: and textHeightFor: but those are internal methods.
Alexandre
On 6 Jan 2010, at 12:42, Simon Denier wrote:
On 6 janv. 2010, at 16:08, Alexandre Bergel wrote:
> I am not sure to understand. > It does not work using node:forIt: ?
I dont know, but if I can avoid the extra complexity of embedding a node into another, that's good. It could be in the shape, then the shape knows how much extra space it adds around its content.
> > Alexandre > > > On 6 Jan 2010, at 11:16, Simon Denier wrote: > >> >> Hi there >> >> Is there a way to add some padding around the text inside a shape (for example, inside a MORectangleShape)? >> >> thanks in advance >> >> -- >> Simon >> >> >> >> >> _______________________________________________ >> 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
-- Simon
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
-- Simon
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
-- Simon
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
-- Simon
Yes!
Good night now :)
On Jan 7, 2010, at 10:22 PM, Simon Denier wrote:
On 7 janv. 2010, at 21:52, Alexandre Bergel wrote:
This is now in!
New version of Mondrian: Mondrian-Alexandre_Bergel.334
Comment: Added text padding:
- MORectangleShape>>textPadding:
- MORectangleShape>>textHorizontalPadding:
- MORectangleShape>>textVerticalPadding:
- MOViewRendererTest>>testLabel6Padding, testLabel7HorizontalPadding, testLabel8VerticalPadding
Example: view shape rectangle withText; textPadding: 5. view node: 'hello world!'.
Thanks Alex, that's really neat.
Cheers, Alexandre
On 6 Jan 2010, at 18:07, Simon Denier wrote:
On 6 janv. 2010, at 17:56, Alexandre Bergel wrote:
Just to make sure that I fully understand, you want to have the effect of the second node, without nesting it?
view shape rectangle withText. view node: 'hello world!'.
view node: #foo forIt: [ view shape label. view interaction forwarder. view node: 'hello world!'. ]
Yes, exactly, this gives the visual effect I want.
Something like: view shape label padding: 5. view node: 'hello world!'.
yes, this the code I want to write (at least in simple case like a Shape which can have a label)
also
view shape rectangle padding: 5; text: 'hello world!'. view node: #hello
?
Alexandre
On 6 Jan 2010, at 13:32, Simon Denier wrote:
On 6 janv. 2010, at 16:58, Alexandre Bergel wrote:
You can easy add space character before and after. You can also set a height: and a width: bigger than the text.
Yep
height: [:model | model name..... ]
but how I can compute the text width and height? There are textWidthFor: and textHeightFor: but those are internal methods.
Alexandre
On 6 Jan 2010, at 12:42, Simon Denier wrote:
> > On 6 janv. 2010, at 16:08, Alexandre Bergel wrote: > >> I am not sure to understand. >> It does not work using node:forIt: ? > > > I dont know, but if I can avoid the extra complexity of embedding a node into another, that's good. It could be in the shape, then the shape knows how much extra space it adds around its content. > > > >> >> Alexandre >> >> >> On 6 Jan 2010, at 11:16, Simon Denier wrote: >> >>> >>> Hi there >>> >>> Is there a way to add some padding around the text inside a shape (for example, inside a MORectangleShape)? >>> >>> thanks in advance >>> >>> -- >>> Simon >>> >>> >>> >>> >>> _______________________________________________ >>> 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 > > -- > Simon > > > > > _______________________________________________ > 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
-- Simon
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
-- Simon
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
-- Simon
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev