|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface is an abstraction from a raster or image buffer.
| Method Summary | |
void |
drawBufferContents(java.lang.Object graphicsContext,
int x,
int y)
Draws the contents of the buffer. |
void |
drawIntoBuffer(Renderer renderer,
CompositeView compositeview,
int drawflags)
Draws the specified items from the given CompositeView into the
buffer. |
void |
flush()
Tells the RepaintBuffer instance to let go of system
resources. |
java.lang.Object |
getBuffer()
Returns the internal buffer object, which may be of an arbitrary type |
int |
getContent()
Returns the mask of flags that indicates what has been drawn into the buffer up to this point in time. |
int |
getHeight()
Returns the height of the buffer in pixels. |
int |
getWidth()
Returns the width of the buffer in pixels. |
void |
prepare()
Prepares sets up the buffer for rendering. |
void |
unprepare()
Unprepares closes the buffer for rendering. |
| Method Detail |
public int getContent()
The mask is assembled from the bits defined in
CompositeView. The valid bits are prefixed with
DRAWFLAG*.
public int getWidth()
public int getHeight()
public java.lang.Object getBuffer()
public void flush()
RepaintBuffer instance to let go of system
resources. Details are up to the concrete implementation.
public void prepare()
drawIntoBuffer(Renderer, CompositeView, int) one of more
times.
public void unprepare()
drawIntoBuffer(Renderer, CompositeView, int) one of more
times.
public void drawIntoBuffer(Renderer renderer,
CompositeView compositeview,
int drawflags)
CompositeView into the
buffer. The parameter drawflags defines what to draw and
is assembled from the bitmasks defined in CompositeView and
prefixed with DRAWFLAG.
renderer - the Renderer to use for drawing.compositeview - the CompositeView whose contents should
be drawn into the buffer.drawflags - determines what is to be drawn into the buffer.
public void drawBufferContents(java.lang.Object graphicsContext,
int x,
int y)
graphicsContext - a graphics context, the type depends on the
drawing subsystem.x - x position where to draw the buffer.y - y position where to draw the buffer.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||