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
ConstructorDescriptionConfigurableFeatureProviderWrapper
(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 IFeatureChecker
getLayoutFeature
(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:IFeatureProvider
Can add.- Specified by:
canAdd
in interfaceIFeatureProvider
- Overrides:
canAdd
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- status and reason
-
canLayout
Description copied from interface:IFeatureProvider
Checks if an layout process can be processed. Usually implementers have to check the context.- Specified by:
canLayout
in interfaceIFeatureProvider
- Overrides:
canLayout
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- status and reason
-
canUpdate
Description copied from interface:IFeatureProvider
Checks if an update process can be processed. Usually implementers have to check the context.- Specified by:
canUpdate
in interfaceIFeatureProvider
- Overrides:
canUpdate
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- status and reason
-
getAddBendpointFeature
Description copied from interface:IFeatureProvider
Add bendpoint features handle the user's requst to have more connection bendpoints.- Specified by:
getAddBendpointFeature
in interfaceIFeatureProvider
- Overrides:
getAddBendpointFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- add feature according to the given context
- See Also:
-
getAddFeature
Description copied from interface:IFeatureProvider
Add features create graphical representations of domain model objects.- Specified by:
getAddFeature
in interfaceIFeatureProvider
- Overrides:
getAddFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- add feature according to the given context
- See Also:
-
getCreateConnectionFeatures
Description copied from interface:IFeatureProvider
Gets the create connection features.- Specified by:
getCreateConnectionFeatures
in interfaceIFeatureProvider
- Overrides:
getCreateConnectionFeatures
in classDefaultFeatureProviderWrapper
- Returns:
- all features to create connections
- See Also:
-
getCreateFeatures
Description copied from interface:IFeatureProvider
Provides all create features. In the graphics framework they will be visualized in an editor as create tools.- Specified by:
getCreateFeatures
in interfaceIFeatureProvider
- Overrides:
getCreateFeatures
in classDefaultFeatureProviderWrapper
- Returns:
- all create features
- See Also:
-
getCustomFeatures
Description copied from interface:IFeatureProvider
Custom features can do anything. Their functionality can not be planned by the graphics framework (team).- Specified by:
getCustomFeatures
in interfaceIFeatureProvider
- Overrides:
getCustomFeatures
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- custom feature according to the given context
- See Also:
-
getDeleteFeature
Description copied from interface:IFeatureProvider
Delete features remove the grapical representations of domain model objects as well as the domain model objects itself.- Specified by:
getDeleteFeature
in interfaceIFeatureProvider
- Overrides:
getDeleteFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- delete feature according to the given context
- See Also:
-
getDirectEditingFeature
Description copied from interface:IFeatureProvider
Direct editing features handle direct editing functionality (including drop down lists and text completion).- Specified by:
getDirectEditingFeature
in interfaceIFeatureProvider
- Overrides:
getDirectEditingFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- direct editing feature according to the given context
- See Also:
-
getDragAndDropFeatures
Description copied from interface:IFeatureProvider
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. 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:
getDragAndDropFeatures
in interfaceIFeatureProvider
- Overrides:
getDragAndDropFeatures
in 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:IFeatureProvider
Layout features do the layouting work (sizes and dimensions) inside (and/or) outside a pictogram element.- Specified by:
getLayoutFeature
in interfaceIFeatureProvider
- Overrides:
getLayoutFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- layout feature according to the given context
- See Also:
-
getMoveAnchorFeature
Description copied from interface:IFeatureProvider
Move features respond to user's move requests. This one is especially for fix point anchors (FixPointAnchor
).- Specified by:
getMoveAnchorFeature
in interfaceIFeatureProvider
- Overrides:
getMoveAnchorFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- move feature according to the given context
- See Also:
-
getMoveBendpointFeature
Description copied from interface:IFeatureProvider
Move features respond to user's move requests. This one is especially for fix point anchors (FixPointAnchor
).- Specified by:
getMoveBendpointFeature
in interfaceIFeatureProvider
- Overrides:
getMoveBendpointFeature
in 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:IFeatureProvider
Move features respond to user's move requests.- Specified by:
getMoveConnectionDecoratorFeature
in interfaceIFeatureProvider
- Overrides:
getMoveConnectionDecoratorFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- move feature according to the given context
- See Also:
-
getMoveShapeFeature
Description copied from interface:IFeatureProvider
Move shape features respond to user's move requests.- Specified by:
getMoveShapeFeature
in interfaceIFeatureProvider
- Overrides:
getMoveShapeFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- move feature according to the given context
- See Also:
-
getPasteFeature
Description copied from interface:IFeatureProvider
Paste features bring clipboard content to the diagram.- Specified by:
getPasteFeature
in interfaceIFeatureProvider
- Overrides:
getPasteFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- copy feature according to the given context
- See Also:
-
getReconnectionFeature
Description copied from interface:IFeatureProvider
Reconnection features handle the change of a connection's start or end anchor.- Specified by:
getReconnectionFeature
in interfaceIFeatureProvider
- Overrides:
getReconnectionFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- reconnection feature according to the given context
- See Also:
-
getRemoveBendpointFeature
Description copied from interface:IFeatureProvider
Add bendpoint features handle the user's requst to remove connection bendpoints.- Specified by:
getRemoveBendpointFeature
in interfaceIFeatureProvider
- Overrides:
getRemoveBendpointFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- remove feature according to the given context
- See Also:
-
getRemoveFeature
Description copied from interface:IFeatureProvider
Remove features remove the grapical representations of domain model objects.- Specified by:
getRemoveFeature
in interfaceIFeatureProvider
- Overrides:
getRemoveFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- remove feature according to the given context
- See Also:
-
getResizeShapeFeature
Description copied from interface:IFeatureProvider
Resize shape features respond to user's resize requests.- Specified by:
getResizeShapeFeature
in interfaceIFeatureProvider
- Overrides:
getResizeShapeFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- resize feature according to the given context
- See Also:
-
getUpdateFeature
Description copied from interface:IFeatureProvider
Update features do the synchronization work and transport data from domain model to pictograms model elements.- Specified by:
getUpdateFeature
in interfaceIFeatureProvider
- Overrides:
getUpdateFeature
in classDefaultFeatureProviderWrapper
- Parameters:
context
- the context- Returns:
- update feature according to the given context
- See Also:
-