Interface IPrintFeature
- All Superinterfaces:
IDescription, IFeature, IFeatureProviderHolder, IName
- All Known Implementing Classes:
AbstractPrintFeature, DefaultPrintFeature
The Interface IPrintFeature for print support of diagrams.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanPrint(IPrintContext context) Checks if the printing can be executed, e.g the availability of printers is being checked in the default implementation.voidpostPrint(IPrintContext context) Post-print hook.voidprePrint(IPrintContext context) Pre-print hook.voidprint(IPrintContext context) Print the diagram using the given context information.Methods inherited from interface IDescription
getDescriptionMethods inherited from interface IFeature
canExecute, canUndo, execute, hasDoneChanges, isAvailableMethods inherited from interface IFeatureProviderHolder
getFeatureProvider
-
Method Details
-
canPrint
Checks if the printing can be executed, e.g the availability of printers is being checked in the default implementation.- Parameters:
context- the context- Returns:
- true, if successful
-
print
Print the diagram using the given context information. By default the complete diagram is printed, there's currently no option to influence the printing via the context.- Parameters:
context- Context information for printing- Since:
- 0.10
-
prePrint
Pre-print hook. Called before the actual print process starts. You may use this hook to influence the current state of the diagram or the selection.- Parameters:
context- the context
-
postPrint
Post-print hook. Called after the actual print process. You may use this hook to set back the changes done in the prePrint method.- Parameters:
context- the context
-