Looks pretty cool ! Can we use on any RTShape or only RTBox ?
On Sun, Apr 20, 2014 at 11:40 PM, Alexandre Bergel alexandre.bergel@me.comwrote:
Roassal Tip #2: Labeling bar with GraphET. You can use @RTLabelled for each bar elements. Consider the following example:
-=-=-=-=-=-=-=-=-= | diagram | diagram := GET2DiagramBuilder new. diagram horizontalBarDiagram models: #(10 12 13 200 150 -13 149 -151); regularAxis. diagram build.
"Pick the horizontal bars and add a label" diagram view elements do: [ :e | (e shape class == RTBox) ifTrue: [ e @ RTLabelled new right ] ]. diagram view open -=-=-=-=-=-=-=-=-= [image: Photo: Roassal Tip #2: Labeling bar with GraphET. You can use @RTLabelled for each bar elements. Consider the following example: | diagram | diagram := GET2DiagramBuilder new. diagram horizontalBarDiagram models: #(10 12 13 200 150 -13 149 -151); regularAxis. diagram build. "Pick the horizontal bars and add a label" diagram view elements do: [ :e | (e shape class == RTBox) ifTrue: [ e @ RTLabelled new right ] ]. diagram view open]
https://www.facebook.com/ObjectProfile/photos/a.341189379300999.82969.340543...
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