public interface ClientAnchor
Modifier and Type | Interface and Description |
---|---|
static class |
ClientAnchor.AnchorType |
Modifier and Type | Field and Description |
---|---|
static ClientAnchor.AnchorType |
DONT_MOVE_AND_RESIZE
Deprecated.
since POI 3.14beta1 (circa 2015-11-24). Use
ClientAnchor.AnchorType.DONT_MOVE_AND_RESIZE instead. |
static ClientAnchor.AnchorType |
MOVE_AND_RESIZE
Deprecated.
since POI 3.14beta1 (circa 2015-11-24). Use
ClientAnchor.AnchorType.MOVE_AND_RESIZE instead. |
static ClientAnchor.AnchorType |
MOVE_DONT_RESIZE
Deprecated.
since POI 3.14beta1 (circa 2015-11-24). Use
ClientAnchor.AnchorType.MOVE_DONT_RESIZE instead. |
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.
|
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
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 |
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 |
int |
getRow1()
Returns the row (0 based) of the first cell.
|
int |
getRow2()
Returns the row (0 based) of the second cell.
|
void |
setAnchorType(ClientAnchor.AnchorType anchorType)
Sets the anchor type
|
void |
setAnchorType(int anchorType)
Deprecated.
POI 3.15. Use
setAnchorType(AnchorType) instead. |
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
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 |
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 |
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 |
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.
|
@Removal(version="3.17") static final ClientAnchor.AnchorType MOVE_AND_RESIZE
ClientAnchor.AnchorType.MOVE_AND_RESIZE
instead.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)
@Removal(version="3.17") static final ClientAnchor.AnchorType MOVE_DONT_RESIZE
ClientAnchor.AnchorType.MOVE_DONT_RESIZE
instead.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.
@Removal(version="3.17") static final ClientAnchor.AnchorType DONT_MOVE_AND_RESIZE
ClientAnchor.AnchorType.DONT_MOVE_AND_RESIZE
instead.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()
Units.EMU_PER_PIXEL
void setDx1(int dx1)
Units.EMU_PER_PIXEL
dx1
- the x coordinate within the first cellint getDy1()
Units.EMU_PER_PIXEL
void setDy1(int dy1)
Units.EMU_PER_PIXEL
dy1
- the y coordinate within the first cellint getDy2()
Units.EMU_PER_PIXEL
void setDy2(int dy2)
Units.EMU_PER_PIXEL
dy2
- the y coordinate within the second cellint getDx2()
Units.EMU_PER_PIXEL
void setDx2(int dx2)
Units.EMU_PER_PIXEL
dx2
- the x coordinate within the second cellvoid setAnchorType(ClientAnchor.AnchorType anchorType)
anchorType
- the anchor type to set@Removal(version="3.17") void setAnchorType(int anchorType)
setAnchorType(AnchorType)
instead.anchorType
- the anchor type to setClientAnchor.AnchorType getAnchorType()
Copyright 2017 The Apache Software Foundation or its licensors, as applicable.