PaintListener, Sample code and further information
| Modifier and Type | Field and Description |
|---|---|
| public int | count
the number of following paint events which are pending which may always be zero on some platforms |
| public GC | gc
the graphics context to use when painting that is configured to use the colors, font and damaged region of the control. |
| public int | height
the height of the bounding rectangle of the region that requires painting |
| pack-priv static final long | |
| public int | width
the width of the bounding rectangle of the region that requires painting |
| public int | x
the x offset of the bounding rectangle of the region that requires painting |
| public int | y
the y offset of the bounding rectangle of the region that requires painting |
| Access | Constructor and Description |
|---|---|
| public | PaintEvent(Event
the untyped event containing the information e)Constructs a new instance of this class based on the information in the given untyped event. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a string representation of the eventOverrides org. |
| count | back to summary |
|---|---|
| public int count the number of following paint events which are pending which may always be zero on some platforms | |
| gc | back to summary |
|---|---|
| public GC gc the graphics context to use when painting that is configured to use the colors, font and damaged region of the control. It is valid only during the paint and must not be disposed | |
| height | back to summary |
|---|---|
| public int height the height of the bounding rectangle of the region that requires painting | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| width | back to summary |
|---|---|
| public int width the width of the bounding rectangle of the region that requires painting | |
| x | back to summary |
|---|---|
| public int x the x offset of the bounding rectangle of the region that requires painting | |
| y | back to summary |
|---|---|
| public int y the y offset of the bounding rectangle of the region that requires painting | |
| PaintEvent | back to summary |
|---|---|
| public PaintEvent(Event e) Constructs a new instance of this class based on the information in the given untyped event.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Returns a string containing a concise, human-readable description of the receiver. | |