org.pbjar.jxlayer.repaint
Class RepaintManagerUtils

java.lang.Object
  extended by org.pbjar.jxlayer.repaint.RepaintManagerUtils

public class RepaintManagerUtils
extends Object

Utility class that ensures that a correct RepaintManager is set.

Author:
Piet Blok

Method Summary
static Action createRPDisplayAction()
          Create and return an Action that will display the delegate structure of the current RepaintManager.
static void ensureRepaintManagerSet(Component c, RepaintManagerProvider provider)
          Ensure that a specific RepaintManager is set according to the requirements of the RepaintManagerProvider.
static void ensureRepaintManagerSet(JComponent c, RepaintManagerProvider provider)
          Ensure that a specific RepaintManager is set according to the requirements of the RepaintManagerProvider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createRPDisplayAction

public static Action createRPDisplayAction()
Create and return an Action that will display the delegate structure of the current RepaintManager.

Returns:
an Action object

ensureRepaintManagerSet

public static void ensureRepaintManagerSet(Component c,
                                           RepaintManagerProvider provider)
Ensure that a specific RepaintManager is set according to the requirements of the RepaintManagerProvider.

Parameters:
c - a component from which the current repaint manager can be obtained.
provider - the provider

ensureRepaintManagerSet

public static void ensureRepaintManagerSet(JComponent c,
                                           RepaintManagerProvider provider)
Ensure that a specific RepaintManager is set according to the requirements of the RepaintManagerProvider.

Parameters:
c - a component from which the current repaint manager can be obtained.
provider - the provider