org.jdesktop.swingx.plaf
Class PainterUIResource<T extends JComponent>
java.lang.Object
org.jdesktop.swingx.plaf.PainterUIResource<T>
- Type Parameters:
T - a subclass of JComponent
- All Implemented Interfaces:
- UIResource, Painter<T>
public class PainterUIResource<T extends JComponent>
- extends Object
- implements Painter<T>, UIResource
An implementation of Painter as a UIResource. UI classes that create Painters
should use this class.
- Author:
- rbair, Karl George Schaefer
|
Constructor Summary |
PainterUIResource(Painter<? super T> p)
Creates a new instance of PainterUIResource with the specified delegate
painter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PainterUIResource
public PainterUIResource(Painter<? super T> p)
- Creates a new instance of PainterUIResource with the specified delegate
painter.
- Parameters:
p - the delegate painter
paint
public void paint(Graphics2D g,
T component,
int width,
int height)
-
- Specified by:
paint in interface Painter<T extends JComponent>
Copyright © 2012. All Rights Reserved.