Package org.eclipse.graphiti.features
Interface ISaveImageFeature
- All Superinterfaces:
IDescription,IFeature,IFeatureProviderHolder,IName
- All Known Implementing Classes:
AbstractSaveImageFeature,DefaultSaveImageFeature
The Interface ISaveImageFeature for the support of the save as image
functionality.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanSave(ISaveImageContext context) Checks if save as image can be executed.voidpostSave(ISaveImageContext context) Post-save hook.voidpreSave(ISaveImageContext context) Pre-save hook.voidsave(ISaveImageContext context) Save the diagram using the given context information.Methods inherited from interface org.eclipse.graphiti.IDescription
getDescriptionMethods inherited from interface org.eclipse.graphiti.features.IFeature
canExecute, canUndo, execute, hasDoneChanges, isAvailableMethods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder
getFeatureProvider
-
Method Details
-
canSave
Checks if save as image can be executed.- Parameters:
context- the context- Returns:
- true, if successful
-
save
Save the diagram using the given context information. By default the complete diagram is saved, there's currently no option to influence the saving via the context.- Parameters:
context- Context information for printing- Since:
- 0.10
-
preSave
Pre-save hook. Called before the actual save as image process starts. You may use this hook to influence the current state of the diagram or the selection.- Parameters:
context- the context
-
postSave
Post-save hook. Called after the actual save as image process finished. You may use this hook to set back the changes done in the preSave method.- Parameters:
context- the context
-