public class DefaultFeatureProvider extends AbstractFeatureProvider
Constructor and Description |
---|
DefaultFeatureProvider(IDiagramTypeProvider dtp)
Creates a new
DefaultFeatureProvider . |
Modifier and Type | Method and Description |
---|---|
IAddBendpointFeature |
getAddBendpointFeature(IAddBendpointContext context)
Add bendpoint features handle the user's requst to have more connection
bendpoints.
|
ICopyFeature |
getCopyFeature(ICopyContext context)
Copy features fill the clipboard.
|
ICustomFeature[] |
getCustomFeatures(ICustomContext context)
Custom features can do anything.
|
IDeleteFeature |
getDeleteFeature(IDeleteContext context)
Delete features remove the grapical representations of domain model
objects as well as the domain model objects itself.
|
IMoveAnchorFeature |
getMoveAnchorFeature(IMoveAnchorContext context)
Move features respond to user's move requests.
|
IMoveBendpointFeature |
getMoveBendpointFeature(IMoveBendpointContext context)
Move features respond to user's move requests.
|
IMoveConnectionDecoratorFeature |
getMoveConnectionDecoratorFeature(IMoveConnectionDecoratorContext context)
Move features respond to user's move requests.
|
IMoveShapeFeature |
getMoveShapeFeature(IMoveShapeContext context)
Move shape features respond to user's move requests.
|
IPasteFeature |
getPasteFeature(IPasteContext context)
Paste features bring clipboard content to the diagram.
|
IPrintFeature |
getPrintFeature()
It is planned to use this for printing support.
|
IRemoveBendpointFeature |
getRemoveBendpointFeature(IRemoveBendpointContext context)
Add bendpoint features handle the user's requst to remove connection
bendpoints.
|
IRemoveFeature |
getRemoveFeature(IRemoveContext context)
Remove features remove the grapical representations of domain model
objects.
|
IResizeShapeFeature |
getResizeShapeFeature(IResizeShapeContext context)
Resize shape features respond to user's resize requests.
|
ISaveImageFeature |
getSaveImageFeature()
It is planned to use this for save as image support.
|
IUpdateFeature |
getUpdateFeature(IUpdateContext context)
Update features do the synchronization work and transport data from
domain model to pictograms model elements.
|
addIfPossible, canAdd, canLayout, canUpdate, dispose, getAddFeature, getAllBusinessObjectsForPictogramElement, getAllPictogramElementsForBusinessObject, getBusinessObjectForPictogramElement, getCreateConnectionFeatures, getCreateFeatures, getDiagramTypeProvider, getDirectEditingFeature, getDirectEditingInfo, getDragAndDropFeatures, getLayoutFeature, getPictogramElementForBusinessObject, getReconnectionFeature, hasPictogramElementForBusinessObject, layoutIfPossible, link, link, updateIfPossible, updateIfPossibleAndNeeded, updateNeeded
public DefaultFeatureProvider(IDiagramTypeProvider dtp)
DefaultFeatureProvider
.dtp
- the default feature providerpublic IAddBendpointFeature getAddBendpointFeature(IAddBendpointContext context)
IFeatureProvider
getAddBendpointFeature
in interface IFeatureProvider
getAddBendpointFeature
in class AbstractFeatureProvider
context
- the contextIAddBendpointFeature
,
IAddBendpointContext
public ICopyFeature getCopyFeature(ICopyContext context)
IFeatureProvider
context
- the contextICopyFeature
public ICustomFeature[] getCustomFeatures(ICustomContext context)
IFeatureProvider
getCustomFeatures
in interface IFeatureProvider
getCustomFeatures
in class AbstractFeatureProvider
context
- the contextICustomFeature
public IDeleteFeature getDeleteFeature(IDeleteContext context)
IFeatureProvider
getDeleteFeature
in interface IFeatureProvider
getDeleteFeature
in class AbstractFeatureProvider
context
- the contextIDeleteFeature
public IMoveAnchorFeature getMoveAnchorFeature(IMoveAnchorContext context)
IFeatureProvider
FixPointAnchor
).getMoveAnchorFeature
in interface IFeatureProvider
getMoveAnchorFeature
in class AbstractFeatureProvider
context
- the contextIMoveAnchorFeature
public IMoveBendpointFeature getMoveBendpointFeature(IMoveBendpointContext context)
IFeatureProvider
FixPointAnchor
).getMoveBendpointFeature
in interface IFeatureProvider
getMoveBendpointFeature
in class AbstractFeatureProvider
context
- the contextIMoveBendpointFeature
public IMoveConnectionDecoratorFeature getMoveConnectionDecoratorFeature(IMoveConnectionDecoratorContext context)
IFeatureProvider
getMoveConnectionDecoratorFeature
in interface IFeatureProvider
getMoveConnectionDecoratorFeature
in class AbstractFeatureProvider
context
- the contextIMoveConnectionDecoratorFeature
public IMoveShapeFeature getMoveShapeFeature(IMoveShapeContext context)
IFeatureProvider
getMoveShapeFeature
in interface IFeatureProvider
getMoveShapeFeature
in class AbstractFeatureProvider
context
- the contextIMoveShapeFeature
public IPasteFeature getPasteFeature(IPasteContext context)
IFeatureProvider
context
- the contextICopyFeature
public IPrintFeature getPrintFeature()
IFeatureProvider
AbstractFeatureProvider
returns the an instance of DefaultPrintFeature
which could be
overridden to influence the standard behaviour.null
to disable printing.getPrintFeature
in interface IFeatureProvider
getPrintFeature
in class AbstractFeatureProvider
null
to disable
printing.IPrintFeature
public ISaveImageFeature getSaveImageFeature()
IFeatureProvider
AbstractFeatureProvider
returns the an instance of DefaultSaveImageFeature
which could be
overridden to influence the standard behaviour.null
to disable save as image.getSaveImageFeature
in interface IFeatureProvider
getSaveImageFeature
in class AbstractFeatureProvider
null
to disable save as
image.public IRemoveBendpointFeature getRemoveBendpointFeature(IRemoveBendpointContext context)
IFeatureProvider
getRemoveBendpointFeature
in interface IFeatureProvider
getRemoveBendpointFeature
in class AbstractFeatureProvider
context
- the contextIRemoveBendpointFeature
public IResizeShapeFeature getResizeShapeFeature(IResizeShapeContext context)
IFeatureProvider
getResizeShapeFeature
in interface IFeatureProvider
getResizeShapeFeature
in class AbstractFeatureProvider
context
- the contextIResizeShapeFeature
public IRemoveFeature getRemoveFeature(IRemoveContext context)
IFeatureProvider
getRemoveFeature
in interface IFeatureProvider
getRemoveFeature
in class AbstractFeatureProvider
context
- the contextIRemoveFeature
public IUpdateFeature getUpdateFeature(IUpdateContext context)
IFeatureProvider
getUpdateFeature
in interface IFeatureProvider
getUpdateFeature
in class AbstractFeatureProvider
context
- the contextIUpdateFeature