GWT Graphics - 重置文本
我正在开发一个正在使用的项目 GWT-Graphics。我有包含椭圆和文本的绘图区域。当我双击它们时,会出现一个弹出菜单,并提供输入文本的选项。现在,当我保存此文本时,我希望它出现在该绘图区域上之前文本的位置。
我正在尝试这样做,但没有运气。它保留旧文本,并在其之上包含当前文本。有没有办法只显示新文本。
任何输入都会有很大帮助。 谢谢。
I am working on a project for which i am using GWT-Graphics. I have drawing Area containing ellipse and text. When i double click on them a pop-up menu appears and gives an option to enter text. Now when i save this text i want it to appear on this drawing area in the place of the previous text.
I am trying to do this but with no luck. It keeps the old text and on top of that it includes the current text. Is there a way to have only the new text to appear.
Any input will be of great help.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对我来说,这听起来像是您正在添加一个新的 Text 元素,而不是使用现有的元素。我写了一个快速测试,它似乎按您想要的方式工作:
For me this sounds like that you are adding a new Text element instead of using the existing one. I wrote a quick test and it seems to work like you want: