|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFeatureProvider
The Interface IFeatureProvider.
The set of provided features defines the operations, potentially available in
a graphical editor. There has been the idea to restrict available operations
through tool behavior providers (
IToolBehaviorProvider
).
IFeature
Method Summary | |
---|---|
PictogramElement |
addIfPossible(IAddContext context)
Adds the if possible. |
IReason |
canAdd(IAddContext context)
Can add. |
IReason |
canLayout(ILayoutContext context)
Checks if an layout process can be processed. |
IReason |
canUpdate(IUpdateContext context)
Checks if an update process can be processed. |
void |
dispose()
This is called to dispose the object. |
IAddBendpointFeature |
getAddBendpointFeature(IAddBendpointContext context)
Add bendpoint features handle the user's requst to have more connection bendpoints. |
IAddFeature |
getAddFeature(IAddContext context)
Add features create graphical representations of domain model objects. |
ICopyFeature |
getCopyFeature(ICopyContext context)
Copy features fill the clipboard. |
ICreateConnectionFeature[] |
getCreateConnectionFeatures()
Gets the create connection features. |
ICreateFeature[] |
getCreateFeatures()
Provides all create features. |
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. |
IDiagramTypeProvider |
getDiagramTypeProvider()
Returns the diagram type provider. |
IDirectEditingFeature |
getDirectEditingFeature(IDirectEditingContext context)
Direct editing features handle direct editing functionality (including drop down lists and text completion). |
IDirectEditingInfo |
getDirectEditingInfo()
If a creation feature wants to switch directly into the direct editing mode (after the object creation), it must provide the necessary information via this object. |
IFeature[] |
getDragAndDropFeatures(IPictogramElementContext context)
if the user should be able to create connections directly from a pictogram element without using the connection tool you can provide an array of features. |
ILayoutFeature |
getLayoutFeature(ILayoutContext context)
Layout features do the layouting work (sizes and dimensions) inside (and/or) outside a pictogram element. |
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. |
IReconnectionFeature |
getReconnectionFeature(IReconnectionContext context)
Reconnection features handle the change of a connection's start or end anchor. |
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. |
IReason |
layoutIfPossible(ILayoutContext context)
Process the layout process. |
IReason |
updateIfPossible(IUpdateContext context)
Process the update process. |
IReason |
updateIfPossibleAndNeeded(IUpdateContext context)
Update if possible and needed. |
IReason |
updateNeeded(IUpdateContext context)
Checks if an update process is needed and has be processed. |
Methods inherited from interface org.eclipse.graphiti.features.IMappingProvider |
---|
getAllBusinessObjectsForPictogramElement, getAllPictogramElementsForBusinessObject, getBusinessObjectForPictogramElement, getPictogramElementForBusinessObject, hasPictogramElementForBusinessObject, link, link |
Method Detail |
---|
ICreateFeature[] getCreateFeatures()
ICreateFeature
ICreateConnectionFeature[] getCreateConnectionFeatures()
ICreateConnectionFeature
IAddFeature getAddFeature(IAddContext context)
context
- the context
IAddFeature
IDeleteFeature getDeleteFeature(IDeleteContext context)
context
- the context
IDeleteFeature
ICopyFeature getCopyFeature(ICopyContext context)
context
- the context
ICopyFeature
IPasteFeature getPasteFeature(IPasteContext context)
context
- the context
ICopyFeature
IRemoveFeature getRemoveFeature(IRemoveContext context)
context
- the context
IRemoveFeature
IResizeShapeFeature getResizeShapeFeature(IResizeShapeContext context)
context
- the context
IResizeShapeFeature
IMoveShapeFeature getMoveShapeFeature(IMoveShapeContext context)
context
- the context
IMoveShapeFeature
IMoveConnectionDecoratorFeature getMoveConnectionDecoratorFeature(IMoveConnectionDecoratorContext context)
context
- the context
IMoveConnectionDecoratorFeature
IMoveAnchorFeature getMoveAnchorFeature(IMoveAnchorContext context)
FixPointAnchor
).
context
- the context
IMoveAnchorFeature
IMoveBendpointFeature getMoveBendpointFeature(IMoveBendpointContext context)
FixPointAnchor
).
context
- the context
IMoveBendpointFeature
IPrintFeature getPrintFeature()
AbstractFeatureProvider
returns the an instance of DefaultPrintFeature
which could be
overridden to influence the standard behaviour.null
to disable printing.
null
to disable
printing.IPrintFeature
ISaveImageFeature getSaveImageFeature()
AbstractFeatureProvider
returns the an instance of DefaultSaveImageFeature
which could be
overridden to influence the standard behaviour.null
to disable save as image.
null
to disable save as
image.IUpdateFeature getUpdateFeature(IUpdateContext context)
context
- the context
IUpdateFeature
ILayoutFeature getLayoutFeature(ILayoutContext context)
context
- the context
ILayoutFeature
IReconnectionFeature getReconnectionFeature(IReconnectionContext context)
context
- the context
IReconnectionFeature
ICustomFeature[] getCustomFeatures(ICustomContext context)
context
- the context
ICustomFeature
IDiagramTypeProvider getDiagramTypeProvider()
IDiagramTypeProvider
IAddBendpointFeature getAddBendpointFeature(IAddBendpointContext context)
context
- the context
IAddBendpointFeature
,
IAddBendpointContext
IRemoveBendpointFeature getRemoveBendpointFeature(IRemoveBendpointContext context)
context
- the context
IRemoveBendpointFeature
IDirectEditingFeature getDirectEditingFeature(IDirectEditingContext context)
context
- the context
IDirectEditingFeature
IDirectEditingInfo getDirectEditingInfo()
IDirectEditingInfo
IFeature[] getDragAndDropFeatures(IPictogramElementContext context)
context
- - the pictogram element the drag and drop should be initiated
on
PictogramElement addIfPossible(IAddContext context)
context
- the context
IReason canAdd(IAddContext context)
context
- the context
IReason canLayout(ILayoutContext context)
context
- the context
IReason canUpdate(IUpdateContext context)
context
- the context
IReason layoutIfPossible(ILayoutContext context)
context
- the context
IReason updateIfPossible(IUpdateContext context)
context
- the context
IReason updateIfPossibleAndNeeded(IUpdateContext context)
context
- the context
IReason updateNeeded(IUpdateContext context)
context
- the context
void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |