Package org.eclipse.draw2d
Class NativeGraphicsSource
java.lang.Object
org.eclipse.draw2d.NativeGraphicsSource
- All Implemented Interfaces:
- GraphicsSource
A graphics source that posts a paint request to the control rather than
 constructing GC on it directly. This allows the OS's native painting
 mechanism to be used directly, including any double-buffering that the OS may
 provide for free.
- Since:
- 3.2
- 
Constructor SummaryConstructorsConstructorDescriptionNativeGraphicsSource(Control canvas) Constructs a new graphics source on the given control.
- 
Method SummaryModifier and TypeMethodDescriptionvoidflushGraphics(Rectangle region) Does nothing.Always returnsnull, because
- 
Constructor Details- 
NativeGraphicsSourceConstructs a new graphics source on the given control.- Parameters:
- canvas- the control
- Since:
- 3.2
 
 
- 
- 
Method Details- 
getGraphicsAlways returnsnull, because- Specified by:
- getGraphicsin interface- GraphicsSource
- Parameters:
- r- The rectangular region
- Returns:
- A new Graphics object for the given region
- See Also:
 
- 
flushGraphicsDoes nothing.- Specified by:
- flushGraphicsin interface- GraphicsSource
- Parameters:
- region- The rectangular region that that no longer needs the Graphics
- See Also:
 
 
-