org.pietschy.command
Class RenderManager

java.lang.Object
  extended by org.pietschy.command.RenderManager

public class RenderManager
extends java.lang.Object

The RenderManager provides a simple static method that can be used to configure the specified button using the current FaceRenderer.

Version:
$Revision: 1.3 $
Author:
andrewp

Constructor Summary
RenderManager()
           
 
Method Summary
static FaceRenderer getRenderer()
          Gets the currently installed FaceRenderer.
static void renderButton(javax.swing.AbstractButton button)
          Renders the specified button using the currently configured FaceRenderer.
static void setRenderer(FaceRenderer renderer)
          Sets the FaceRenderer to use when configuring buttons and menus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderManager

public RenderManager()
Method Detail

getRenderer

public static FaceRenderer getRenderer()
Gets the currently installed FaceRenderer.

Returns:
the currently installed FaceRenderer.

setRenderer

public static void setRenderer(FaceRenderer renderer)
Sets the FaceRenderer to use when configuring buttons and menus.

Parameters:
renderer - the FaceRenderer to use.

renderButton

public static void renderButton(javax.swing.AbstractButton button)
Renders the specified button using the currently configured FaceRenderer. The button must be attached to a Command instance.

Parameters:
button - the button to configure.