Java Doc for PaintEvent.java in  » 6.0-JDK-Core » AWT » java » awt » event » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » AWT » java.awt.event 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.awt.event.ComponentEvent
   java.awt.event.PaintEvent

PaintEvent
public class PaintEvent extends ComponentEvent (Code)
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.
author:
   Amy Fowler
version:
   1.29, 06/05/07
since:
   1.1


Field Summary
final public static  intPAINT
     The paint event type.
final public static  intPAINT_FIRST
     Marks the first integer id for the range of paint event ids.
final public static  intPAINT_LAST
     Marks the last integer id for the range of paint event ids.
final public static  intUPDATE
     The update event type.
 RectangleupdateRect
     This is the rectangle that represents the area on the source component that requires a repaint.

Constructor Summary
public  PaintEvent(Component source, int id, Rectangle updateRect)
     Constructs a PaintEvent object with the specified source component and type.

Note that passing in an invalid id results in unspecified behavior.


Method Summary
public  RectanglegetUpdateRect()
     Returns the rectangle representing the area which needs to be repainted in response to this event.
public  StringparamString()
    
public  voidsetUpdateRect(Rectangle updateRect)
     Sets the rectangle representing the area which needs to be repainted in response to this event.

Field Detail
PAINT
final public static int PAINT(Code)
The paint event type.



PAINT_FIRST
final public static int PAINT_FIRST(Code)
Marks the first integer id for the range of paint event ids.



PAINT_LAST
final public static int PAINT_LAST(Code)
Marks the last integer id for the range of paint event ids.



UPDATE
final public static int UPDATE(Code)
The update event type.



updateRect
Rectangle updateRect(Code)
This is the rectangle that represents the area on the source component that requires a repaint. This rectangle should be non null.
See Also:   java.awt.Rectangle
See Also:   PaintEvent.setUpdateRect(Rectangle)
See Also:   PaintEvent.getUpdateRect()




Constructor Detail
PaintEvent
public PaintEvent(Component source, int id, Rectangle updateRect)(Code)
Constructs a PaintEvent object with the specified source component and type.

Note that passing in an invalid id results in unspecified behavior. This method throws an IllegalArgumentException if source is null.
Parameters:
  source - the object where the event originated
Parameters:
  id - the event type
Parameters:
  updateRect - the rectangle area which needs to be repainted
throws:
  IllegalArgumentException - if source is null





Method Detail
getUpdateRect
public Rectangle getUpdateRect()(Code)
Returns the rectangle representing the area which needs to be repainted in response to this event.



paramString
public String paramString()(Code)



setUpdateRect
public void setUpdateRect(Rectangle updateRect)(Code)
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



Fields inherited from java.awt.event.ComponentEvent
final public static int COMPONENT_FIRST(Code)(Java Doc)
final public static int COMPONENT_HIDDEN(Code)(Java Doc)
final public static int COMPONENT_LAST(Code)(Java Doc)
final public static int COMPONENT_MOVED(Code)(Java Doc)
final public static int COMPONENT_RESIZED(Code)(Java Doc)
final public static int COMPONENT_SHOWN(Code)(Java Doc)

Methods inherited from java.awt.event.ComponentEvent
public Component getComponent()(Code)(Java Doc)
public String paramString()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.