|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface to maintain positioning information on a shape in the spreadsheet.
| Inner Class Summary | |
static class |
ShapeAnchor.EPlacement
The placement enumeration |
| Field Summary | |
static ShapeAnchor.EPlacement |
eFreeFloating
Free Floating - neither move nor size with cells. |
static ShapeAnchor.EPlacement |
eMove
Move with cells. |
static ShapeAnchor.EPlacement |
eMoveAndSize
Move and size with cells. |
| Method Summary | |
double |
getBottom()
Returns a value representing the bottom side of the client anchor. |
double |
getLeft()
Returns a value representing the left side of the client anchor. |
ShapeAnchor.EPlacement |
getPlacementStyle()
Returns the placement style. |
double |
getRight()
Returns a value representing the right side of the client anchor. |
double |
getTop()
Returns a value representing the top side of the client anchor. |
void |
setPlacementStyle(ShapeAnchor.EPlacement placementStyle)
Sets the placement style for the shape. |
void |
setPosition(double left,
double top,
double right,
double bottom)
Sets the position. |
| Field Detail |
public static final ShapeAnchor.EPlacement eFreeFloating
public static final ShapeAnchor.EPlacement eMove
public static final ShapeAnchor.EPlacement eMoveAndSize
| Method Detail |
public double getLeft()
public ShapeAnchor.EPlacement getPlacementStyle()
eFreeFloating
eMove
eMoveAndSizepublic double getRight()
public double getTop()
public double getBottom()
public void setPlacementStyle(ShapeAnchor.EPlacement placementStyle)
placementStyle - EPlacement.
eFreeFloating
eMove
eMoveAndSize
public void setPosition(double left,
double top,
double right,
double bottom)
throws InvalidArgumentException
left - left position. The whole part of the value is the column containing the left side, and the
fractional part of the value is the position of the left side within that column.top - top position. The whole part of the value is the row containing the top side, and the
fractional part of the value is the position of the top side within that row.right - right position. The whole part of the value is the column containing the right side, and the
fractional part of the value is the position of the right side within that column.bottom - bottom position. The whole part of the value is the row containing the bottom side, and the
fractional part of the value is the position of the bottom side within that row.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||