com.mindfusion.diagramming
Class DrawCellEvent

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

public class DrawCellEvent
extends java.util.EventObject

Contains the arguments passed to the DrawCell event handlers.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DrawCellEvent(java.lang.Object source, java.awt.Graphics2D graphics, TableNode table, int column, int row, java.awt.geom.Rectangle2D bounds)
           
 
Method Summary
 java.awt.geom.Rectangle2D getBounds()
          Gets the bounding rectangle of the cell being drawn.
 Cell getCell()
          Gets the cell that should be custom drawn.
 int getColumn()
          Gets the index of the table's column that contains Cell.
 java.awt.Graphics2D getGraphics()
          An object implementing the IGraphics interface whose methods should be used to draw the cell.
 int getRow()
          Gets the index of the table's row that contains Cell.
 TableNode getTable()
          Get the table that contains Cell.
 
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

DrawCellEvent

public DrawCellEvent(java.lang.Object source,
                     java.awt.Graphics2D graphics,
                     TableNode table,
                     int column,
                     int row,
                     java.awt.geom.Rectangle2D bounds)
Method Detail

getBounds

public java.awt.geom.Rectangle2D getBounds()
Gets the bounding rectangle of the cell being drawn.

Returns:
A Rectangle2D specifying the bounding rectangle of the cell.

getColumn

public int getColumn()
Gets the index of the table's column that contains Cell.

Returns:
An integer value specifying the zero-based index of the column.

getGraphics

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

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

getRow

public int getRow()
Gets the index of the table's row that contains Cell.

Returns:
An integer value specifying the zero-based index of the row.

getTable

public TableNode getTable()
Get the table that contains Cell.

Returns:
An instance of the TableNode class

getCell

public Cell getCell()
Gets the cell that should be custom drawn.

Returns:
An instance of the TableNode.getCell(int, int)cell class.