buoy.event
Class RepaintEvent

java.lang.Object
  extended by java.util.EventObject
      extended by buoy.event.RepaintEvent
All Implemented Interfaces:
WidgetEvent, java.io.Serializable

public class RepaintEvent
extends java.util.EventObject
implements WidgetEvent

A RepaintEvent is generated by certain Widgets (including CustomWidgets and many WidgetContainers) whenever a portion of it needs to be repainted.

Author:
Peter Eastman
See Also:
Serialized Form

Constructor Summary
RepaintEvent(Widget widget, java.awt.Graphics2D graphics)
          Create a RepaintEvent.
 
Method Summary
 java.awt.Graphics2D getGraphics()
          Get a Graphics2D which can be used to paint the Widget.
 Widget getWidget()
          Get the Widget which generated this event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepaintEvent

public RepaintEvent(Widget widget,
                    java.awt.Graphics2D graphics)
Create a RepaintEvent.

Parameters:
widget - the Widget which needs to be painted
graphics - a Graphics2D object which can be used to paint the Widget
Method Detail

getWidget

public Widget getWidget()
Get the Widget which generated this event.

Specified by:
getWidget in interface WidgetEvent

getGraphics

public java.awt.Graphics2D getGraphics()
Get a Graphics2D which can be used to paint the Widget.



Written by Peter Eastman.