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(org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker cell1,
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.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(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
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 |
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.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.
|
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.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
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 |
protected void |
setFrom(org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.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(org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker to) |
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(org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker cell1,
org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker cell2)
cell1 - starting anchor pointcell2 - ending anchor pointpublic short getCol1()
ClientAnchorgetCol1 in interface ClientAnchorpublic void setCol1(int col1)
ClientAnchorsetCol1 in interface ClientAnchorcol1 - 0-based column of the first cell.public short getCol2()
ClientAnchorgetCol2 in interface ClientAnchorpublic void setCol2(int col2)
ClientAnchorsetCol2 in interface ClientAnchorcol2 - 0-based column of the second cell.public int getRow1()
ClientAnchorgetRow1 in interface ClientAnchorpublic void setRow1(int row1)
ClientAnchorsetRow1 in interface ClientAnchorrow1 - 0-based row of the first cell.public int getRow2()
ClientAnchorgetRow2 in interface ClientAnchorpublic void setRow2(int row2)
ClientAnchorsetRow2 in interface ClientAnchorrow2 - 0-based row of the first cell.public int getDx1()
ClientAnchorXSSFShape.EMU_PER_PIXELgetDx1 in interface ClientAnchorgetDx1 in class XSSFAnchorpublic void setDx1(int dx1)
ClientAnchorXSSFShape.EMU_PER_PIXELsetDx1 in interface ClientAnchorsetDx1 in class XSSFAnchordx1 - the x coordinate within the first cellpublic int getDy1()
ClientAnchorXSSFShape.EMU_PER_PIXELgetDy1 in interface ClientAnchorgetDy1 in class XSSFAnchorpublic void setDy1(int dy1)
ClientAnchorXSSFShape.EMU_PER_PIXELsetDy1 in interface ClientAnchorsetDy1 in class XSSFAnchordy1 - the y coordinate within the first cellpublic int getDy2()
ClientAnchorXSSFShape.EMU_PER_PIXELgetDy2 in interface ClientAnchorgetDy2 in class XSSFAnchorpublic void setDy2(int dy2)
ClientAnchorXSSFShape.EMU_PER_PIXELsetDy2 in interface ClientAnchorsetDy2 in class XSSFAnchordy2 - the y coordinate within the second cellpublic int getDx2()
ClientAnchorXSSFShape.EMU_PER_PIXELgetDx2 in interface ClientAnchorgetDx2 in class XSSFAnchorpublic void setDx2(int dx2)
ClientAnchorXSSFShape.EMU_PER_PIXELsetDx2 in interface ClientAnchorsetDx2 in class XSSFAnchordx2 - the x coordinate within the second cell@Internal public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker getFrom()
protected void setFrom(org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker from)
@Internal public org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker getTo()
protected void setTo(org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.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 ClientAnchoranchorType - the anchor typeClientAnchor.MOVE_AND_RESIZE,
ClientAnchor.MOVE_DONT_RESIZE,
ClientAnchor.DONT_MOVE_AND_RESIZEpublic 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 ClientAnchorClientAnchor.MOVE_AND_RESIZE,
ClientAnchor.MOVE_DONT_RESIZE,
ClientAnchor.DONT_MOVE_AND_RESIZEpublic boolean isSet()
Copyright © 2020. All rights reserved.