public class DrawItemEvent
extends java.util.EventObject
DiagramListener
.Constructor and Description |
---|
DrawItemEvent(java.lang.Object source,
android.graphics.Canvas graphics,
DiagramItem item)
Initializes a new DrawItemEvent instance.
|
Modifier and Type | Method and Description |
---|---|
android.graphics.Canvas |
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, android.graphics.Canvas graphics, DiagramItem item)
source
- The sender of this event.graphics
- The destination graphics.item
- The item that should be drawn.public android.graphics.Canvas getGraphics()
Canvas
object through which the custom drawing should be
performed.public DiagramItem getItem()
DiagramItem
-derived object.