net.sf.jxls.transformation
Class ShiftTransformation

java.lang.Object
  extended by net.sf.jxls.transformation.BlockTransformation
      extended by net.sf.jxls.transformation.ShiftTransformation

public class ShiftTransformation
extends BlockTransformation

Defines simple shift transformation

Author:
Leonid Vysochyn

Field Summary
(package private)  int colNum
           
(package private)  int colShift
           
(package private)  int rowNum
           
(package private)  int rowShift
           
 
Fields inherited from class net.sf.jxls.transformation.BlockTransformation
block, sheetName
 
Constructor Summary
ShiftTransformation(Block block, int rowShift, int colShift)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Block getBlockAfterTransformation()
           
 int hashCode()
           
 java.lang.String toString()
           
 java.util.List transformCell(Point p)
          Transforms given spreadsheet cell
 java.util.List transformCell(java.lang.String sheetName, CellRef cellRef)
          Transforms given spreadsheet cell
 
Methods inherited from class net.sf.jxls.transformation.BlockTransformation
contains, contains, getBlock, getDuplicatedCellRef, setBlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

rowShift

int rowShift

colShift

int colShift

rowNum

int rowNum

colNum

int colNum
Constructor Detail

ShiftTransformation

public ShiftTransformation(Block block,
                           int rowShift,
                           int colShift)
Method Detail

getBlockAfterTransformation

public Block getBlockAfterTransformation()
Specified by:
getBlockAfterTransformation in class BlockTransformation

transformCell

public java.util.List transformCell(Point p)
Description copied from class: BlockTransformation
Transforms given spreadsheet cell

Specified by:
transformCell in class BlockTransformation
Parameters:
p - - Point representing spreadsheet cell to transform
Returns:
List of Point objects which are result of source cell transformation

transformCell

public java.util.List transformCell(java.lang.String sheetName,
                                    CellRef cellRef)
Description copied from class: BlockTransformation
Transforms given spreadsheet cell

Specified by:
transformCell in class BlockTransformation
Parameters:
sheetName - - indicates sheet containing cell to transform
cellRef - - CellRef object representing spreadsheet cell to transform
Returns:
List of cell names which are result of source cell transformation

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class BlockTransformation

hashCode

public int hashCode()
Overrides:
hashCode in class BlockTransformation

toString

public java.lang.String toString()
Overrides:
toString in class BlockTransformation


Copyright 2005-2005-2007 jXLS Team. All Rights Reserved.