当前页面: 
在线文档首页 > 
JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档
Class java.awt.event.PaintEvent - JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class java.awt.event.PaintEvent
java.lang.Object
   |
   +----java.util.EventObject
           |
           +----java.awt.AWTEvent
                   |
                   +----java.awt.event.ComponentEvent
                           |
                           +----java.awt.event.PaintEvent
  -  public class PaintEvent
  -  extends ComponentEvent
The component-level paint event.
 This event is a special type which is used to ensure that
 paint/update method calls are serialized along with the other
 events delivered from the event queue.  This event is not
 designed to be used with the Event Listener model; programs
 should continue to override paint/update methods in order
 render themselves properly.
   
  -   PAINT PAINT
-   The paint event type.
  
-   PAINT_FIRST PAINT_FIRST
-   Marks the first integer id for the range of paint event ids.
  
-   PAINT_LAST PAINT_LAST
-   Marks the last integer id for the range of paint event ids.
  
-   UPDATE UPDATE
-   The update event type.
   
  -   PaintEvent(Component, int, Rectangle) PaintEvent(Component, int, Rectangle)
-   Constructs a PaintEvent object with the specified source component
 and type.
   
  -   getUpdateRect() getUpdateRect()
-   Returns the rectangle representing the area which needs to be
 repainted in response to this event.
  
-   paramString() paramString()
-  
  
-   setUpdateRect(Rectangle) setUpdateRect(Rectangle)
-   Sets the rectangle representing the area which needs to be
 repainted in response to this event.
   
 PAINT_FIRST
PAINT_FIRST
 public static final int PAINT_FIRST
  -  Marks the first integer id for the range of paint event ids.
 
 PAINT_LAST
PAINT_LAST
 public static final int PAINT_LAST
  -  Marks the last integer id for the range of paint event ids.
 
 PAINT
PAINT
 public static final int PAINT
  -  The paint event type.
 
 UPDATE
UPDATE
 public static final int UPDATE
  -  The update event type.
 
   
 PaintEvent
PaintEvent
 public PaintEvent(Component source,
                   int id,
                   Rectangle updateRect)
  -  Constructs a PaintEvent object with the specified source component
 and type.
   
- 
    -  Parameters:
    
-  source - the object where the event originated
  
 
   
 getUpdateRect
getUpdateRect
 public Rectangle getUpdateRect()
  -  Returns the rectangle representing the area which needs to be
 repainted in response to this event.
 
 setUpdateRect
setUpdateRect
 public void setUpdateRect(Rectangle updateRect)
  -  Sets the rectangle representing the area which needs to be
 repainted in response to this event.
   
- 
    -  Parameters:
    
-  updateRect - the rectangle area which needs to be repainted
  
 
 paramString
paramString
 public String paramString()
  - 
    -  Overrides:
    
-  paramString in class ComponentEvent
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index
Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A.  All Rights Reserved.