public class CellIndex
extends java.lang.Object
implements java.lang.Cloneable
行番号および列番号を保持します。
各番号の操作において負数の制御は行いません。
コンストラクタと説明 |
---|
CellIndex()
コンストラクタ.
|
CellIndex(int rowIndex,
int columnIndex)
コンストラクタ
|
CellIndex(java.lang.String cellRef)
コンストラクタ
|
修飾子とタイプ | メソッドと説明 |
---|---|
CellIndex |
clone() |
int |
getColumnIndex()
列番号を返却します。
|
int |
getRowIndex()
行番号を返却します。
|
boolean |
isValid()
セル位置情報が正常であるかどうかを判定します。
|
static boolean |
isValid(CellIndex index)
セル位置情報が正常であるかどうかを判定します。
|
CellIndex |
nextColumn()
列番号を次列へ移動します。
|
CellIndex |
nextRow()
行番号を次行へ移動します。
|
CellIndex |
prevColumn()
列番号を前列へ移動します。
|
CellIndex |
prevRow()
行番号を前行へ移動します。
|
CellIndex |
set(int rowIndex,
int columnIndex)
行番号および列番号を設定します。
|
CellIndex |
set(java.lang.String cellRef)
行番号および列番号を設定します。
|
CellIndex |
setColumn(int columnIndex)
列番号を設定します。
|
CellIndex |
setRow(int rowIndex)
行番号を設定します。
|
CellIndex |
shift(int rowCount,
int columnCount)
行番号および列番号を移動します。
|
CellIndex |
shiftColumn(int count)
列番号を移動します。
|
CellIndex |
shiftRow(int count)
行番号を移動します。
|
java.lang.String |
toString()
文字列表現に変換します。
|
static void |
validate(CellIndex index)
セル位置情報の検証を行います。
|
public CellIndex()
行番号および列番号はいずれも 0 となります。
public CellIndex(java.lang.String cellRef)
cellRef
- セル参照文字列java.lang.IllegalArgumentException
- セル参照文字列が不正の場合CellReference.CellReference(String)
public CellIndex(int rowIndex, int columnIndex)
rowIndex
- 行番号 (0 ~)columnIndex
- 列番号 (0 ~)public static void validate(CellIndex index)
index
- セル位置情報java.lang.IllegalArgumentException
- isValid(CellIndex)
が false
の場合public static boolean isValid(CellIndex index)
以下のいずれかの場合に false
を返却します。
null
の場合isValid()
が false
の場合index
- セル位置情報public boolean isValid()
以下のいずれかの場合に false
を返却します。
public int getRowIndex()
public int getColumnIndex()
public CellIndex nextRow()
public CellIndex nextColumn()
public CellIndex prevRow()
public CellIndex prevColumn()
public CellIndex shift(int rowCount, int columnCount)
rowCount
- 行数columnCount
- 列数public CellIndex shiftRow(int count)
count
- 行数public CellIndex shiftColumn(int count)
count
- 列数public CellIndex set(java.lang.String cellRef)
cellRef
- セル参照文字列java.lang.IllegalArgumentException
- セル参照文字列が不正の場合CellReference.CellReference(String)
public CellIndex set(int rowIndex, int columnIndex)
rowIndex
- 行番号 (0 ~)columnIndex
- 列番号 (0 ~)public CellIndex setRow(int rowIndex)
rowIndex
- 行番号 (0 ~)public CellIndex setColumn(int columnIndex)
columnIndex
- 列番号 (0 ~)public java.lang.String toString()
CellReference.formatAsString()
を返却します。
toString
クラス内 java.lang.Object
Object.toString()
public CellIndex clone()
clone
クラス内 java.lang.Object
Copyright (c) 2013 NTT DATA INTRAMART CORPORATION.