Hi,
I'm trying to create a DrawLinePath connection between two Labels and the permission to move labels and update connections to create something like a workflow.
1:
When I move a Label I want to update the endPoint and startPoint of the DrawLinePath instead of just destroy() and create a new one (because I think it looses a bit performance).
In SmartGWT-JavaDoc it says that "If this method is called after the component has been drawn/initialized: Update the endPoint" but when I do "drawLinePath.setEndPoint()" after draw() (when the Label is moved) it doesn't work and the drawLinePath disappear.
2:
When I put two connected labels, one above the other, the drawLinePath don't update the endLine and the startLine, they are always draw horizontally. It only works with horizontal drawLinePath.
3:
So I tried to use DrawLine instead because it only has 1 line and can make diagonals but another little problem appear: I can't create a line with an Arrow in the end, or, I can do "drawLine.setEndArrow(ArrowStyle.BLOCK);" but it won't be draw with an arrow. So I tried to create my custom line with an arrow in the end but it turns that the performance when I move labels decreases very much.
Many thanks,
António Santos
I'm trying to create a DrawLinePath connection between two Labels and the permission to move labels and update connections to create something like a workflow.
1:
When I move a Label I want to update the endPoint and startPoint of the DrawLinePath instead of just destroy() and create a new one (because I think it looses a bit performance).
In SmartGWT-JavaDoc it says that "If this method is called after the component has been drawn/initialized: Update the endPoint" but when I do "drawLinePath.setEndPoint()" after draw() (when the Label is moved) it doesn't work and the drawLinePath disappear.
2:
When I put two connected labels, one above the other, the drawLinePath don't update the endLine and the startLine, they are always draw horizontally. It only works with horizontal drawLinePath.
3:
So I tried to use DrawLine instead because it only has 1 line and can make diagonals but another little problem appear: I can't create a line with an Arrow in the end, or, I can do "drawLine.setEndArrow(ArrowStyle.BLOCK);" but it won't be draw with an arrow. So I tried to create my custom line with an arrow in the end but it turns that the performance when I move labels decreases very much.
Many thanks,
António Santos
Comment