public class RepaintEvent extends java.util.EventObject implements WidgetEvent
| Constructor and Description |
|---|
RepaintEvent(Widget widget,
java.awt.Graphics2D graphics)
Create a RepaintEvent.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Graphics2D |
getGraphics()
Get a Graphics2D which can be used to paint the Widget.
|
Widget |
getWidget()
Get the Widget which generated this event.
|
public RepaintEvent(Widget widget, java.awt.Graphics2D graphics)
widget - the Widget which needs to be paintedgraphics - a Graphics2D object which can be used to paint the Widgetpublic Widget getWidget()
getWidget in interface WidgetEventpublic java.awt.Graphics2D getGraphics()
Written by Peter Eastman.