public class SingleBufferPolicy extends java.lang.Object implements DisplayBufferPolicy
| Constructor and Description |
|---|
SingleBufferPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes the buffers.
|
void |
flush(DisplayBufferManager bufferManager,
ej.microui.display.Rectangle[] rectangles)
Performs a flush: the content of the back buffer has to be "transmitted" to the display front buffer.
|
ej.fp.Image |
getBackBuffer()
Gets the back buffer.
|
int |
getBufferCount()
Gets the number of buffers.
|
ej.fp.Image |
getFrontBuffer()
Gets the front buffer.
|
boolean |
isDoubleBuffered()
Gets whether or not there are several buffers for the display.
|
void |
setDisplayProperties(ej.fp.Widget displayWidget,
int width,
int height,
int initialColor)
Sets the display properties.
|
public void setDisplayProperties(ej.fp.Widget displayWidget,
int width,
int height,
int initialColor)
DisplayBufferPolicysetDisplayProperties in interface DisplayBufferPolicydisplayWidget - the display widget.width - the width of the display.height - the height of the displayinitialColor - the initial color of the display.public int getBufferCount()
DisplayBufferPolicygetBufferCount in interface DisplayBufferPolicypublic boolean isDoubleBuffered()
DisplayBufferPolicyIn other words, if the drawings are done in a buffer different than the one used by the display or not.
isDoubleBuffered in interface DisplayBufferPolicytrue if there is more than one buffer, false otherwise.public void flush(DisplayBufferManager bufferManager, ej.microui.display.Rectangle[] rectangles)
DisplayBufferPolicyThe content of given rectangles in the graphics buffer (back buffer) must be displayed into the LCD buffer (front buffer). The rectangles specified are the regions which have changed during last draw and only these regions should be updated (dirty regions). The number of rectangles depends on the display buffer refresh strategy (BRS).
flush in interface DisplayBufferPolicybufferManager - the buffer manager.rectangles - the modified rectangular regions.public ej.fp.Image getBackBuffer()
DisplayBufferPolicygetBackBuffer in interface DisplayBufferPolicypublic ej.fp.Image getFrontBuffer()
DisplayBufferPolicygetFrontBuffer in interface DisplayBufferPolicypublic void dispose()
DisplayBufferPolicydispose in interface DisplayBufferPolicy