[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] How to resize inversely?

Hi,

This is the problem I met. I want to create a line figure by GEF.
The user could redraw the line in any direction. Even after the
constraint area shrinks to zero, the area would then become bigger
while redrawing in the same direction.

My problem is that the ResizableEditPolicy restricts me to draw
after the constraint area shrinks to zero.

For example:
If I move the cursor from point(10,10) to point(0,0)  it is ok to
redraw from an existing line. But the policy restricts me redrawing
the line from (0,0) to (-10, -10) since the constraint area becomes
zero.

What can I do to make it work? Thanks


Brandon