站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

MoveControlPointProvider (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

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.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.