public class ViewAnchor extends Object implements Serializable
Constructor and Description |
---|
ViewAnchor(int rowIndex,
int columnIndex,
int width,
int height)
Create a view anchor with indexes for left-top corner cell, width, and height.
|
ViewAnchor(int rowIndex,
int columnIndex,
int xOffset,
int yOffset,
int width,
int height)
Create a view anchor with indexes for left-top corner cell, x and y offset in the cell, width, and height.
|
Modifier and Type | Method and Description |
---|---|
ViewAnchor |
cloneViewAnchor() |
int |
getColumnIndex() |
int |
getHeight() |
ViewAnchor |
getRightBottomAnchor(SSheet sheet) |
int |
getRowIndex() |
int |
getWidth()
Width of the anchor, in pixels.
|
int |
getXOffset()
The x offset to left border of the anchor's left-top cell.
|
int |
getYOffset()
The y offset to top border of the anchor's left-top cell.
|
void |
setColumnIndex(int columnIndex)
set the left-top cell's column index
|
void |
setHeight(int height)
set the height of the anchor in pixels.
|
void |
setRowIndex(int rowIndex)
set the left-top cell's row index
|
void |
setWidth(int width)
Set width of the anchor in pixels.
|
void |
setXOffset(int xOffset) |
void |
setYOffset(int yOffset) |
public ViewAnchor(int rowIndex, int columnIndex, int width, int height)
public ViewAnchor(int rowIndex, int columnIndex, int xOffset, int yOffset, int width, int height)
public int getRowIndex()
public void setRowIndex(int rowIndex)
public int getColumnIndex()
public void setColumnIndex(int columnIndex)
public int getXOffset()
public void setXOffset(int xOffset)
public int getYOffset()
public void setYOffset(int yOffset)
public int getWidth()
public void setWidth(int width)
width
- the width of the anchor in pixels.public int getHeight()
public void setHeight(int height)
height
- height of the anchor in pixelspublic ViewAnchor getRightBottomAnchor(SSheet sheet)
public ViewAnchor cloneViewAnchor()
Copyright © 2020. All rights reserved.