Community
Participate
Working Groups
As the subsequent calls to the getBounds will return different values. This is an issue in the cases when a handle is hanged on the line ends.
There are several cases when the bounds may change, including when the points list does not change, but the children of the polyline are moved. Handles should be adding "points" property listeners.
(In reply to Randy Hudson from comment #1) > There are several cases when the bounds may change, including when the > points > list does not change, but the children of the polyline are moved. Handles > should be adding "points" property listeners. It seems Polyline#getBounds() does not include the children in its calculation, but is only based on the point list. As such, I do not quite understand your comment, Randy. Following the FigureListener javadoc, it would be reasonable to fire figure moved changes, as a figure move event is defined to be related to a change of the figure's bounds. However, we would need to include changes to the line width, as these are included in the bounds calculations as well.