public class PictogramElementDelegate extends java.lang.Object implements IPictogramElementDelegate
| Constructor and Description |
|---|
PictogramElementDelegate(IConfigurationProviderInternal configurationProvider,
PictogramElement pictogramElement,
org.eclipse.gef.EditPart containerEditPart)
Creates a new PictogramElementDelegate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activate.
|
org.eclipse.draw2d.IFigure |
createFigure()
Creates the figure.
|
void |
deactivate()
Deactivate.
|
java.lang.Object |
getAdapter(java.lang.Class key) |
IConfigurationProviderInternal |
getConfigurationProvider()
Gets the configuration provider.
|
IFeatureProvider |
getFeatureProvider()
Gets the feature provider.
|
org.eclipse.draw2d.IFigure |
getFigureForGraphicsAlgorithm(GraphicsAlgorithm graphicsAlgorithm)
Gets the figure for graphics algorithm.
|
java.util.List<org.eclipse.draw2d.IFigure> |
getMainFiguresFromChildEditparts() |
PictogramElement |
getPictogramElement()
Gets the pictogram element.
|
IVisualState |
getVisualState()
Returns the visual state of this shape.
|
boolean |
isValid() |
void |
refreshDecorators() |
void |
refreshEditPartsForModelChildrenAndSourceConnections(org.eclipse.gef.EditPart ep)
refresh edit parts for child pictogram elements.
|
void |
refreshFigureForEditPart()
Refresh figure for edit part.
|
void |
setForceRefresh(boolean forceRefresh)
If set to true, the visual refresh (synchronization of figures and
graphics algorithm) will be done even it is not necessary.
|
public PictogramElementDelegate(IConfigurationProviderInternal configurationProvider, PictogramElement pictogramElement, org.eclipse.gef.EditPart containerEditPart)
configurationProvider - the configuration providerpictogramElement - the pictogram elementcontainerEditPart - the container edit partpublic void activate()
IPictogramElementDelegateactivate in interface IPictogramElementDelegatepublic org.eclipse.draw2d.IFigure createFigure()
IPictogramElementDelegatecreateFigure in interface IPictogramElementDelegatepublic void deactivate()
IPictogramElementDelegatedeactivate in interface IPictogramElementDelegatepublic java.lang.Object getAdapter(java.lang.Class key)
getAdapter in interface IAdaptablepublic IConfigurationProviderInternal getConfigurationProvider()
getConfigurationProvider in interface IPictogramElementDelegatepublic org.eclipse.draw2d.IFigure getFigureForGraphicsAlgorithm(GraphicsAlgorithm graphicsAlgorithm)
IPictogramElementDelegategetFigureForGraphicsAlgorithm in interface IPictogramElementDelegategraphicsAlgorithm - the graphics algorithmpublic PictogramElement getPictogramElement()
IPictogramElementDelegategetPictogramElement in interface IPictogramElementDelegatepublic void refreshEditPartsForModelChildrenAndSourceConnections(org.eclipse.gef.EditPart ep)
refreshEditPartsForModelChildrenAndSourceConnections in interface IPictogramElementDelegateep - the eppublic void refreshFigureForEditPart()
IPictogramElementDelegaterefreshFigureForEditPart in interface IPictogramElementDelegatepublic IFeatureProvider getFeatureProvider()
IFeatureProviderHoldergetFeatureProvider in interface IFeatureProviderHolderpublic void setForceRefresh(boolean forceRefresh)
IPictogramElementDelegatesetForceRefresh in interface IPictogramElementDelegatepublic boolean isValid()
isValid in interface IPictogramElementDelegatepublic IVisualState getVisualState()
getVisualState in interface IVisualStateHolderpublic java.util.List<org.eclipse.draw2d.IFigure> getMainFiguresFromChildEditparts()
getMainFiguresFromChildEditparts in interface IPictogramElementDelegatepublic void refreshDecorators()
refreshDecorators in interface IPictogramElementDelegate