public class AdvancedAnchorEditPart extends org.eclipse.gef.editparts.AbstractGraphicalEditPart implements IAnchorEditPart, org.eclipse.gef.NodeEditPart
AdvancedAnchor. Such an anchor can be positioned
either at a fixed point of the container (FixPointAnchor) or relative
to a container (BoxRelativeAnchor). For the graphical notation see
AdvancedAnchor and its subclasses FixPointAnchor adn
BoxRelativeAnchor. .REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER| Constructor and Description |
|---|
AdvancedAnchorEditPart(IConfigurationProviderInternal configurationProvider,
AdvancedAnchor anchor)
Instantiates a new anchor edit part.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
void |
eraseSourceFeedback(org.eclipse.gef.Request request) |
void |
eraseTargetFeedback(org.eclipse.gef.Request request) |
java.lang.Object |
getAdapter(java.lang.Class key) |
IConfigurationProviderInternal |
getConfigurationProvider()
Returns the IConfigurationProviderInternal.
|
org.eclipse.gef.DragTracker |
getDragTracker(org.eclipse.gef.Request request)
Allow the initiation of a connection creation by drag&drop from an anchor
(FixPoint and BoxReleative)
|
IFeatureProvider |
getFeatureProvider()
Gets the feature provider.
|
java.util.List<PictogramElement> |
getModelChildren()
Gets the model children.
|
java.util.List<Connection> |
getModelSourceConnections()
Gets the model source connections.
|
java.util.List<Connection> |
getModelTargetConnections()
Gets the model target connections.
|
PictogramElement |
getPictogramElement()
Gets the pictogram element.
|
IPictogramElementDelegate |
getPictogramElementDelegate()
Gets the pictogram element delegate.
|
org.eclipse.draw2d.ConnectionAnchor |
getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection) |
org.eclipse.draw2d.ConnectionAnchor |
getSourceConnectionAnchor(org.eclipse.gef.Request request) |
org.eclipse.draw2d.ConnectionAnchor |
getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection) |
org.eclipse.draw2d.ConnectionAnchor |
getTargetConnectionAnchor(org.eclipse.gef.Request request) |
void |
refreshDecorators() |
void |
showSourceFeedback(org.eclipse.gef.Request request) |
void |
showTargetFeedback(org.eclipse.gef.Request request) |
addNodeListener, addNotify, getContentPane, getFigure, getSourceConnections, getTargetConnections, isSelectable, refresh, removeNodeListener, removeNotify, setLayoutConstraintaddEditPartListener, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, performRequest, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, toString, understandsRequestequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraintaddEditPartListener, addNotify, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, understandsRequestpublic AdvancedAnchorEditPart(IConfigurationProviderInternal configurationProvider, AdvancedAnchor anchor)
configurationProvider - the configuration provideranchor - the anchorpublic void activate()
activate in interface org.eclipse.gef.EditPartactivate in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic void deactivate()
deactivate in interface org.eclipse.gef.EditPartdeactivate in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic IConfigurationProviderInternal getConfigurationProvider() throws java.lang.IllegalStateException
IConfigurationProviderHoldergetConfigurationProvider in interface IConfigurationProviderHolderjava.lang.IllegalStateException - If no IConfigurationProviderInternal is available (if it is null).public java.util.List<Connection> getModelSourceConnections()
IPictogramElementEditPartgetModelSourceConnections in interface IPictogramElementEditPartgetModelSourceConnections in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic java.util.List<Connection> getModelTargetConnections()
IPictogramElementEditPartgetModelTargetConnections in interface IPictogramElementEditPartgetModelTargetConnections in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic PictogramElement getPictogramElement()
IPictogramElementEditPartgetPictogramElement in interface IPictogramElementEditPartpublic org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
getSourceConnectionAnchor in interface org.eclipse.gef.NodeEditPartpublic org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.Request request)
getSourceConnectionAnchor in interface org.eclipse.gef.NodeEditPartpublic org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
getTargetConnectionAnchor in interface org.eclipse.gef.NodeEditPartpublic org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.Request request)
getTargetConnectionAnchor in interface org.eclipse.gef.NodeEditPartpublic java.util.List<PictogramElement> getModelChildren()
IPictogramElementEditPartgetModelChildren in interface IPictogramElementEditPartgetModelChildren in class org.eclipse.gef.editparts.AbstractEditPartpublic java.lang.Object getAdapter(java.lang.Class key)
getAdapter in interface IAdaptablegetAdapter in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic IFeatureProvider getFeatureProvider()
IFeatureProviderHoldergetFeatureProvider in interface IFeatureProviderHolderpublic IPictogramElementDelegate getPictogramElementDelegate()
IPictogramElementEditPartgetPictogramElementDelegate in interface IPictogramElementEditPartpublic org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request request)
getDragTracker in interface org.eclipse.gef.EditPartgetDragTracker in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic void eraseSourceFeedback(org.eclipse.gef.Request request)
eraseSourceFeedback in interface org.eclipse.gef.EditParteraseSourceFeedback in class org.eclipse.gef.editparts.AbstractEditPartpublic void eraseTargetFeedback(org.eclipse.gef.Request request)
eraseTargetFeedback in interface org.eclipse.gef.EditParteraseTargetFeedback in class org.eclipse.gef.editparts.AbstractEditPartpublic void showSourceFeedback(org.eclipse.gef.Request request)
showSourceFeedback in interface org.eclipse.gef.EditPartshowSourceFeedback in class org.eclipse.gef.editparts.AbstractEditPartpublic void showTargetFeedback(org.eclipse.gef.Request request)
showTargetFeedback in interface org.eclipse.gef.EditPartshowTargetFeedback in class org.eclipse.gef.editparts.AbstractEditPartpublic void refreshDecorators()
refreshDecorators in interface IAnchorContainerEditPart