Bug 75647 - Polyline must call fireMoved when the point list changes
Summary: Polyline must call fireMoved when the point list changes
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-05 11:06 EDT by Eugene Ostroukhov CLA
Modified: 2014-07-16 10:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Ostroukhov CLA 2004-10-05 11:06:17 EDT
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.
Comment 1 Randy Hudson CLA 2004-10-05 11:27:11 EDT
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.
Comment 2 Alexander Nyßen CLA 2014-07-16 10:25:57 EDT
(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.