Package org.eclipse.graphiti.ui.features
Class DefaultFeatureProvider
java.lang.Object
org.eclipse.graphiti.features.impl.AbstractFeatureProvider
org.eclipse.graphiti.ui.features.DefaultFeatureProvider
- All Implemented Interfaces:
IFeatureProvider
,IMappingProvider
- Direct Known Subclasses:
DefaultFeatureProviderWithPatterns
The Class DefaultFeatureProvider.
-
Field Summary
Fields inherited from class org.eclipse.graphiti.features.impl.AbstractFeatureProvider
EMPTY_PICTOGRAM_ELEMENTS, NO_OBJECTS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd bendpoint features handle the user's requst to have more connection bendpoints.getCopyFeature
(ICopyContext context) Copy features fill the clipboard.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.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.It is planned to use this for printing support.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.It is planned to use this for save as image support.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.impl.AbstractFeatureProvider
addIfPossible, canAdd, canLayout, canUpdate, dispose, getAddFeature, getAllBusinessObjectsForPictogramElement, getAllPictogramElementsForBusinessObject, getBusinessObjectForPictogramElement, getCreateConnectionFeatures, getCreateFeatures, getDiagramTypeProvider, getDirectEditingFeature, getDirectEditingInfo, getDragAndDropFeatures, getIndependenceSolver, getLayoutFeature, getLinkService, getPictogramElementForBusinessObject, getReconnectionFeature, hasPictogramElementForBusinessObject, layoutIfPossible, link, link, setIndependenceSolver, updateIfPossible, updateIfPossibleAndNeeded, updateNeeded
-
Constructor Details
-
DefaultFeatureProvider
Creates a newDefaultFeatureProvider
.- Parameters:
dtp
- the default feature provider
-
-
Method Details
-
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 classAbstractFeatureProvider
- Parameters:
context
- the context- Returns:
- add feature according to the given context
- See Also:
-
getCopyFeature
Description copied from interface:IFeatureProvider
Copy features fill the clipboard.- Parameters:
context
- the context- Returns:
- copy feature according to the given context
- 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 classAbstractFeatureProvider
- 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 classAbstractFeatureProvider
- Parameters:
context
- the context- Returns:
- delete 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 classAbstractFeatureProvider
- 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 classAbstractFeatureProvider
- 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 classAbstractFeatureProvider
- 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 classAbstractFeatureProvider
- 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.- Parameters:
context
- the context- Returns:
- copy feature according to the given context
- See Also:
-
getPrintFeature
Description copied from interface:IFeatureProvider
It is planned to use this for printing support. Not yet supported perfectly. The default implementation inAbstractFeatureProvider
returns the an instance ofDefaultPrintFeature
which could be overridden to influence the standard behaviour.
Returnnull
to disable printing.- Specified by:
getPrintFeature
in interfaceIFeatureProvider
- Specified by:
getPrintFeature
in classAbstractFeatureProvider
- Returns:
- The print feature to use or
null
to disable printing. - See Also:
-
getSaveImageFeature
Description copied from interface:IFeatureProvider
It is planned to use this for save as image support. Not yet supported perfectly. The default implementation inAbstractFeatureProvider
returns the an instance ofDefaultSaveImageFeature
which could be overridden to influence the standard behaviour.
Returnnull
to disable save as image.- Specified by:
getSaveImageFeature
in interfaceIFeatureProvider
- Specified by:
getSaveImageFeature
in classAbstractFeatureProvider
- Returns:
- The save feature to use or
null
to disable save as image.
-
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 classAbstractFeatureProvider
- 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 classAbstractFeatureProvider
- Parameters:
context
- the context- Returns:
- resize 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 classAbstractFeatureProvider
- Parameters:
context
- the context- Returns:
- remove 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 classAbstractFeatureProvider
- Parameters:
context
- the context- Returns:
- update feature according to the given context
- See Also:
-