Canvas provide a surface for drawing arbitrary graphics. It supports no styles and events. This is a subclass of class Composite.
This class may be subclassed by custom control implementors who are building controls that are not constructed from aggregates of other controls. That is, they are either painted using SWT graphics calls or are handled by native methods.
The following are the important constructors of Canvas class.