|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.mindfusion.diagramming.DrawItemEvent
public class DrawItemEvent
Contains information passed to the custom-draw events
defined in DiagramListener
.
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
DrawItemEvent(java.lang.Object source,
java.awt.Graphics2D graphics,
DiagramItem item,
boolean shadow,
java.awt.geom.Rectangle2D bounds)
Initializes a new DrawItemEvent instance. |
Method Summary | |
---|---|
java.awt.geom.Rectangle2D.Float |
getBounds()
Gets the position at which to draw the item. |
java.awt.Graphics2D |
getGraphics()
Gets a reference to the destination graphics object. |
DiagramItem |
getItem()
Gets a reference to the item related to the event. |
boolean |
getShadow()
Gets a value indicating whether the event handle should draw the item's shadow or the item. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DrawItemEvent(java.lang.Object source, java.awt.Graphics2D graphics, DiagramItem item, boolean shadow, java.awt.geom.Rectangle2D bounds)
source
- The sender of this event.graphics
- The destination graphics.item
- The item that should be drawn.shadow
- true
if the item's shadow should be drawn,
false
if the item itself should be drawn.bounds
- Specifies the bounding rectangle of the item or its shadow.Method Detail |
---|
public java.awt.Graphics2D getGraphics()
Graphics2D
object through which the custom drawing should be
performed.public DiagramItem getItem()
DiagramItem
-derived object.public boolean getShadow()
true
if the event handler should draw a shadow,
otherwise false
.public java.awt.geom.Rectangle2D.Float getBounds()
Rectangle2D.Float
object representing
the position of the item or its shadow.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |