| Modifier and Type | Field and Description |
|---|---|
| private EscherClientAnchorRecord | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | HSSFClientAnchor(int
the x coordinate within the first cell. dx1, int the y coordinate within the first cell. dy1, int the x coordinate within the second cell. dx2, int the y coordinate within the second cell. dy2, short the column (0 based) of the first cell. col1, int the row (0 based) of the first cell. row1, short the column (0 based) of the second cell. col2, int the row (0 based) of the second cell. row2)Creates a new client anchor and sets the top-left and bottom-right coordinates of the anchor. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | createEscherAnchor()
Implements abstract org.
|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public float | Returns: the shape height.the sheet the anchor will be attached to sheet)Calculates the height of a client anchor in points. |
| public ClientAnchor. | Returns: the anchor typeImplements org. Gets the anchor type Changed from returning an int to an enum in POI 3.14 beta 1. |
| public short | Returns: the column(0 based) of the first cell.Implements org. Returns the column (0 based) of the first cell, or -1 if there is no top-left anchor cell. |
| public short | Returns: the column(0 based) of the first cell.Implements org. Returns the column (0 based) of the second cell, or -1 if there is no bottom-right anchor cell. |
| public int | getDx1()
Implements org. Returns the x coordinate within the first cell. |
| public int | getDx2()
Implements org. 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
|
| public int | getDy1()
Implements org. 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
|
| public int | getDy2()
Implements org. 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
|
| protected EscherRecord | |
| public int | Returns: the row(0 based) of the first cell.Implements org. Returns the row (0 based) of the first cell, or -1 if there is no bottom-right anchor cell. |
| public int | Returns: the row(0 based) of the second cell.Implements org. Returns the row (0 based) of the second cell, or -1 if there is no bottom-right anchor cell. |
| private float | |
| public int | |
| public boolean | isHorizontallyFlipped()
Implements abstract org.
|
| public boolean | isVerticallyFlipped()
Implements abstract org.
|
| public void | setAnchor(short
the column (0 based) of the first cell. col1, int the row (0 based) of the first cell. row1, int the x coordinate within the first cell. x1, int the y coordinate within the first cell. y1, short the column (0 based) of the second cell. col2, int the row (0 based) of the second cell. row2, int the x coordinate within the second cell. x2, int the y coordinate within the second cell. y2)Sets the top-left and bottom-right coordinates of the anchor. |
| public void | setAnchorType(ClientAnchor.
the anchor type to set anchorTypeImplements org. Sets the anchor type |
| public void | |
| public void | setCol1(int
0-based column of the first cell. col1)Implements org. Sets the column (0 based) of the first cell. |
| public void | |
| public void | setCol2(int
the column(0 based) of the second cell. col2)Implements org. Returns the column (0 based) of the second cell. |
| public void | setDx1(int
the x coordinate within the first cell dx1)Implements org. 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
|
| public void | setDx2(int
the x coordinate within the second cell dx2)Implements org. 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
|
| public void | setDy1(int
the y coordinate within the first cell dy1)Implements org. 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
|
| public void | setDy2(int
the y coordinate within the second cell dy2)Implements org. 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
|
| public void | setRow1(int
0-based row of the first cell. row1)Implements org. Returns the row (0 based) of the first cell. |
| public void | setRow2(int
the row(0 based) of the second cell. row2)Implements org. Returns the row (0 based) of the first cell. |
| private static int | Returns: The value represented bys.A 16-bit value intended to be interpreted as an unsigned integer. s)Given a 16-bit unsigned integer stored in a short, return the unsigned value. |
| _escherClientAnchor | back to summary |
|---|---|
| private EscherClientAnchorRecord _escherClientAnchor | |
| MAX_COL | back to summary |
|---|---|
| public static final int MAX_COL | |
| MAX_ROW | back to summary |
|---|---|
| public static final int MAX_ROW | |
| HSSFClientAnchor | back to summary |
|---|---|
| public HSSFClientAnchor(EscherClientAnchorRecord escherClientAnchorRecord) | |
| HSSFClientAnchor | back to summary |
|---|---|
| public HSSFClientAnchor() Creates a new client anchor and defaults all the anchor positions to 0. | |
| HSSFClientAnchor | back to summary |
|---|---|
| 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. Note Microsoft Excel seems to sometimes disallow higher y1 than y2 or higher x1 than x2, you might need to reverse them and draw shapes vertically or horizontally flipped!
| |
| checkRange | back to summary |
|---|---|
| private void checkRange(int value, int minRange, int maxRange, String varName) | |
| createEscherAnchor | back to summary |
|---|---|
| protected void createEscherAnchor() Implements abstract org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAnchorHeightInPoints | back to summary |
|---|---|
| public float getAnchorHeightInPoints(HSSFSheet sheet) Calculates the height of a client anchor in points.
| |
| getAnchorType | back to summary |
|---|---|
| public ClientAnchor. Implements org. Gets the anchor type Changed from returning an int to an enum in POI 3.14 beta 1.
| |
| getCol1 | back to summary |
|---|---|
| public short getCol1() Implements org. Doc from org. Returns the column (0 based) of the first cell, or -1 if there is no top-left anchor cell.
This is the case for absolute positioning
| |
| getCol2 | back to summary |
|---|---|
| public short getCol2() Implements org. Doc from org. Returns the column (0 based) of the second cell, or -1 if there is no bottom-right anchor cell.
This is the case for absolute positioning (
| |
| getDx1 | back to summary |
|---|---|
| public int getDx1() Implements org. Doc from org. Returns 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
| |
| getDx2 | back to summary |
|---|---|
| public int getDx2() Implements org. Doc from org. 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
| |
| getDy1 | back to summary |
|---|---|
| public int getDy1() Implements org. Doc from org. 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
| |
| getDy2 | back to summary |
|---|---|
| public int getDy2() Implements org. Doc from org. 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
| |
| getEscherAnchor | back to summary |
|---|---|
| protected EscherRecord getEscherAnchor() Implements abstract org.
| |
| getRow1 | back to summary |
|---|---|
| public int getRow1() Implements org. Doc from org. Returns the row (0 based) of the first cell, or -1 if there is no bottom-right anchor cell.
This is the case for absolute positioning (
| |
| getRow2 | back to summary |
|---|---|
| public int getRow2() Implements org. Doc from org. Returns the row (0 based) of the second cell, or -1 if there is no bottom-right anchor cell.
This is the case for absolute positioning (
| |
| getRowHeightInPoints | back to summary |
|---|---|
| private float getRowHeightInPoints(HSSFSheet sheet, int rowNum) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isHorizontallyFlipped | back to summary |
|---|---|
| public boolean isHorizontallyFlipped() Implements abstract org.
| |
| isVerticallyFlipped | back to summary |
|---|---|
| public boolean isVerticallyFlipped() Implements abstract org.
| |
| setAnchor | back to summary |
|---|---|
| public void setAnchor(short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2) Sets the top-left and bottom-right coordinates of the anchor. Note Microsoft Excel seems to sometimes disallow higher y1 than y2 or higher x1 than x2, you might need to reverse them and draw shapes vertically or horizontally flipped!
| |
| setAnchorType | back to summary |
|---|---|
| public void setAnchorType(ClientAnchor. Implements org. Sets the anchor type
| |
| setCol1 | back to summary |
|---|---|
public void setCol1(short col1)
| |
| setCol1 | back to summary |
|---|---|
| public void setCol1(int col1) Implements org. Doc from org. Sets the column (0 based) of the first cell.
| |
| setCol2 | back to summary |
|---|---|
public void setCol2(short col2)
| |
| setCol2 | back to summary |
|---|---|
| public void setCol2(int col2) Implements org. Doc from org. Returns the column (0 based) of the second cell.
| |
| setDx1 | back to summary |
|---|---|
| public void setDx1(int dx1) Implements org. Doc from org. 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
| |
| setDx2 | back to summary |
|---|---|
| public void setDx2(int dx2) Implements org. Doc from org. 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
| |
| setDy1 | back to summary |
|---|---|
| public void setDy1(int dy1) Implements org. Doc from org. 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
| |
| setDy2 | back to summary |
|---|---|
| public void setDy2(int dy2) Implements org. Doc from org. 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
| |
| setRow1 | back to summary |
|---|---|
| public void setRow1(int row1) Implements org. Doc from org. Returns the row (0 based) of the first cell.
| |
| setRow2 | back to summary |
|---|---|
| public void setRow2(int row2) Implements org. Doc from org. Returns the row (0 based) of the first cell.
| |
| unsignedValue | back to summary |
|---|---|
| private static int unsignedValue(final short s) Given a 16-bit unsigned integer stored in a short, return the unsigned value.
| |