JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid
Class CellPosition

java.lang.Object
  |
  +--com.klg.jclass.higrid.CellPosition
All Implemented Interfaces:
Serializable

public class CellPosition
extends Object
implements Serializable

A CellPosition object describes a cell by specifying its rowNode and column index.

See Also:
Serialized Form

Field Summary
protected  int columnIndex
           
protected  com.klg.jclass.higrid.CellFormat format
           
protected  boolean isIndicator
           
protected  Point point
           
protected  com.klg.jclass.higrid.RowNode row
           
 
Constructor Summary
CellPosition()
           
CellPosition(int x, int y)
           
CellPosition(com.klg.jclass.higrid.RowNode row, int column)
           
CellPosition(com.klg.jclass.higrid.RowNode row, int column, boolean isIndicator)
          Default Constructor
 
Method Summary
protected  Object clone()
          Creates and returns a copy of this object.
 com.klg.jclass.higrid.CellFormat getCellFormat()
          Retrieves the cell's cellFormat.
 int getColumnIndex()
          Retrieves the cell's columnIndex.
 com.klg.jclass.higrid.RowNode getRowNode()
          Retrieves the cell's rowNode.
 boolean isIndicator()
          Retrieves if the cell is an indicatorFormat.
 boolean isSameAs(com.klg.jclass.higrid.CellPosition cell)
          Compares the passed CellPosition object with itself for logical equality.
 void setColumnIndex(int column)
          Sets the column index to the indicated column.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

row

protected com.klg.jclass.higrid.RowNode row

format

protected com.klg.jclass.higrid.CellFormat format

point

protected Point point

columnIndex

protected int columnIndex

isIndicator

protected boolean isIndicator
Constructor Detail

CellPosition

public CellPosition(com.klg.jclass.higrid.RowNode row,
                    int column,
                    boolean isIndicator)
Default Constructor


CellPosition

public CellPosition(com.klg.jclass.higrid.RowNode row,
                    int column)

CellPosition

public CellPosition(int x,
                    int y)

CellPosition

public CellPosition()
Method Detail

setColumnIndex

public void setColumnIndex(int column)
Sets the column index to the indicated column. Based on the index and indicatorType, the CellFormat is also set.

Parameters:
column - the new column index.

isSameAs

public boolean isSameAs(com.klg.jclass.higrid.CellPosition cell)
Compares the passed CellPosition object with itself for logical equality.

Parameters:
cell - the CellPosition object to compare to.
Returns:
true if the passed object is logically equal to this one.

getRowNode

public com.klg.jclass.higrid.RowNode getRowNode()
Retrieves the cell's rowNode.

Returns:
The rowNode.

getCellFormat

public com.klg.jclass.higrid.CellFormat getCellFormat()
Retrieves the cell's cellFormat.

Returns:
The cellFormat.

getColumnIndex

public int getColumnIndex()
Retrieves the cell's columnIndex.

Returns:
The columnIndex.

isIndicator

public boolean isIndicator()
Retrieves if the cell is an indicatorFormat.

Returns:
True if the cell is an indicatorFormat, false if dataFormat.

clone

protected Object clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
a clone of this instance.

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a string representation of the object.

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