org.apache.poi.ss.usermodel
Interface ClientAnchor

All Known Implementing Classes:
HSSFClientAnchor, XSSFClientAnchor

public interface ClientAnchor

A client anchor is attached to an excel worksheet. It anchors against a top-left and bottom-right cell.

Author:
Yegor Kozlov

Method Summary
 short getCol1()
          Returns the column (0 based) of the first cell.
 short getCol2()
          Returns the column (0 based) of the second cell.
 int getDx1()
          Returns the x coordinate within the first cell
 int getDx2()
          Returns the x coordinate within the second cell
 int getDy1()
          Returns the y coordinate within the first cell
 int getDy2()
          Sets the y coordinate within the second cell
 int getRow1()
          Returns the row (0 based) of the first cell.
 int getRow2()
          Returns the row (0 based) of the second cell.
 void setCol1(int col1)
          Sets the column (0 based) of the first cell.
 void setCol2(int col2)
          Returns the column (0 based) of the second cell.
 void setDx1(int dx1)
          Sets the x coordinate within the first cell
 void setDx2(int dx2)
          Sets the x coordinate within the second cell
 void setDy1(int dy1)
          Sets the y coordinate within the first cell
 void setDy2(int dy2)
          Sets the y coordinate within the second cell
 void setRow1(int row1)
          Returns the row (0 based) of the first cell.
 void setRow2(int row2)
          Returns the row (0 based) of the first cell.
 

Method Detail

getCol1

short getCol1()
Returns the column (0 based) of the first cell.

Returns:
0-based column of the first cell.

setCol1

void setCol1(int col1)
Sets the column (0 based) of the first cell.

Parameters:
col1 - 0-based column of the first cell.

getCol2

short getCol2()
Returns the column (0 based) of the second cell.

Returns:
0-based column of the second cell.

setCol2

void setCol2(int col2)
Returns the column (0 based) of the second cell.

Parameters:
col2 - 0-based column of the second cell.

getRow1

int getRow1()
Returns the row (0 based) of the first cell.

Returns:
0-based row of the first cell.

setRow1

void setRow1(int row1)
Returns the row (0 based) of the first cell.

Parameters:
row1 - 0-based row of the first cell.

getRow2

int getRow2()
Returns the row (0 based) of the second cell.

Returns:
0-based row of the second cell.

setRow2

void setRow2(int row2)
Returns the row (0 based) of the first cell.

Parameters:
row2 - 0-based row of the first cell.

getDx1

int getDx1()
Returns the x coordinate within the first cell

Returns:
the x coordinate within the first cell

setDx1

void setDx1(int dx1)
Sets the x coordinate within the first cell

Parameters:
dx1 - the x coordinate within the first cell

getDy1

int getDy1()
Returns the y coordinate within the first cell

Returns:
the y coordinate within the first cell

setDy1

void setDy1(int dy1)
Sets the y coordinate within the first cell

Parameters:
dy1 - the y coordinate within the first cell

getDy2

int getDy2()
Sets the y coordinate within the second cell

Returns:
the y coordinate within the second cell

setDy2

void setDy2(int dy2)
Sets the y coordinate within the second cell

Parameters:
dy2 - the y coordinate within the second cell

getDx2

int getDx2()
Returns the x coordinate within the second cell

Returns:
the x coordinate within the second cell

setDx2

void setDx2(int dx2)
Sets the x coordinate within the second cell

Parameters:
dx2 - the x coordinate within the second cell


Copyright 2009 The Apache Software Foundation or its licensors, as applicable.