... | ... | @@ -562,7 +562,7 @@ Note the last argument, which tells SWT to only draw the text using a transparen |
|
|
|
|
|
Drawing the text line by line (and this is repeated many times) would result in flickering. This is why in this case, the principle of offscreen rendering was chosen. This renders the lines in an image which is yet invisible and -once complete - draws the entire image at once. The concept is illustrated here:
|
|
|
|
|
|
[Offscreen rendering (or double buffered renderign)](http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/DemonstratesanimationItusesdoublebuffering.html)
|
|
|
[Offscreen rendering (or double buffered rendering)](http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/DemonstratesanimationItusesdoublebuffering.htm)
|
|
|
|
|
|
To be continued...
|
|
|
|
... | ... | |