static class PrismPrintGraphics.PagePresentable extends J2DPresentable
| Modifier and Type | Field and Description |
|---|---|
(package private) static J2DResourceFactory |
factory |
private int |
height |
private boolean |
opaque |
private int |
width |
buffer, ib, needsResize, readbackBuffer| Constructor and Description |
|---|
PagePresentable(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
createBuffer(int w,
int h) |
int |
getContentHeight() |
int |
getContentWidth() |
boolean |
isOpaque() |
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.
|
void |
setOpaque(boolean opaque) |
create, create, createGraphics, getAssociatedScreen, getBackBuffer, getContentX, getContentY, getPhysicalHeight, getPhysicalWidth, getPixelScaleFactor, getReadbackBuffer, getResourceFactory, isMSAAprivate int width
private int height
static J2DResourceFactory factory
private boolean opaque
public java.awt.image.BufferedImage createBuffer(int w,
int h)
createBuffer in class J2DPresentablepublic boolean lockResources(PresentableState pState)
PresentableGraphicsResource 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
Presentable.present().pState - The presentation state for the upcoming pulsepublic boolean prepare(Rectangle dirtyregion)
Presentabledirtyregion - display region or null for full areapublic boolean present()
Presentablepublic int getContentWidth()
public int getContentHeight()
public void setOpaque(boolean opaque)
public boolean isOpaque()