com.mindfusion.diagramming
Class DrawLinkEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.mindfusion.diagramming.DrawLinkEvent
All Implemented Interfaces:
java.io.Serializable

public class DrawLinkEvent
extends java.util.EventObject

Contains the arguments passed to the Diagram.drawLinkdrawLink event handlers.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DrawLinkEvent(java.lang.Object source, java.awt.Graphics2D graphics, DiagramLink link, boolean shadow, PointList points)
           
 
Method Summary
 java.awt.Graphics2D getGraphics()
          Gets an object implementing the IGraphics interface whose methods should be used to draw the link.
 DiagramLink getLink()
          Gets the DiagramLink object that should be custom drawn.
 PointList getPoints()
          Gets a collection of the link's control points.
 boolean getShadow()
          Gets a value indicating whether the event is raised to draw the link'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
 

Constructor Detail

DrawLinkEvent

public DrawLinkEvent(java.lang.Object source,
                     java.awt.Graphics2D graphics,
                     DiagramLink link,
                     boolean shadow,
                     PointList points)
Method Detail

getGraphics

public java.awt.Graphics2D getGraphics()
Gets an object implementing the IGraphics interface whose methods should be used to draw the link.

Returns:
An instance of a class implementing the Graphics2D interface.

getLink

public DiagramLink getLink()
Gets the DiagramLink object that should be custom drawn.

Returns:
An instance of the DiagramLink class.

getPoints

public PointList getPoints()
Gets a collection of the link's control points.

Returns:
An instance of the PointList class.

getShadow

public boolean getShadow()
Gets a value indicating whether the event is raised to draw the link's shadow.

Returns:
true if now drawing the link's shadow; otherwise, false.