Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Rotated text can not be saved?(Rotated text)
icon5.gif  Rotated text can not be saved? [message #853758] Mon, 23 April 2012 09:58 Go to next message
xiang yuanbo is currently offline xiang yuanboFriend
Messages: 8
Registered: March 2012
Junior Member
It seems that after a rotated text can not persistent.
I rotated a text by set the angle to 90 and save this diagram and later I open it, the text location was not correct like the attachment, am I missing something?
Re: Rotated text can not be saved? [message #854748 is a reply to message #853758] Tue, 24 April 2012 07:54 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1640
Registered: July 2009
Location: Walldorf, Germany
Senior Member
That sounds strange, i haven't observed anything like this and can't imagine
why this happens. The angle attribute is part of the Pictograms model as
anything else and should get persisted as the rest. There must be something
else in your shape creation; from the screenshot it seems to me as if there
is rather a positioning issue than the angle not being correct...

Michael
Re: Rotated text can not be saved? [message #858169 is a reply to message #854748] Fri, 27 April 2012 02:59 Go to previous messageGo to next message
xiang yuanbo is currently offline xiang yuanboFriend
Messages: 8
Registered: March 2012
Junior Member
Michael Wenz wrote on Tue, 24 April 2012 03:54
That sounds strange, i haven't observed anything like this and can't imagine
why this happens. The angle attribute is part of the Pictograms model as
anything else and should get persisted as the rest. There must be something
else in your shape creation; from the screenshot it seems to me as if there
is rather a positioning issue than the angle not being correct...

Michael

The angle is correct yes but the location of the text is not correct, the strange thing is I can change the location of the text when rotating it, and the I saved it, close it, reopen this diagram, the text flies out.

The Shape GraphicAlgrithem looks like:
<Shape>
<RectAlgri x=y=width=height=... >
<Text angle=[90|0] x=y=width=height=.... />
</RectAlgri>
</Shape>
Was this structure correct?
Re: Rotated text can not be saved? [message #865057 is a reply to message #858169] Mon, 30 April 2012 07:57 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1640
Registered: July 2009
Location: Walldorf, Germany
Senior Member
That sounds really strange. The positioning of rotated texts is not really
as intuitive as it should be (there' an open Bugzilla to improve that), but
once it's at the right position, saving and reopening should not have these
effects.

Do you have an example to reproduce that you can share?

Michael
Re: Rotated text can not be saved? [message #869126 is a reply to message #865057] Thu, 03 May 2012 01:21 Go to previous message
xiang yuanbo is currently offline xiang yuanboFriend
Messages: 8
Registered: March 2012
Junior Member
Many thanks to your help, below are the shape code from my diagram and steps to reproduce it:

<!--Step1: Before rotate text, the location of text is correct /-->
<children visible="true" active="true">
<graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" transparency="0.0" width="59" height="22" x="262" y="42" style="/0/@styles.4">
<graphicsAlgorithmChildren xsi:type="al:Text" lineWidth="1" transparency="0.0" width="59" height="22" style="/0/@styles.4" horizontalAlignment="ALIGNMENT_CENTER" value="SK_NW"/>
</graphicsAlgorithm>
<link businessObjects="/6"/>
<anchors xsi:type="pi:ChopboxAnchor"/>
</children>

<!--Step2: After rotate text, the location of text is not correct /-->
<children visible="true" active="true">
<graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" transparency="0.0" width="22" height="59" x="262" y="42" style="/0/@styles.4">
<graphicsAlgorithmChildren xsi:type="al:Text" lineWidth="1" transparency="0.0" width="22" height="59" style="/0/@styles.4" horizontalAlignment="ALIGNMENT_CENTER" angle="90" value="SK_NW"/>
</graphicsAlgorithm>
<link businessObjects="/6"/>
<anchors xsi:type="pi:ChopboxAnchor"/>
</children>

<!--Step3: Since the location of text is not correct, we change the location of the text, switch the width and height of it(the adjusted location I currently can not supply) /-->
<children visible="true" active="true">
<graphicsAlgorithm xsi:type="al:Rectangle" lineWidth="1" transparency="0.0" width="22" height="59" x="262" y="42" style="/0/@styles.4">
<graphicsAlgorithmChildren xsi:type="al:Text" lineWidth="1" transparency="0.0" width="59" height="22" style="/0/@styles.4" horizontalAlignment="ALIGNMENT_CENTER" angle="90" value="SK_NW"/>
</graphicsAlgorithm>
<link businessObjects="/6"/>
<anchors xsi:type="pi:ChopboxAnchor"/>
</children>

<!--Step4: Save and re-open it /-->
Previous Topic:Using getDiagramFromFiles Error
Next Topic:Style attributes were not considered
Goto Forum:
  


Current Time: Thu Dec 18 05:54:19 GMT 2014

Powered by FUDForum. Page generated in 0.01729 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software