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

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

org.netbeans.api.visual 2.2

org.netbeans.api.visual.action
Interface ConnectDecorator


public interface ConnectDecorator

This interface decorates a connect action.


Method Summary
 ConnectionWidget createConnectionWidget(Scene scene)
          Creates a connection widget that is temporarily used for visualization of a connection while user is dragging (creating) it.
 Anchor createFloatAnchor(Point location)
          Creates a floating anchor which will be used when the connection target is not attached to any widget.
 Anchor createSourceAnchor(Widget sourceWidget)
          Creates a source anchor for a specified source widget.
 Anchor createTargetAnchor(Widget targetWidget)
          Creates a target anchor for a specified target widget.
 

Method Detail

createConnectionWidget

ConnectionWidget createConnectionWidget(Scene scene)
Creates a connection widget that is temporarily used for visualization of a connection while user is dragging (creating) it.

Parameters:
scene - the scene where the connection widget will be used
Returns:
the connection widget

createSourceAnchor

Anchor createSourceAnchor(Widget sourceWidget)
Creates a source anchor for a specified source widget. The anchor will be used at the temporary connection widget created by the createConnectionWidget method.

Parameters:
sourceWidget - the source widget
Returns:
the source anchor

createTargetAnchor

Anchor createTargetAnchor(Widget targetWidget)
Creates a target anchor for a specified target widget. The anchor will be used at the temporary connection widget created by the createConnectionWidget method.

Parameters:
targetWidget - the source widget
Returns:
the target anchor

createFloatAnchor

Anchor createFloatAnchor(Point location)
Creates a floating anchor which will be used when the connection target is not attached to any widget. The anchor will be used at the temporary connection widget created by the createConnectionWidget method.

Parameters:
location - the scene location of the mouse cursor
Returns:
the floating anchor; usually FixedAnchor

org.netbeans.api.visual 2.2

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