Top Description Fields Constructors Methods
org.eclipse.swt.events

public final Class PaintEvent

extends TypedEvent
Class Inheritance
Imports
org.eclipse.swt.widgets.Event, org.eclipse.swt.graphics.GC

Instances of this class are sent as a result of visible areas of controls requiring re-painting.
See Also
PaintListener, Sample code and further information

Field Summary

Modifier and TypeField 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

Inherited from org.eclipse.swt.events.TypedEvent:
datadisplaytimewidget

Constructor Summary

AccessConstructor 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.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a string representation of the event
toString
()

Overrides org.eclipse.swt.events.TypedEvent.toString.

Returns a string containing a concise, human-readable description of the receiver.
Inherited from org.eclipse.swt.events.TypedEvent:
getName

Field Detail

countback to summary
public int count

the number of following paint events which are pending which may always be zero on some platforms

gcback 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

heightback to summary
public int height

the height of the bounding rectangle of the region that requires painting

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides org.eclipse.swt.events.TypedEvent.serialVersionUID.

widthback to summary
public int width

the width of the bounding rectangle of the region that requires painting

xback to summary
public int x

the x offset of the bounding rectangle of the region that requires painting

yback to summary
public int y

the y offset of the bounding rectangle of the region that requires painting

Constructor Detail

PaintEventback to summary
public PaintEvent(Event e)

Constructs a new instance of this class based on the information in the given untyped event.

Parameters
e:Event

the untyped event containing the information

Method Detail

toStringback to summary
public String toString()

Overrides org.eclipse.swt.events.TypedEvent.toString.

Returns a string containing a concise, human-readable description of the receiver.

Returns:String

a string representation of the event

Annotations
@Override