An unspecified behavior will be caused if the id parameter
of any particular PaintEvent instance is not
in the range from PAINT_FIRST to PAINT_LAST.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | PAINT
The paint event type. |
| public static final int | PAINT_FIRST
Marks the first integer id for the range of paint event ids. |
| public static final int | PAINT_LAST
Marks the last integer id for the range of paint event ids. |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.1 for interoperability.
|
| public static final int | UPDATE
The update event type. |
| pack-priv Rectangle | updateRect
This is the rectangle that represents the area on the source component that requires a repaint. |
| Access | Constructor and Description |
|---|---|
| public | PaintEvent(Component
The object where the event originated source, int The integer that identifies the event type.
For information on allowable values, see
the class description for id, Rectangle PaintEventThe rectangle area which needs to be repainted updateRect)Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public Rectangle | Returns: the rectangle representing the area which needs to be repainted in response to this eventReturns the rectangle representing the area which needs to be repainted in response to this event. |
| public String | paramString()
Overrides java. Returns a parameter string identifying this event. |
| public void | setUpdateRect(Rectangle
the rectangle area which needs to be repainted updateRect)Sets the rectangle representing the area which needs to be repainted in response to this event. |
| PAINT | back to summary |
|---|---|
| public static final int PAINT The paint event type. | |
| PAINT_FIRST | back to summary |
|---|---|
| public static final int PAINT_FIRST Marks the first integer id for the range of paint event ids. | |
| PAINT_LAST | back to summary |
|---|---|
| public static final int PAINT_LAST Marks the last integer id for the range of paint event ids. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.1 for interoperability. | |
| UPDATE | back to summary |
|---|---|
| public static final int UPDATE The update event type. | |
| updateRect | back to summary |
|---|---|
| pack-priv Rectangle updateRect This is the rectangle that represents the area on the source component that requires a repaint. This rectangle should be non null. | |
| PaintEvent | back to summary |
|---|---|
| public PaintEvent(Component source, int id, Rectangle updateRect) Constructs a This method throws an
| |
| getUpdateRect | back to summary |
|---|---|
| public Rectangle getUpdateRect() Returns the rectangle representing the area which needs to be repainted in response to this event.
| |
| paramString | back to summary |
|---|---|
| public String paramString() Overrides java. Doc from java. Returns a parameter string identifying this event. This method is useful for event-logging and for debugging. | |
| setUpdateRect | back to summary |
|---|---|
| public void setUpdateRect(Rectangle updateRect) Sets the rectangle representing the area which needs to be repainted in response to this event.
| |