public class PaintEvent extends Event
Note that this event does not trigger immediate repainting. Instead it is used to mark specified area as such that requires repainting and actual repainting happens at the end of event processing cycle.
Modifier and Type | Field and Description |
---|---|
private boolean |
delayed
Flag indicating this repaint is being postponed.
|
private Rectangle |
updateRect
Rectangle which describes the are which need to be repainted.
|
Constructor and Description |
---|
PaintEvent(Widget source,
Rectangle rect)
Construct an instance of Paint event from given widget and rectangle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Override default comparison method.
|
Rectangle |
getUpdateRect()
Returns the rectangle representing the area that needs to be repainted
in response to this event.
|
int |
hashCode()
Hash code implementation which is consistent with
equals(java.lang.Object) . |
boolean |
isDelayed()
Check the
delayed state. |
void |
setDelayed(boolean delayed)
Set the
delayed state. |
private Rectangle updateRect
private boolean delayed
public void setDelayed(boolean delayed)
delayed
state.delayed
- true
if the repaint is delayed.public boolean isDelayed()
delayed
state.true
if the repaint is delayed.public Rectangle getUpdateRect()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
equals(java.lang.Object)
.hashCode
in class java.lang.Object