JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class JCPaintEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.klg.jclass.table.JCPaintEvent
All Implemented Interfaces:
Serializable

public class JCPaintEvent
extends EventObject

The event posted before and after a portion of the table is painted (whenever the table redraws or modifies an onscreen area).

See Also:
JCPaintListener, Serialized Form

Field Summary
static int AFTER_PAINT
           
static int BEFORE_PAINT
           
protected  int end_column
           
protected  int end_row
           
protected  int start_column
           
protected  int start_row
           
protected  int type
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JCPaintEvent(Object source, int type, int start_row, int start_column, int end_row, int end_column)
           
 
Method Summary
 com.klg.jclass.table.JCCellRange getCellRange()
          Returns a JCCellRange containing the painted area.
 int getEndColumn()
          Gets the column of the last cell in the range (top-left corner).
 int getEndRow()
          Gets the row of the last cell in the range (top-left corner).
 int getStartColumn()
          Gets the column of the first cell in the range (top-left corner).
 int getStartRow()
          Gets the row of the first cell in the range (top-left corner).
 int getType()
          Gets the event type.
 String toString()
          Returns a String representation of the event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BEFORE_PAINT

public static final int BEFORE_PAINT
See Also:
Constant Field Values

AFTER_PAINT

public static final int AFTER_PAINT
See Also:
Constant Field Values

type

protected int type

start_row

protected int start_row

start_column

protected int start_column

end_row

protected int end_row

end_column

protected int end_column
Constructor Detail

JCPaintEvent

public JCPaintEvent(Object source,
                    int type,
                    int start_row,
                    int start_column,
                    int end_row,
                    int end_column)
Method Detail

getType

public int getType()
Gets the event type.

Returns:

getStartRow

public int getStartRow()
Gets the row of the first cell in the range (top-left corner).

Returns:

getStartColumn

public int getStartColumn()
Gets the column of the first cell in the range (top-left corner).

Returns:

getEndRow

public int getEndRow()
Gets the row of the last cell in the range (top-left corner).

Returns:

getEndColumn

public int getEndColumn()
Gets the column of the last cell in the range (top-left corner).

Returns:

getCellRange

public com.klg.jclass.table.JCCellRange getCellRange()
Returns a JCCellRange containing the painted area.
Note: This method requires the creation of a JCCellRange object. It will be more efficient to call the individual get methods.

Returns:
JCCellRange containing the painted area

toString

public String toString()
Returns a String representation of the event.

Overrides:
toString in class EventObject
Returns:
String representation of the event

Copyright © 2004 Quest Software Inc..
All rights reserved.