com.alee.extended.painter
Class PainterSupport

java.lang.Object
  extended by com.alee.extended.painter.PainterSupport

public final class PainterSupport
extends java.lang.Object

This special class provides basic methods to link painter with components.

Author:
Mikle Garin

Constructor Summary
PainterSupport()
           
 
Method Summary
static void installPainter(javax.swing.JComponent component, Painter painter)
          Installs painter into the specified component.
static void uninstallPainter(javax.swing.JComponent component, Painter painter)
          Uninstalls painter from the specified component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PainterSupport

public PainterSupport()
Method Detail

installPainter

public static void installPainter(javax.swing.JComponent component,
                                  Painter painter)
Installs painter into the specified component. It is highly recommended to call this method only from EDT.

Parameters:
component - component painter is applied to
painter - painter to install

uninstallPainter

public static void uninstallPainter(javax.swing.JComponent component,
                                    Painter painter)
Uninstalls painter from the specified component. It is highly recommended to call this method only from EDT.

Parameters:
component - component painter is uninstalled from
painter - painter to uninstall