public interface ClientAnchor
Modifier and Type | Field and Description |
---|---|
static int |
DONT_MOVE_AND_RESIZE
Do Not Move or Resize With Underlying Rows/Columns
|
static int |
MOVE_AND_RESIZE
Move and Resize With Anchor Cells
|
static int |
MOVE_DONT_RESIZE
Move With Cells but Do Not Resize
|
Modifier and Type | Method and Description |
---|---|
int |
getAnchorType()
Gets the anchor type
|
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
Note - XSSF and HSSF have a slightly different coordinate
system, values in XSSF are larger by a factor of
XSSFShape.EMU_PER_PIXEL |
int |
getDy1()
Returns the y coordinate within the first cell
Note - XSSF and HSSF have a slightly different coordinate
system, values in XSSF are larger by a factor of
XSSFShape.EMU_PER_PIXEL |
int |
getDy2()
Sets the y coordinate within the second cell
Note - XSSF and HSSF have a slightly different coordinate
system, values in XSSF are larger by a factor of
XSSFShape.EMU_PER_PIXEL |
int |
getRow1()
Returns the row (0 based) of the first cell.
|
int |
getRow2()
Returns the row (0 based) of the second cell.
|
void |
setAnchorType(int anchorType)
Sets the anchor type
|
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
Note - XSSF and HSSF have a slightly different coordinate
system, values in XSSF are larger by a factor of
XSSFShape.EMU_PER_PIXEL |
void |
setDx2(int dx2)
Sets the x coordinate within the second cell
Note - XSSF and HSSF have a slightly different coordinate
system, values in XSSF are larger by a factor of
XSSFShape.EMU_PER_PIXEL |
void |
setDy1(int dy1)
Sets the y coordinate within the first cell
Note - XSSF and HSSF have a slightly different coordinate
system, values in XSSF are larger by a factor of
XSSFShape.EMU_PER_PIXEL |
void |
setDy2(int dy2)
Sets the y coordinate within the second cell
Note - XSSF and HSSF have a slightly different coordinate
system, values in XSSF are larger by a factor of
XSSFShape.EMU_PER_PIXEL |
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.
|
static final int MOVE_AND_RESIZE
Specifies that the current drawing shall move and resize to maintain its row and column anchors (i.e. the object is anchored to the actual from and to row and column)
static final int MOVE_DONT_RESIZE
Specifies that the current drawing shall move with its row and column (i.e. the object is anchored to the actual from row and column), but that the size shall remain absolute.
If additional rows/columns are added between the from and to locations of the drawing, the drawing shall move its to anchors as needed to maintain this same absolute size.
static final int DONT_MOVE_AND_RESIZE
Specifies that the current start and end positions shall be maintained with respect to the distances from the absolute start point of the worksheet.
If additional rows/columns are added before the drawing, the drawing shall move its anchors as needed to maintain this same absolute position.
short getCol1()
void setCol1(int col1)
col1
- 0-based column of the first cell.short getCol2()
void setCol2(int col2)
col2
- 0-based column of the second cell.int getRow1()
void setRow1(int row1)
row1
- 0-based row of the first cell.int getRow2()
void setRow2(int row2)
row2
- 0-based row of the first cell.int getDx1()
XSSFShape.EMU_PER_PIXEL
void setDx1(int dx1)
XSSFShape.EMU_PER_PIXEL
dx1
- the x coordinate within the first cellint getDy1()
XSSFShape.EMU_PER_PIXEL
void setDy1(int dy1)
XSSFShape.EMU_PER_PIXEL
dy1
- the y coordinate within the first cellint getDy2()
XSSFShape.EMU_PER_PIXEL
void setDy2(int dy2)
XSSFShape.EMU_PER_PIXEL
dy2
- the y coordinate within the second cellint getDx2()
XSSFShape.EMU_PER_PIXEL
void setDx2(int dx2)
XSSFShape.EMU_PER_PIXEL
dx2
- the x coordinate within the second cellvoid setAnchorType(int anchorType)
0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells.
anchorType
- the anchor typeMOVE_AND_RESIZE
,
MOVE_DONT_RESIZE
,
DONT_MOVE_AND_RESIZE
int getAnchorType()
0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells.
MOVE_AND_RESIZE
,
MOVE_DONT_RESIZE
,
DONT_MOVE_AND_RESIZE
Copyright © 2020. All rights reserved.