public interface ClientAnchor
ClientAnchor.AnchorType
:
ClientAnchor.AnchorType.DONT_MOVE_AND_RESIZE
== absolute top-left coordinates and width/height, no cell references ClientAnchor.AnchorType.MOVE_DONT_RESIZE
== fixed top-left cell reference, absolute width/height ClientAnchor.AnchorType.MOVE_AND_RESIZE
== fixed top-left and bottom-right cell references, dynamic width/height Modifier and Type | Interface and Description |
---|---|
static class |
ClientAnchor.AnchorType |
Modifier and Type | Method and Description |
---|---|
ClientAnchor.AnchorType |
getAnchorType()
Gets the anchor type Changed from returning an int to an enum in POI 3.14 beta 1.
(在 POI 3.14 beta 1 中获取锚类型从返回 int 更改为 enum。)
|
short |
getCol1()
Returns the column (0 based) of the first cell, or -1 if there is no top-left anchor cell.
(返回第一个单元格的列(基于 0),如果没有左上锚单元格,则返回 -1。)
|
short |
getCol2()
Returns the column (0 based) of the second cell, or -1 if there is no bottom-right anchor cell.
(返回第二个单元格的列(基于 0),如果没有右下锚单元格,则返回 -1。)
|
int |
getDx1()
Returns the x coordinate within the first cell.
(返回第一个单元格内的 x 坐标。)
|
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
Units.EMU_PER_PIXEL
(返回第二个单元格内的 x 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大 Units.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
Units.EMU_PER_PIXEL
(返回第一个单元格内的 y 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大了 Units.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
Units.EMU_PER_PIXEL
(设置第二个单元格内的 y 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大了 Units.EMU_PER_PIXEL 的一个因子)
|
int |
getRow1()
Returns the row (0 based) of the first cell, or -1 if there is no bottom-right anchor cell.
(返回第一个单元格的行(基于 0),如果没有右下锚单元格,则返回 -1。)
|
int |
getRow2()
Returns the row (0 based) of the second cell, or -1 if there is no bottom-right anchor cell.
(返回第二个单元格的行(基于 0),如果没有右下锚单元格,则返回 -1。)
|
void |
setAnchorType(ClientAnchor.AnchorType anchorType)
Sets the anchor type
(设置锚点类型)
|
void |
setCol1(int col1)
Sets the column (0 based) of the first cell.
(设置第一个单元格的列(基于 0)。)
|
void |
setCol2(int col2)
Returns the column (0 based) of the second cell.
(返回第二个单元格的列(基于 0)。)
|
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
Units.EMU_PER_PIXEL
(设置第一个单元格内的 x 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大 Units.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
Units.EMU_PER_PIXEL
(设置第二个单元格内的 x 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大了 Units.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
Units.EMU_PER_PIXEL
(设置第一个单元格内的 y 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大了 Units.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
Units.EMU_PER_PIXEL
(设置第二个单元格内的 y 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大了 Units.EMU_PER_PIXEL 的一个因子)
|
void |
setRow1(int row1)
Returns the row (0 based) of the first cell.
(返回第一个单元格的行(基于 0)。)
|
void |
setRow2(int row2)
Returns the row (0 based) of the first cell.
(返回第一个单元格的行(基于 0)。)
|
short getCol1()
ClientAnchor.AnchorType.MOVE_AND_RESIZE
(返回第一个单元格的列(基于 0),如果没有左上锚单元格,则返回 -1。这是绝对定位的情况 ClientAnchor.AnchorType.MOVE_AND_RESIZE)
void setCol1(int col1)
col1
- 0-based column of the first cell.
(col1 - 第一个单元格的基于 0 的列。)
short getCol2()
ClientAnchor.AnchorType.DONT_MOVE_AND_RESIZE
) and absolute sizing (
ClientAnchor.AnchorType.MOVE_DONT_RESIZE
.
(返回第二个单元格的列(基于 0),如果没有右下锚单元格,则返回 -1。这是绝对定位 (ClientAnchor.AnchorType.DONT_MOVE_AND_RESIZE) 和绝对大小 (ClientAnchor.AnchorType.MOVE_DONT_RESIZE) 的情况。)
void setCol2(int col2)
col2
- 0-based column of the second cell.
(col2 - 第二个单元格的基于 0 的列。)
int getRow1()
ClientAnchor.AnchorType.DONT_MOVE_AND_RESIZE
).
(返回第一个单元格的行(基于 0),如果没有右下锚单元格,则返回 -1。这是绝对定位的情况(ClientAnchor.AnchorType.DONT_MOVE_AND_RESIZE)。)
void setRow1(int row1)
row1
- 0-based row of the first cell.
(row1 - 第一个单元格的从 0 开始的行。)
int getRow2()
ClientAnchor.AnchorType.DONT_MOVE_AND_RESIZE
) and absolute sizing (
ClientAnchor.AnchorType.MOVE_DONT_RESIZE
.
(返回第二个单元格的行(基于 0),如果没有右下锚单元格,则返回 -1。绝对定位 (ClientAnchor.AnchorType.DONT_MOVE_AND_RESIZE) 和绝对大小 (ClientAnchor.AnchorType.MOVE_DONT_RESIZE) 就是这种情况。)
void setRow2(int row2)
row2
- 0-based row of the first cell.
(row2 - 第一个单元格的从 0 开始的行。)
int getDx1()
Units.EMU_PER_PIXEL
(返回第一个单元格内的 x 坐标。注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大了 Units.EMU_PER_PIXEL 的一个因子)
void setDx1(int dx1)
Units.EMU_PER_PIXEL
(设置第一个单元格内的 x 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大 Units.EMU_PER_PIXEL 的一个因子)
dx1
- the x coordinate within the first cell
(dx1 - 第一个单元格内的 x 坐标)
int getDy1()
Units.EMU_PER_PIXEL
(返回第一个单元格内的 y 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大了 Units.EMU_PER_PIXEL 的一个因子)
void setDy1(int dy1)
Units.EMU_PER_PIXEL
(设置第一个单元格内的 y 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大了 Units.EMU_PER_PIXEL 的一个因子)
dy1
- the y coordinate within the first cell
(dy1 - 第一个单元格内的 y 坐标)
int getDy2()
Units.EMU_PER_PIXEL
(设置第二个单元格内的 y 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大了 Units.EMU_PER_PIXEL 的一个因子)
void setDy2(int dy2)
Units.EMU_PER_PIXEL
(设置第二个单元格内的 y 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大了 Units.EMU_PER_PIXEL 的一个因子)
dy2
- the y coordinate within the second cell
(dy2 - 第二个单元格内的 y 坐标)
int getDx2()
Units.EMU_PER_PIXEL
(返回第二个单元格内的 x 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大 Units.EMU_PER_PIXEL 的一个因子)
void setDx2(int dx2)
Units.EMU_PER_PIXEL
(设置第二个单元格内的 x 坐标 注意 - XSSF 和 HSSF 的坐标系略有不同,XSSF 中的值大了 Units.EMU_PER_PIXEL 的一个因子)
dx2
- the x coordinate within the second cell
(dx2 - 第二个单元格内的 x 坐标)
void setAnchorType(ClientAnchor.AnchorType anchorType)
anchorType
- the anchor type to set
(anchorType - 要设置的锚类型)
ClientAnchor.AnchorType getAnchorType()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.