Package adams.gui.event
Class PaintEvent
- java.lang.Object
-
- java.util.EventObject
-
- adams.gui.event.PaintEvent
-
- All Implemented Interfaces:
Serializable
public class PaintEvent extends EventObject
Event that gets sent in case of a paint update of a GUI component.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PaintEvent.PaintMoment
Enumeration indicating what paintlets should be executed.
-
Field Summary
Fields Modifier and Type Field Description protected Graphics
m_Graphics
the graphics context.protected PaintEvent.PaintMoment
m_PaintMoment
the paint momment.-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description PaintEvent(Object source, Graphics g, PaintEvent.PaintMoment moment)
Initializes the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Graphics
getGraphics()
Returns the corresponding graphics context.PaintEvent.PaintMoment
getPaintMoment()
Returns the paint moment of which a paintlet has to be in order to be executed.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
m_Graphics
protected Graphics m_Graphics
the graphics context.
-
m_PaintMoment
protected PaintEvent.PaintMoment m_PaintMoment
the paint momment.
-
-
Constructor Detail
-
PaintEvent
public PaintEvent(Object source, Graphics g, PaintEvent.PaintMoment moment)
Initializes the event.- Parameters:
source
- the source of the eventg
- the graphics contextmoment
- the paint momentm only paintlets of this moment should draw themselves
-
-
Method Detail
-
getGraphics
public Graphics getGraphics()
Returns the corresponding graphics context.- Returns:
- the graphics context
-
getPaintMoment
public PaintEvent.PaintMoment getPaintMoment()
Returns the paint moment of which a paintlet has to be in order to be executed.- Returns:
- the paint moment
-
-