com.tensegrity.composite.util
Class RepaintBufferFactory

java.lang.Object
  extended bycom.tensegrity.composite.util.RepaintBufferFactory

public abstract class RepaintBufferFactory
extends java.lang.Object

Abstract base factory class that has a static method for finding the actual factory (getInstance().

Version:
$Id: RepaintBufferFactory.java,v 1.4 2004/02/13 13:48:17 sr Exp $
Author:
StepanRutz

Constructor Summary
protected RepaintBufferFactory()
          Protected Constructor.
 
Method Summary
static RepaintBufferFactory getInstance()
          Returns the RepaintBufferFactory of this factory.
abstract  RepaintBuffer newRepaintBuffer(int width, int height, java.lang.Object arg)
          Returns an instance of RepaintBuffer.
abstract  RepaintBuffer newRepaintBuffer(int width, int height, java.lang.Object arg, java.lang.Object buffer)
          Returns an instance of RepaintBuffer that is reused.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepaintBufferFactory

protected RepaintBufferFactory()
Protected Constructor.

Method Detail

getInstance

public static final RepaintBufferFactory getInstance()
Returns the RepaintBufferFactory of this factory.

Returns:
the RepaintBufferFactory of this factory.

newRepaintBuffer

public abstract RepaintBuffer newRepaintBuffer(int width,
                                               int height,
                                               java.lang.Object arg)
Returns an instance of RepaintBuffer.

Parameters:
width - width of the RepaintBuffer in pixels.
height - height of the RepaintBuffer in pixels.
arg - additional construction argument.
Returns:
a new RepaintBuffer instance.

newRepaintBuffer

public abstract RepaintBuffer newRepaintBuffer(int width,
                                               int height,
                                               java.lang.Object arg,
                                               java.lang.Object buffer)
Returns an instance of RepaintBuffer that is reused.

Parameters:
width - width of the RepaintBuffer in pixels.
height - height of the RepaintBuffer in pixels.
arg - additional construction argument.
buffer - reused internal buffer.
Returns:
a new reused RepaintBuffer instance.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.