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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
allowCustomFeatures
(ICustomContext context) boolean
allowDelete
(IDeleteContext context) boolean
allowDragAndDrop
(IPictogramElementContext context) boolean
allowLayout
(ILayoutContext context) boolean
boolean
allowPaste
(IPasteContext context) boolean
allowReconnect
(IReconnectionContext context) boolean
allowRemove
(IContext context) boolean
allowResize
(IResizeShapeContext context) boolean
allowUpdate
(IUpdateContext context)
-
Constructor Details
-
FeatureCheckerAdapter
public FeatureCheckerAdapter(boolean allow) Creates anFeatureCheckerAdapter
.- Parameters:
allow
- the boolean allow
-
-
Method Details
-
allowAdd
- Specified by:
allowAdd
in interfaceIFeatureChecker
-
allowConnectionSplit
- Specified by:
allowConnectionSplit
in interfaceIFeatureChecker
-
allowCreate
public boolean allowCreate()- Specified by:
allowCreate
in interfaceIFeatureChecker
-
allowCustomFeatures
- Specified by:
allowCustomFeatures
in interfaceIFeatureChecker
-
allowDelete
- Specified by:
allowDelete
in interfaceIFeatureChecker
-
allowDragAndDrop
- Specified by:
allowDragAndDrop
in interfaceIFeatureChecker
-
allowLayout
- Specified by:
allowLayout
in interfaceIFeatureChecker
-
allowMove
- Specified by:
allowMove
in interfaceIFeatureChecker
-
allowPaste
- Specified by:
allowPaste
in interfaceIFeatureChecker
-
allowReconnect
- Specified by:
allowReconnect
in interfaceIFeatureChecker
-
allowRemove
- Specified by:
allowRemove
in interfaceIFeatureChecker
-
allowResize
- Specified by:
allowResize
in interfaceIFeatureChecker
-
allowUpdate
- Specified by:
allowUpdate
in interfaceIFeatureChecker
-
allow
- Specified by:
allow
in interfaceIFeatureChecker
-