|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.util.RamRepaintBuffer
This class is a concrete implementation of the
RepaintBuffer interface.
This implementation is for jdk1.3 and uses a
BufferedImage internally.
| 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public final int getContent()
RepaintBuffer
The mask is assembled from the bits defined in
CompositeView. The valid bits are prefixed with
DRAWFLAG*.
getContent in interface RepaintBufferpublic final int getWidth()
RepaintBuffer
getWidth in interface RepaintBufferpublic final int getHeight()
RepaintBuffer
getHeight in interface RepaintBufferpublic java.lang.Object getBuffer()
RepaintBuffer
getBuffer in interface RepaintBufferpublic final void flush()
RepaintBufferRepaintBuffer instance to let go of system
resources. Details are up to the concrete implementation.
flush in interface RepaintBufferpublic final void prepare()
RepaintBufferRepaintBuffer.drawIntoBuffer(Renderer, CompositeView, int) one of more
times.
prepare in interface RepaintBufferpublic final void unprepare()
RepaintBufferRepaintBuffer.drawIntoBuffer(Renderer, CompositeView, int) one of more
times.
unprepare in interface RepaintBuffer
public final void drawIntoBuffer(Renderer renderer,
CompositeView compositeview,
int drawflags)
RepaintBufferCompositeView into the
buffer. The parameter drawflags defines what to draw and
is assembled from the bitmasks defined in CompositeView and
prefixed with DRAWFLAG.
drawIntoBuffer in interface RepaintBufferrenderer - 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 final void drawBufferContents(java.lang.Object graphicsContext,
int x,
int y)
RepaintBuffer
drawBufferContents in interface RepaintBuffergraphicsContext - 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 | ||||||||||