org.eclipse.gef
Interface NodeEditPart
- All Superinterfaces:
- EditPart, GraphicalEditPart, IAdaptable
- public interface NodeEditPart
- extends GraphicalEditPart
A specialized GraphicalEditPart that supports both target and source
ConnectionEditParts. By support, we mean that ConnectionEditParts can
obtain a ConnectionAnchor with which to anchor its figure,
and connection-related EditPolicies can locate a ConnectionAnchor
based on the mouse's x and y location. Some applications
may have more than one type of connection, but choose to locate them all
in the same way. In this case, the implementor may implement all methods
to return the same ConnectionAnchor instance.
| Methods inherited from interface org.eclipse.gef.EditPart |
activate, addEditPartListener, deactivate, dispose, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getDragTracker, getEditPolicy, getKeyHandler, getModel, getParent, getRoot, getSelected, getTargetEditPart, hasFocus, installEditPolicy, performRequest, refresh, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
getSourceConnectionAnchor
public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart connection)
- Returns the ConnectionAnchor that the passed ConnectionEditPart should
use with its Connection figure.
getTargetConnectionAnchor
public ConnectionAnchor getTargetConnectionAnchor(ConnectionEditPart connection)
- Returns the ConnectionAnchor that the passed ConnectionEditPart should
use with its Connection figure.
getSourceConnectionAnchor
public ConnectionAnchor getSourceConnectionAnchor(Request request)
- Returns the ConnectionAnchor that is closest to the point .
This is used during mouse interactions.
getTargetConnectionAnchor
public ConnectionAnchor getTargetConnectionAnchor(Request request)
- Returns the ConnectionAnchor that is closest to the point .
This is used during mouse interactions.