com.mindfusion.diagramming
Class DrawNodeEvent
java.lang.Object
java.util.EventObject
com.mindfusion.diagramming.DrawNodeEvent
- All Implemented Interfaces:
- java.io.Serializable
public class DrawNodeEvent
- extends java.util.EventObject
Contains the arguments passed to the DrawNode event handlers.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
DrawNodeEvent(java.lang.Object source,
java.awt.Graphics2D graphics,
DiagramNode node,
boolean shadow,
java.awt.geom.Rectangle2D bounds)
|
Method Summary |
java.awt.geom.Rectangle2D |
getBounds()
Gets the bounding rectangle of the node being drawn. |
java.awt.Graphics2D |
getGraphics()
Gets an object implementing the IGraphics 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. |
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 |
DrawNodeEvent
public DrawNodeEvent(java.lang.Object source,
java.awt.Graphics2D graphics,
DiagramNode node,
boolean shadow,
java.awt.geom.Rectangle2D bounds)
getBounds
public java.awt.geom.Rectangle2D getBounds()
- Gets the bounding rectangle of the node being drawn.
- Returns:
- A Rectangle2D specifying the bounding rectangle of the node.
getGraphics
public java.awt.Graphics2D getGraphics()
- Gets an object implementing the IGraphics interface whose methods should be used to draw the node.
- Returns:
- An instance of a class implementing the
Graphics2D
interface.
getNode
public DiagramNode getNode()
- Gets the }
DiagramNode
object that should be custom drawn.
- Returns:
- An instance of the
DiagramNode
class.
getShadow
public boolean getShadow()
- Gets a value indicating whether the event is raised to draw the node's shadow.
- Returns:
- true if now drawing the node's shadow; otherwise, false.