Package org.eclipse.graphiti.features
Class ConfigurableFeatureProviderWrapper
- java.lang.Object
-
- org.eclipse.graphiti.features.DefaultFeatureProviderWrapper
-
- org.eclipse.graphiti.features.ConfigurableFeatureProviderWrapper
-
- All Implemented Interfaces:
IFeatureProvider,IMappingProvider
public class ConfigurableFeatureProviderWrapper extends DefaultFeatureProviderWrapper
The Class ConfigurableFeatureProviderWrapper.
-
-
Constructor Summary
Constructors Constructor Description ConfigurableFeatureProviderWrapper(IFeatureProvider innerFeatureProvider)Creates a newConfigurableFeatureProviderWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IReasoncanAdd(IAddContext context)Can add.IReasoncanLayout(ILayoutContext context)Checks if an layout process can be processed.IReasoncanUpdate(IUpdateContext context)Checks if an update process can be processed.IAddBendpointFeaturegetAddBendpointFeature(IAddBendpointContext context)Add bendpoint features handle the user's requst to have more connection bendpoints.IAddFeaturegetAddFeature(IAddContext context)Add features create graphical representations of domain model objects.ICreateConnectionFeature[]getCreateConnectionFeatures()Gets the create connection features.ICreateFeature[]getCreateFeatures()Provides all create features.ICustomFeature[]getCustomFeatures(ICustomContext context)Custom features can do anything.IDeleteFeaturegetDeleteFeature(IDeleteContext context)Delete features remove the grapical representations of domain model objects as well as the domain model objects itself.IDirectEditingFeaturegetDirectEditingFeature(IDirectEditingContext context)Direct editing features handle direct editing functionality (including drop down lists and text completion).IFeature[]getDragAndDropFeatures(IPictogramElementContext context)if the user should be able to create connections directly from a pictogram element without using the connection tool you can provide an array of features.protected IFeatureCheckergetFeatureChecker()ILayoutFeaturegetLayoutFeature(ILayoutContext context)Layout features do the layouting work (sizes and dimensions) inside (and/or) outside a pictogram element.IMoveAnchorFeaturegetMoveAnchorFeature(IMoveAnchorContext context)Move features respond to user's move requests.IMoveBendpointFeaturegetMoveBendpointFeature(IMoveBendpointContext context)Move features respond to user's move requests.IMoveConnectionDecoratorFeaturegetMoveConnectionDecoratorFeature(IMoveConnectionDecoratorContext context)Move features respond to user's move requests.IMoveShapeFeaturegetMoveShapeFeature(IMoveShapeContext context)Move shape features respond to user's move requests.IPasteFeaturegetPasteFeature(IPasteContext context)Paste features bring clipboard content to the diagram.IReconnectionFeaturegetReconnectionFeature(IReconnectionContext context)Reconnection features handle the change of a connection's start or end anchor.IRemoveBendpointFeaturegetRemoveBendpointFeature(IRemoveBendpointContext context)Add bendpoint features handle the user's requst to remove connection bendpoints.IRemoveFeaturegetRemoveFeature(IRemoveContext context)Remove features remove the grapical representations of domain model objects.IResizeShapeFeaturegetResizeShapeFeature(IResizeShapeContext context)Resize shape features respond to user's resize requests.IUpdateFeaturegetUpdateFeature(IUpdateContext context)Update features do the synchronization work and transport data from domain model to pictograms model elements.-
Methods inherited from class org.eclipse.graphiti.features.DefaultFeatureProviderWrapper
addIfPossible, dispose, getAllBusinessObjectsForPictogramElement, getAllPictogramElementsForBusinessObject, getBusinessObjectForPictogramElement, getCopyFeature, getDiagramTypeProvider, getDirectEditingInfo, getInnerFeatureProvider, getPictogramElementForBusinessObject, getPrintFeature, getSaveImageFeature, hasPictogramElementForBusinessObject, layoutIfPossible, link, link, updateIfPossible, updateIfPossibleAndNeeded, updateNeeded
-
-
-
-
Constructor Detail
-
ConfigurableFeatureProviderWrapper
public ConfigurableFeatureProviderWrapper(IFeatureProvider innerFeatureProvider)
Creates a newConfigurableFeatureProviderWrapper.- Parameters:
innerFeatureProvider- the inner feature provider
-
-
Method Detail
-
canAdd
public IReason canAdd(IAddContext context)
Description copied from interface:IFeatureProviderCan add.- Specified by:
canAddin interfaceIFeatureProvider- Overrides:
canAddin classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- status and reason
-
canLayout
public IReason canLayout(ILayoutContext context)
Description copied from interface:IFeatureProviderChecks if an layout process can be processed. Usually implementers have to check the context.- Specified by:
canLayoutin interfaceIFeatureProvider- Overrides:
canLayoutin classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- status and reason
-
canUpdate
public IReason canUpdate(IUpdateContext context)
Description copied from interface:IFeatureProviderChecks if an update process can be processed. Usually implementers have to check the context.- Specified by:
canUpdatein interfaceIFeatureProvider- Overrides:
canUpdatein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- status and reason
-
getAddBendpointFeature
public IAddBendpointFeature getAddBendpointFeature(IAddBendpointContext context)
Description copied from interface:IFeatureProviderAdd bendpoint features handle the user's requst to have more connection bendpoints.- Specified by:
getAddBendpointFeaturein interfaceIFeatureProvider- Overrides:
getAddBendpointFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- add feature according to the given context
- See Also:
IAddBendpointFeature,IAddBendpointContext
-
getAddFeature
public IAddFeature getAddFeature(IAddContext context)
Description copied from interface:IFeatureProviderAdd features create graphical representations of domain model objects.- Specified by:
getAddFeaturein interfaceIFeatureProvider- Overrides:
getAddFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- add feature according to the given context
- See Also:
IAddFeature
-
getCreateConnectionFeatures
public ICreateConnectionFeature[] getCreateConnectionFeatures()
Description copied from interface:IFeatureProviderGets the create connection features.- Specified by:
getCreateConnectionFeaturesin interfaceIFeatureProvider- Overrides:
getCreateConnectionFeaturesin classDefaultFeatureProviderWrapper- Returns:
- all features to create connections
- See Also:
ICreateConnectionFeature
-
getCreateFeatures
public ICreateFeature[] getCreateFeatures()
Description copied from interface:IFeatureProviderProvides all create features. In the graphics framework they will be visualized in an editor as create tools.- Specified by:
getCreateFeaturesin interfaceIFeatureProvider- Overrides:
getCreateFeaturesin classDefaultFeatureProviderWrapper- Returns:
- all create features
- See Also:
ICreateFeature
-
getCustomFeatures
public ICustomFeature[] getCustomFeatures(ICustomContext context)
Description copied from interface:IFeatureProviderCustom features can do anything. Their functionality can not be planned by the graphics framework (team).- Specified by:
getCustomFeaturesin interfaceIFeatureProvider- Overrides:
getCustomFeaturesin classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- custom feature according to the given context
- See Also:
ICustomFeature
-
getDeleteFeature
public IDeleteFeature getDeleteFeature(IDeleteContext context)
Description copied from interface:IFeatureProviderDelete features remove the grapical representations of domain model objects as well as the domain model objects itself.- Specified by:
getDeleteFeaturein interfaceIFeatureProvider- Overrides:
getDeleteFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- delete feature according to the given context
- See Also:
IDeleteFeature
-
getDirectEditingFeature
public IDirectEditingFeature getDirectEditingFeature(IDirectEditingContext context)
Description copied from interface:IFeatureProviderDirect editing features handle direct editing functionality (including drop down lists and text completion).- Specified by:
getDirectEditingFeaturein interfaceIFeatureProvider- Overrides:
getDirectEditingFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- direct editing feature according to the given context
- See Also:
IDirectEditingFeature
-
getDragAndDropFeatures
public IFeature[] getDragAndDropFeatures(IPictogramElementContext context)
Description copied from interface:IFeatureProviderif the user should be able to create connections directly from a pictogram element without using the connection tool you can provide an array of features. By providing one feature this feature will be executed directly on drop. By providing 2 or more features a popup menu will let the user select the feature.- Specified by:
getDragAndDropFeaturesin interfaceIFeatureProvider- Overrides:
getDragAndDropFeaturesin classDefaultFeatureProviderWrapper- Parameters:
context- - the pictogram element the drag and drop should be initiated on- Returns:
- an array of features or null.
-
getFeatureChecker
protected IFeatureChecker getFeatureChecker()
-
getLayoutFeature
public ILayoutFeature getLayoutFeature(ILayoutContext context)
Description copied from interface:IFeatureProviderLayout features do the layouting work (sizes and dimensions) inside (and/or) outside a pictogram element.- Specified by:
getLayoutFeaturein interfaceIFeatureProvider- Overrides:
getLayoutFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- layout feature according to the given context
- See Also:
ILayoutFeature
-
getMoveAnchorFeature
public IMoveAnchorFeature getMoveAnchorFeature(IMoveAnchorContext context)
Description copied from interface:IFeatureProviderMove features respond to user's move requests. This one is especially for fix point anchors (FixPointAnchor).- Specified by:
getMoveAnchorFeaturein interfaceIFeatureProvider- Overrides:
getMoveAnchorFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- move feature according to the given context
- See Also:
IMoveAnchorFeature
-
getMoveBendpointFeature
public IMoveBendpointFeature getMoveBendpointFeature(IMoveBendpointContext context)
Description copied from interface:IFeatureProviderMove features respond to user's move requests. This one is especially for fix point anchors (FixPointAnchor).- Specified by:
getMoveBendpointFeaturein interfaceIFeatureProvider- Overrides:
getMoveBendpointFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- move feature according to the given context
- See Also:
IMoveBendpointFeature
-
getMoveConnectionDecoratorFeature
public IMoveConnectionDecoratorFeature getMoveConnectionDecoratorFeature(IMoveConnectionDecoratorContext context)
Description copied from interface:IFeatureProviderMove features respond to user's move requests.- Specified by:
getMoveConnectionDecoratorFeaturein interfaceIFeatureProvider- Overrides:
getMoveConnectionDecoratorFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- move feature according to the given context
- See Also:
IMoveConnectionDecoratorFeature
-
getMoveShapeFeature
public IMoveShapeFeature getMoveShapeFeature(IMoveShapeContext context)
Description copied from interface:IFeatureProviderMove shape features respond to user's move requests.- Specified by:
getMoveShapeFeaturein interfaceIFeatureProvider- Overrides:
getMoveShapeFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- move feature according to the given context
- See Also:
IMoveShapeFeature
-
getPasteFeature
public IPasteFeature getPasteFeature(IPasteContext context)
Description copied from interface:IFeatureProviderPaste features bring clipboard content to the diagram.- Specified by:
getPasteFeaturein interfaceIFeatureProvider- Overrides:
getPasteFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- copy feature according to the given context
- See Also:
ICopyFeature
-
getReconnectionFeature
public IReconnectionFeature getReconnectionFeature(IReconnectionContext context)
Description copied from interface:IFeatureProviderReconnection features handle the change of a connection's start or end anchor.- Specified by:
getReconnectionFeaturein interfaceIFeatureProvider- Overrides:
getReconnectionFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- reconnection feature according to the given context
- See Also:
IReconnectionFeature
-
getRemoveBendpointFeature
public IRemoveBendpointFeature getRemoveBendpointFeature(IRemoveBendpointContext context)
Description copied from interface:IFeatureProviderAdd bendpoint features handle the user's requst to remove connection bendpoints.- Specified by:
getRemoveBendpointFeaturein interfaceIFeatureProvider- Overrides:
getRemoveBendpointFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- remove feature according to the given context
- See Also:
IRemoveBendpointFeature
-
getRemoveFeature
public IRemoveFeature getRemoveFeature(IRemoveContext context)
Description copied from interface:IFeatureProviderRemove features remove the grapical representations of domain model objects.- Specified by:
getRemoveFeaturein interfaceIFeatureProvider- Overrides:
getRemoveFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- remove feature according to the given context
- See Also:
IRemoveFeature
-
getResizeShapeFeature
public IResizeShapeFeature getResizeShapeFeature(IResizeShapeContext context)
Description copied from interface:IFeatureProviderResize shape features respond to user's resize requests.- Specified by:
getResizeShapeFeaturein interfaceIFeatureProvider- Overrides:
getResizeShapeFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- resize feature according to the given context
- See Also:
IResizeShapeFeature
-
getUpdateFeature
public IUpdateFeature getUpdateFeature(IUpdateContext context)
Description copied from interface:IFeatureProviderUpdate features do the synchronization work and transport data from domain model to pictograms model elements.- Specified by:
getUpdateFeaturein interfaceIFeatureProvider- Overrides:
getUpdateFeaturein classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- update feature according to the given context
- See Also:
IUpdateFeature
-
-