Class 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
    • Constructor Detail

      • PaintEvent

        public PaintEvent​(Object source,
                          Graphics g,
                          PaintEvent.PaintMoment moment)
        Initializes the event.
        Parameters:
        source - the source of the event
        g - the graphics context
        moment - 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