public class ExplicitFlush extends GraphicsContext
ExplicitFlush
is a GraphicsContext
where flushing data to the screen must be done
explicitly by the application. An ExplicitFlush
is useful if the Display
on which the
ExplicitFlush
is writing is double buffered. By using an ExplicitFlush
the user can choose
the best moment to flush its output. If the display is not double buffered, all drawing actions on this
GraphicsContext
are rendered immediately and the flush method has no effect.GraphicsContext
,
Display.getNewExplicitFlush()
Modifier and Type | Method and Description |
---|---|
void |
flush()
Updates the display with the draw actions since the last flush if and only if the display is double buffered.
|
clipRect, drawChar, drawChars, drawCircle, drawCircleArc, drawEllipse, drawEllipseArc, drawHorizontalLine, drawImage, drawImage, drawLine, drawPixel, drawPolygon, drawPolygon, drawRect, drawRegion, drawRegion, drawRegion, drawRegion, drawRoundRect, drawString, drawSubstring, drawVerticalLine, fillCircle, fillCircleArc, fillEllipse, fillEllipseArc, fillPolygon, fillPolygon, fillRect, fillRoundRect, getAlpha, getARGB, getBackgroundColor, getClipHeight, getClipWidth, getClipX, getClipY, getColor, getDisplay, getDisplayColor, getEllipsis, getFont, getStrokeStyle, getTranslateX, getTranslateY, hasBackgroundColor, readPixel, removeBackgroundColor, setBackgroundColor, setClip, setColor, setEllipsis, setFont, setStrokeStyle, translate
public void flush()
Display.isDoubleBuffered()