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
The Class ConfigurableFeatureProviderWrapper.
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurableFeatureProviderWrapper(IFeatureProvider innerFeatureProvider) Creates a newConfigurableFeatureProviderWrapper. -
Method Summary
Modifier and TypeMethodDescriptioncanAdd(IAddContext context) Can add.canLayout(ILayoutContext context) Checks if an layout process can be processed.canUpdate(IUpdateContext context) Checks if an update process can be processed.Add bendpoint features handle the user's requst to have more connection bendpoints.getAddFeature(IAddContext context) Add features create graphical representations of domain model objects.Gets the create connection features.Provides all create features.getCustomFeatures(ICustomContext context) Custom features can do anything.getDeleteFeature(IDeleteContext context) Delete features remove the grapical representations of domain model objects as well as the domain model objects itself.Direct editing features handle direct editing functionality (including drop down lists and text completion).IFeature[]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 IFeatureCheckergetLayoutFeature(ILayoutContext context) Layout features do the layouting work (sizes and dimensions) inside (and/or) outside a pictogram element.getMoveAnchorFeature(IMoveAnchorContext context) Move features respond to user's move requests.Move features respond to user's move requests.Move features respond to user's move requests.getMoveShapeFeature(IMoveShapeContext context) Move shape features respond to user's move requests.getPasteFeature(IPasteContext context) Paste features bring clipboard content to the diagram.Reconnection features handle the change of a connection's start or end anchor.Add bendpoint features handle the user's requst to remove connection bendpoints.getRemoveFeature(IRemoveContext context) Remove features remove the grapical representations of domain model objects.getResizeShapeFeature(IResizeShapeContext context) Resize shape features respond to user's resize requests.getUpdateFeature(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 Details
-
ConfigurableFeatureProviderWrapper
Creates a newConfigurableFeatureProviderWrapper.- Parameters:
innerFeatureProvider- the inner feature provider
-
-
Method Details
-
canAdd
Description copied from interface:IFeatureProviderCan add.- Specified by:
canAddin interfaceIFeatureProvider- Overrides:
canAddin classDefaultFeatureProviderWrapper- Parameters:
context- the context- Returns:
- status and reason
-
canLayout
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
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
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:
-
getAddFeature
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:
-
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:
-
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:
-
getCustomFeatures
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:
-
getDeleteFeature
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:
-
getDirectEditingFeature
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:
-
getDragAndDropFeatures
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
-
getLayoutFeature
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:
-
getMoveAnchorFeature
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:
-
getMoveBendpointFeature
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:
-
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:
-
getMoveShapeFeature
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:
-
getPasteFeature
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:
-
getReconnectionFeature
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:
-
getRemoveBendpointFeature
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:
-
getRemoveFeature
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:
-
getResizeShapeFeature
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:
-
getUpdateFeature
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:
-