|
Eclipse Draw2d 3.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.NativeGraphicsSource
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.
Constructor Summary | |
NativeGraphicsSource(Control canvas)
Constructs a new graphics source on the given control. |
Method Summary | |
void |
flushGraphics(Rectangle region)
Does nothing. |
Graphics |
getGraphics(Rectangle r)
Always returns null , because |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NativeGraphicsSource(Control canvas)
canvas
- the controlMethod Detail |
public Graphics getGraphics(Rectangle r)
null
, because
getGraphics
in interface GraphicsSource
r
- The rectangular region
GraphicsSource.getGraphics(Rectangle)
public void flushGraphics(Rectangle region)
flushGraphics
in interface GraphicsSource
region
- The rectangular region that that no longer needs the GraphicsGraphicsSource.flushGraphics(Rectangle)
|
Eclipse Draw2d 3.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |