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 Summary
ConstructorsConstructorDescriptionNativeGraphicsSource
(Control canvas) Constructs a new graphics source on the given control. -
Method Summary
Modifier and TypeMethodDescriptionvoid
flushGraphics
(Rectangle region) Does nothing.Always returnsnull
, because
-
Constructor Details
-
NativeGraphicsSource
Constructs a new graphics source on the given control.- Parameters:
canvas
- the control- Since:
- 3.2
-
-
Method Details
-
getGraphics
Always returnsnull
, because- Specified by:
getGraphics
in interfaceGraphicsSource
- Parameters:
r
- The rectangular region- Returns:
- A new Graphics object for the given region
- See Also:
-
flushGraphics
Does nothing.- Specified by:
flushGraphics
in interfaceGraphicsSource
- Parameters:
region
- The rectangular region that that no longer needs the Graphics- See Also:
-