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
Constructors -
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:IFeatureProviderAdd bendpoint features handle the user's requst to have more connection bendpoints.- Specified by:
getAddBendpointFeaturein interfaceIFeatureProvider- Overrides:
getAddBendpointFeaturein classAbstractFeatureProvider- Parameters:
context- the context- Returns:
- add feature according to the given context
- See Also:
-
getCopyFeature
Description copied from interface:IFeatureProviderCopy features fill the clipboard.- Parameters:
context- the context- Returns:
- copy feature according to the given context
- 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 classAbstractFeatureProvider- 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 classAbstractFeatureProvider- Parameters:
context- the context- Returns:
- delete 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 classAbstractFeatureProvider- 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 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:IFeatureProviderMove features respond to user's move requests.- Specified by:
getMoveConnectionDecoratorFeaturein interfaceIFeatureProvider- Overrides:
getMoveConnectionDecoratorFeaturein classAbstractFeatureProvider- 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 classAbstractFeatureProvider- 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.- Parameters:
context- the context- Returns:
- copy feature according to the given context
- See Also:
-
getPrintFeature
Description copied from interface:IFeatureProviderIt is planned to use this for printing support. Not yet supported perfectly. The default implementation inAbstractFeatureProviderreturns the an instance ofDefaultPrintFeaturewhich could be overridden to influence the standard behaviour.
Returnnullto disable printing.- Specified by:
getPrintFeaturein interfaceIFeatureProvider- Specified by:
getPrintFeaturein classAbstractFeatureProvider- Returns:
- The print feature to use or
nullto disable printing. - See Also:
-
getSaveImageFeature
Description copied from interface:IFeatureProviderIt is planned to use this for save as image support. Not yet supported perfectly. The default implementation inAbstractFeatureProviderreturns the an instance ofDefaultSaveImageFeaturewhich could be overridden to influence the standard behaviour.
Returnnullto disable save as image.- Specified by:
getSaveImageFeaturein interfaceIFeatureProvider- Specified by:
getSaveImageFeaturein classAbstractFeatureProvider- Returns:
- The save feature to use or
nullto disable save as image.
-
getRemoveBendpointFeature
Description copied from interface:IFeatureProviderAdd bendpoint features handle the user's requst to remove connection bendpoints.- Specified by:
getRemoveBendpointFeaturein interfaceIFeatureProvider- Overrides:
getRemoveBendpointFeaturein classAbstractFeatureProvider- 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 classAbstractFeatureProvider- Parameters:
context- the context- Returns:
- resize 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 classAbstractFeatureProvider- Parameters:
context- the context- Returns:
- remove 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 classAbstractFeatureProvider- Parameters:
context- the context- Returns:
- update feature according to the given context
- See Also:
-