Package org.eclipse.graphiti.features
Class FeatureCheckerAdapter
java.lang.Object
org.eclipse.graphiti.features.FeatureCheckerAdapter
- All Implemented Interfaces:
IFeatureChecker
The Class FeatureCheckerAdapter is a convenience implementation of
IFeatureChecker. All methods return either true or false.
This class is expected to be sub-classed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanallowCustomFeatures(ICustomContext context) booleanallowDelete(IDeleteContext context) booleanallowDragAndDrop(IPictogramElementContext context) booleanallowLayout(ILayoutContext context) booleanbooleanallowPaste(IPasteContext context) booleanallowReconnect(IReconnectionContext context) booleanallowRemove(IContext context) booleanallowResize(IResizeShapeContext context) booleanallowUpdate(IUpdateContext context)
-
Constructor Details
-
FeatureCheckerAdapter
public FeatureCheckerAdapter(boolean allow) Creates anFeatureCheckerAdapter.- Parameters:
allow- the boolean allow
-
-
Method Details
-
allowAdd
- Specified by:
allowAddin interfaceIFeatureChecker
-
allowConnectionSplit
- Specified by:
allowConnectionSplitin interfaceIFeatureChecker
-
allowCreate
public boolean allowCreate()- Specified by:
allowCreatein interfaceIFeatureChecker
-
allowCustomFeatures
- Specified by:
allowCustomFeaturesin interfaceIFeatureChecker
-
allowDelete
- Specified by:
allowDeletein interfaceIFeatureChecker
-
allowDragAndDrop
- Specified by:
allowDragAndDropin interfaceIFeatureChecker
-
allowLayout
- Specified by:
allowLayoutin interfaceIFeatureChecker
-
allowMove
- Specified by:
allowMovein interfaceIFeatureChecker
-
allowPaste
- Specified by:
allowPastein interfaceIFeatureChecker
-
allowReconnect
- Specified by:
allowReconnectin interfaceIFeatureChecker
-
allowRemove
- Specified by:
allowRemovein interfaceIFeatureChecker
-
allowResize
- Specified by:
allowResizein interfaceIFeatureChecker
-
allowUpdate
- Specified by:
allowUpdatein interfaceIFeatureChecker
-
allow
- Specified by:
allowin interfaceIFeatureChecker
-