public class DrawItemEvent
extends java.util.EventObject
DiagramListener
.Constructor and Description |
---|
DrawItemEvent(java.lang.Object source,
java.awt.Graphics2D graphics,
DiagramItem item)
Initializes a new DrawItemEvent instance.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Graphics2D |
getGraphics()
Gets a reference to the destination graphics object.
|
DiagramItem |
getItem()
Gets a reference to the item related to the event.
|
public DrawItemEvent(java.lang.Object source, java.awt.Graphics2D graphics, DiagramItem item)
source
- The sender of this event.graphics
- The destination graphics.item
- The item that should be drawn.public java.awt.Graphics2D getGraphics()
Graphics2D
object through which the custom drawing should be
performed.public DiagramItem getItem()
DiagramItem
-derived object.