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, setLayoutConstraint
addEditPartListener, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, performRequest, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, toString, understandsRequest
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint
addEditPartListener, addNotify, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, understandsRequest
public AdvancedAnchorEditPart(IConfigurationProviderInternal configurationProvider, AdvancedAnchor anchor)
configurationProvider
- the configuration provideranchor
- the anchorpublic void activate()
activate
in interface org.eclipse.gef.EditPart
activate
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public void deactivate()
deactivate
in interface org.eclipse.gef.EditPart
deactivate
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public IConfigurationProviderInternal getConfigurationProvider() throws java.lang.IllegalStateException
IConfigurationProviderHolder
getConfigurationProvider
in interface IConfigurationProviderHolder
java.lang.IllegalStateException
- If no IConfigurationProviderInternal is available (if it is null).public java.util.List<Connection> getModelSourceConnections()
IPictogramElementEditPart
getModelSourceConnections
in interface IPictogramElementEditPart
getModelSourceConnections
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public java.util.List<Connection> getModelTargetConnections()
IPictogramElementEditPart
getModelTargetConnections
in interface IPictogramElementEditPart
getModelTargetConnections
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public PictogramElement getPictogramElement()
IPictogramElementEditPart
getPictogramElement
in interface IPictogramElementEditPart
public org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
getSourceConnectionAnchor
in interface org.eclipse.gef.NodeEditPart
public org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.Request request)
getSourceConnectionAnchor
in interface org.eclipse.gef.NodeEditPart
public org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
getTargetConnectionAnchor
in interface org.eclipse.gef.NodeEditPart
public org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.Request request)
getTargetConnectionAnchor
in interface org.eclipse.gef.NodeEditPart
public java.util.List<PictogramElement> getModelChildren()
IPictogramElementEditPart
getModelChildren
in interface IPictogramElementEditPart
getModelChildren
in class org.eclipse.gef.editparts.AbstractEditPart
public java.lang.Object getAdapter(java.lang.Class key)
getAdapter
in interface IAdaptable
getAdapter
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public IFeatureProvider getFeatureProvider()
IFeatureProviderHolder
getFeatureProvider
in interface IFeatureProviderHolder
public IPictogramElementDelegate getPictogramElementDelegate()
IPictogramElementEditPart
getPictogramElementDelegate
in interface IPictogramElementEditPart
public org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request request)
getDragTracker
in interface org.eclipse.gef.EditPart
getDragTracker
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public void eraseSourceFeedback(org.eclipse.gef.Request request)
eraseSourceFeedback
in interface org.eclipse.gef.EditPart
eraseSourceFeedback
in class org.eclipse.gef.editparts.AbstractEditPart
public void eraseTargetFeedback(org.eclipse.gef.Request request)
eraseTargetFeedback
in interface org.eclipse.gef.EditPart
eraseTargetFeedback
in class org.eclipse.gef.editparts.AbstractEditPart
public void showSourceFeedback(org.eclipse.gef.Request request)
showSourceFeedback
in interface org.eclipse.gef.EditPart
showSourceFeedback
in class org.eclipse.gef.editparts.AbstractEditPart
public void showTargetFeedback(org.eclipse.gef.Request request)
showTargetFeedback
in interface org.eclipse.gef.EditPart
showTargetFeedback
in class org.eclipse.gef.editparts.AbstractEditPart
public void refreshDecorators()
refreshDecorators
in interface IAnchorContainerEditPart