org.netbeans.api.visual 2.21.1

org.netbeans.api.visual.action
Interface MoveControlPointProvider


public interface MoveControlPointProvider

This interface controls a move control point action.


Method Summary
 List<Point> locationSuggested(ConnectionWidget connectionWidget, int index, Point suggestedLocation)
          Called to resolve control points of a connection widget for specified suggested change of a location of a control point specified by its index.
 

Method Detail

locationSuggested

List<Point> locationSuggested(ConnectionWidget connectionWidget,
                              int index,
                              Point suggestedLocation)
Called to resolve control points of a connection widget for specified suggested change of a location of a control point specified by its index. Usually used for supplying the move strategy of control points.

Parameters:
connectionWidget - the connection widget
index - the index of the control point which new location was suggested by an user
suggestedLocation - the suggested location (by an user) of a control point specified by its index
Returns:
the list of new control points of the connection widget

org.netbeans.api.visual 2.21.1

Built on February 22 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.