public class TICPaintEvent extends java.util.EventObject
PaintableArea
that a part of their associated
components have to be repainted.Constructor and Description |
---|
TICPaintEvent(java.lang.Object source,
java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D rectangle)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Graphics2D |
getGraphics()
Returns the graphic context to paint on.
|
java.awt.geom.Rectangle2D |
getRectangle()
Returns the rectangle that needs to be repainted.
|
public TICPaintEvent(java.lang.Object source, java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D rectangle)
source
- the object that triggered the eventgraphics
- the swing graphics contextrectangle
- the rectangle that has to be repaintedjava.lang.IllegalArgumentException
- if source
, graphics
or rectangle
are null
public java.awt.Graphics2D getGraphics()
Graphics2D
object of the associated swing component or the adapter class of
the associated SWT componentpublic java.awt.geom.Rectangle2D getRectangle()