Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 839 by google....@ben.coman.com.au: ROCenteredLabel http://code.google.com/p/moose-technology/issues/detail?id=839
I required text to be centered within a circle, so I created ROCenteredLabel. I think it would be generally useful. Would you consider adding it to Roassal?
Attachments: ROCenteredLabel-drawOnfor.st 1.0 KB
Comment #1 on issue 839 by google....@ben.coman.com.au: ROCenteredLabel http://code.google.com/p/moose-technology/issues/detail?id=839
I just noticed the fileout didn't include the class definition. Probably obvious but for completeness...
ROLabel subclass: #ROCenteredLabel instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: 'Roassal-Core'
Comment #2 on issue 839 by google....@ben.coman.com.au: ROCenteredLabel http://code.google.com/p/moose-technology/issues/detail?id=839
whoops - remove redundant 'oldOffset' tempVar
Updates: Status: Started Labels: -Priority-Medium Priority-High Component-Roassal
Comment #3 on issue 839 by alexandr...@gmail.com: ROCenteredLabel http://code.google.com/p/moose-technology/issues/detail?id=839
Thanks Ben! This is an excellent contribution!
I've improved the label implementation. ROLabel is now a subclass of ROAbstractLabel. ROCenteredLabel is a subclass of ROAbstractLabel instead of ROLabel. I also refactored the tests. The Mondrian builder offers #withCenteredText and #withCenteredText: An example in Mondrian/Basic has been added.
-=-=-=-=-=-=-=-=-=-=-=-= view shape rectangle; withCenteredText; width: 180. view node: 'centered text'.
view shape rectangle; withText; width: 180. view node: 'left text'. -=-=-=-=-=-=-=-=-=-=-=-=
Excellent piece of work!
Updates: Status: Fixed
Comment #4 on issue 839 by alexandr...@gmail.com: ROCenteredLabel http://code.google.com/p/moose-technology/issues/detail?id=839
In Roassal 1.125
Updates: Labels: Milestone-4.7
Comment #5 on issue 839 by tu...@tudorgirba.com: ROCenteredLabel http://code.google.com/p/moose-technology/issues/detail?id=839
(No comment was entered for this change.)