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()BASELINE, BOTTOM, DOTTED, HCENTER, HCENTER_BOTTOM, HCENTER_TOP, HCENTER_VCENTER, LEFT, LEFT_BOTTOM, LEFT_TOP, LEFT_VCENTER, OPAQUE, RIGHT, RIGHT_BOTTOM, RIGHT_TOP, RIGHT_VCENTER, SOLID, TOP, TRANSPARENT, VCENTER| 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, translatepublic void flush()
Display.isDoubleBuffered()