| java.lang.Object org.apache.poi.hssf.usermodel.HSSFAnchor org.apache.poi.hssf.usermodel.HSSFClientAnchor
HSSFClientAnchor | public class HSSFClientAnchor extends HSSFAnchor (Code) | | A client anchor is attached to an excel worksheet. It anchors against a
top-left and buttom-right cell.
author: Glen Stampoultzis (glens at apache.org) |
Constructor Summary | |
public | HSSFClientAnchor() Creates a new client anchor and defaults all the anchor positions to 0. | public | HSSFClientAnchor(int dx1, int dy1, int dx2, int dy2, short col1, int row1, short col2, int row2) Creates a new client anchor and sets the top-left and bottom-right
coordinates of the anchor. |
Method Summary | |
public float | getAnchorHeightInPoints(HSSFSheet sheet) Calculates the height of a client anchor in points. | public int | getAnchorType() Gets the anchor type
0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells. | public short | getCol1() | public short | getCol2() | public int | getRow1() | public int | getRow2() | public boolean | isHorizontallyFlipped() | public boolean | isVerticallyFlipped() | public void | setAnchor(short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2) Dets the top-left and bottom-right
coordinates of the anchor. | public void | setAnchorType(int anchorType) Sets the anchor type
0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells. | public void | setCol1(short col1) | public void | setCol2(short col2) | public void | setRow1(int row1) | public void | setRow2(int row2) |
anchorType | int anchorType(Code) | | |
HSSFClientAnchor | public HSSFClientAnchor()(Code) | | Creates a new client anchor and defaults all the anchor positions to 0.
|
HSSFClientAnchor | public HSSFClientAnchor(int dx1, int dy1, int dx2, int dy2, short col1, int row1, short col2, int row2)(Code) | | Creates a new client anchor and sets the top-left and bottom-right
coordinates of the anchor.
Parameters: dx1 - the x coordinate within the first cell. Parameters: dy1 - the y coordinate within the first cell. Parameters: dx2 - the x coordinate within the second cell. Parameters: dy2 - the y coordinate within the second cell. Parameters: col1 - the column (0 based) of the first cell. Parameters: row1 - the row (0 based) of the first cell. Parameters: col2 - the column (0 based) of the second cell. Parameters: row2 - the row (0 based) of the second cell. |
getAnchorHeightInPoints | public float getAnchorHeightInPoints(HSSFSheet sheet)(Code) | | Calculates the height of a client anchor in points.
Parameters: sheet - the sheet the anchor will be attached to the shape height. |
getAnchorType | public int getAnchorType()(Code) | | Gets the anchor type
0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells.
|
getCol1 | public short getCol1()(Code) | | |
getCol2 | public short getCol2()(Code) | | |
getRow1 | public int getRow1()(Code) | | |
getRow2 | public int getRow2()(Code) | | |
isHorizontallyFlipped | public boolean isHorizontallyFlipped()(Code) | | true if the anchor goes from right to left. |
isVerticallyFlipped | public boolean isVerticallyFlipped()(Code) | | true if the anchor goes from bottom to top. |
setAnchor | public void setAnchor(short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2)(Code) | | Dets the top-left and bottom-right
coordinates of the anchor.
Parameters: x1 - the x coordinate within the first cell. Parameters: y1 - the y coordinate within the first cell. Parameters: x2 - the x coordinate within the second cell. Parameters: y2 - the y coordinate within the second cell. Parameters: col1 - the column (0 based) of the first cell. Parameters: row1 - the row (0 based) of the first cell. Parameters: col2 - the column (0 based) of the second cell. Parameters: row2 - the row (0 based) of the second cell. |
setAnchorType | public void setAnchorType(int anchorType)(Code) | | Sets the anchor type
0 = Move and size with Cells, 2 = Move but don't size with cells, 3 = Don't move or size with cells.
|
setCol1 | public void setCol1(short col1)(Code) | | |
setCol2 | public void setCol2(short col2)(Code) | | |
setRow1 | public void setRow1(int row1)(Code) | | |
setRow2 | public void setRow2(int row2)(Code) | | |
|
|