public interface Presentable extends RenderTarget
Modifier and Type | Method and Description |
---|---|
float |
getPixelScaleFactor() |
boolean |
lockResources(PresentableState pState)
Locks any underlying resources needed for a createGraphics/prepare/present
sequence and returns a boolean indicating if the presentable needs to be
recreated.
|
boolean |
prepare(Rectangle dirtyregion)
display the indicated region to the user.
|
boolean |
present()
present the prepared region to the user.
|
createGraphics, getAssociatedScreen, isMSAA, isOpaque, setOpaque
getContentHeight, getContentWidth, getContentX, getContentY, getPhysicalHeight, getPhysicalWidth
boolean lockResources(PresentableState pState)
GraphicsResource
then its dispose()
method will be
called prior to recreating a new Presentable
object and
so no resource should need to be locked in that case.
The resources will be unlocked in either #prepare()
or
present()
.pState
- The presentation state for the upcoming pulseboolean prepare(Rectangle dirtyregion)
dirtyregion
- display region or null for full areaboolean present()
float getPixelScaleFactor()
Copyright © 2020. All rights reserved.