Package ca.phon.ui.painter
Interface ComponentPainter<T extends JComponent>
- All Known Implementing Classes:
CmpPainter
public interface ComponentPainter<T extends JComponent>
A painter interface similar to the SwingX painter
setup. Can be used by custom UI components to
help with painting.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
paint
(Graphics2D g2d, T comp, int width, int height) Paint the component
-
Method Details
-
paint
Paint the component- Parameters:
g2d
- graphics context as a Graphics2D objectcomp
- componentwidth
- width to paintheight
- height to paint
-