GEF v2.0

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.


Fields inherited from interface org.eclipse.gef.EditPart
SELECTED, SELECTED_NONE, SELECTED_PRIMARY
 
Method Summary
 ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart connection)
          Returns the ConnectionAnchor that the passed ConnectionEditPart should use with its Connection figure.
 ConnectionAnchor getSourceConnectionAnchor(Request request)
          Returns the ConnectionAnchor that is closest to the point .
 ConnectionAnchor getTargetConnectionAnchor(ConnectionEditPart connection)
          Returns the ConnectionAnchor that the passed ConnectionEditPart should use with its Connection figure.
 ConnectionAnchor getTargetConnectionAnchor(Request request)
          Returns the ConnectionAnchor that is closest to the point .
 
Methods inherited from interface org.eclipse.gef.GraphicalEditPart
getContentPane, getFigure, getSourceConnections, getTargetConnections, setLayoutConstraint
 
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
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

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.

GEF v2.0