public class DrawNodeEvent
extends java.util.EventObject
Constructor and Description |
---|
DrawNodeEvent(java.lang.Object source,
java.awt.Graphics2D graphics,
DiagramNode node,
boolean shadow,
java.awt.geom.Rectangle2D bounds) |
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getBounds()
Gets the bounding rectangle of the node being drawn.
|
java.awt.Graphics2D |
getGraphics()
Gets an object implementing the Graphics2D interface whose methods should be used to draw the node.
|
DiagramNode |
getNode()
Gets the }
DiagramNode object that should be custom drawn. |
boolean |
getShadow()
Gets a value indicating whether the event is raised to draw the node's shadow.
|
public DrawNodeEvent(java.lang.Object source, java.awt.Graphics2D graphics, DiagramNode node, boolean shadow, java.awt.geom.Rectangle2D bounds)
public java.awt.geom.Rectangle2D getBounds()
public java.awt.Graphics2D getGraphics()
public DiagramNode getNode()
DiagramNode
object that should be custom drawn.DiagramNode
class.public boolean getShadow()