org.apache.poi.xssf.usermodel
public final class XSSFClientAnchor extends XSSFAnchor implements ClientAnchor
DONT_MOVE_AND_RESIZE, MOVE_AND_RESIZE, MOVE_DONT_RESIZE
Modifier | Constructor and Description |
---|---|
|
XSSFClientAnchor()
Creates a new client anchor and defaults all the anchor positions to 0.
|
protected |
XSSFClientAnchor(CTMarker cell1,
CTMarker cell2)
Create XSSFClientAnchor from existing xml beans
|
|
XSSFClientAnchor(int dx1,
int dy1,
int dx2,
int dy2,
int col1,
int row1,
int col2,
int row2)
Creates a new client anchor and sets the top-left and bottom-right
coordinates of the anchor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
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
|
int |
getDy1()
Returns the y coordinate within the first cell
|
int |
getDy2()
Sets the y coordinate within the second cell
|
CTMarker |
getFrom()
Return starting anchor point
|
int |
getRow1()
Returns the row (0 based) of the first cell.
|
int |
getRow2()
Returns the row (0 based) of the second cell.
|
CTMarker |
getTo()
Return ending anchor point
|
boolean |
isSet() |
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
|
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
|
protected void |
setFrom(CTMarker from) |
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.
|
protected void |
setTo(CTMarker to) |
java.lang.String |
toString() |
public XSSFClientAnchor()
public XSSFClientAnchor(int dx1, int dy1, int dx2, int dy2, int col1, int row1, int col2, int row2)
dx1
- the x coordinate within the first cell.dy1
- the y coordinate within the first cell.dx2
- the x coordinate within the second cell.dy2
- the y coordinate within the second cell.col1
- the column (0 based) of the first cell.row1
- the row (0 based) of the first cell.col2
- the column (0 based) of the second cell.row2
- the row (0 based) of the second cell.protected XSSFClientAnchor(CTMarker cell1, CTMarker cell2)
cell1
- starting anchor pointcell2
- ending anchor pointpublic short getCol1()
ClientAnchor
getCol1
in interface ClientAnchor
public void setCol1(int col1)
ClientAnchor
setCol1
in interface ClientAnchor
col1
- 0-based column of the first cell.public short getCol2()
ClientAnchor
getCol2
in interface ClientAnchor
public void setCol2(int col2)
ClientAnchor
setCol2
in interface ClientAnchor
col2
- 0-based column of the second cell.public int getRow1()
ClientAnchor
getRow1
in interface ClientAnchor
public void setRow1(int row1)
ClientAnchor
setRow1
in interface ClientAnchor
row1
- 0-based row of the first cell.public int getRow2()
ClientAnchor
getRow2
in interface ClientAnchor
public void setRow2(int row2)
ClientAnchor
setRow2
in interface ClientAnchor
row2
- 0-based row of the first cell.public int getDx1()
ClientAnchor
getDx1
in interface ClientAnchor
getDx1
in class XSSFAnchor
public void setDx1(int dx1)
ClientAnchor
setDx1
in interface ClientAnchor
setDx1
in class XSSFAnchor
dx1
- the x coordinate within the first cellpublic int getDy1()
ClientAnchor
getDy1
in interface ClientAnchor
getDy1
in class XSSFAnchor
public void setDy1(int dy1)
ClientAnchor
setDy1
in interface ClientAnchor
setDy1
in class XSSFAnchor
dy1
- the y coordinate within the first cellpublic int getDy2()
ClientAnchor
getDy2
in interface ClientAnchor
getDy2
in class XSSFAnchor
public void setDy2(int dy2)
ClientAnchor
setDy2
in interface ClientAnchor
setDy2
in class XSSFAnchor
dy2
- the y coordinate within the second cellpublic int getDx2()
ClientAnchor
getDx2
in interface ClientAnchor
getDx2
in class XSSFAnchor
public void setDx2(int dx2)
ClientAnchor
setDx2
in interface ClientAnchor
setDx2
in class XSSFAnchor
dx2
- the x coordinate within the second cellpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
@Internal public CTMarker getFrom()
protected void setFrom(CTMarker from)
@Internal public CTMarker getTo()
protected void setTo(CTMarker to)
public void 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.
setAnchorType
in interface ClientAnchor
anchorType
- the anchor typeClientAnchor.MOVE_AND_RESIZE
,
ClientAnchor.MOVE_DONT_RESIZE
,
ClientAnchor.DONT_MOVE_AND_RESIZE
public int getAnchorType()
0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells.
getAnchorType
in interface ClientAnchor
ClientAnchor.MOVE_AND_RESIZE
,
ClientAnchor.MOVE_DONT_RESIZE
,
ClientAnchor.DONT_MOVE_AND_RESIZE
public boolean isSet()
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.