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