buoy.event
Class RepaintEvent
- WidgetEvent
public class RepaintEvent
extends EventObject
A RepaintEvent is generated by certain Widgets (including CustomWidgets and many WidgetContainers)
whenever a portion of it needs to be repainted.
Graphics2D | getGraphics() - Get a Graphics2D which can be used to paint the Widget.
|
Widget | getWidget() - Get the Widget which generated this event.
|
RepaintEvent
public RepaintEvent(Widget widget,
Graphics2D graphics)
Create a RepaintEvent.
widget
- the Widget which needs to be paintedgraphics
- a Graphics2D object which can be used to paint the Widget
getGraphics
public Graphics2D getGraphics()
Get a Graphics2D which can be used to paint the Widget.
Written by Peter Eastman.