Enum Class ClientAnchor.AnchorType
- All Implemented Interfaces:
Serializable
,Comparable<ClientAnchor.AnchorType>
,Constable
- Enclosing interface:
- ClientAnchor
- Since:
- POI 3.14beta1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDo Not Move or Resize With Underlying Rows/Columns (3)Don't Move but do Resize With Anchor Cells (1)Move and Resize With Anchor Cells (0)Move With Cells but Do Not Resize (2) -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientAnchor.AnchorType
byId
(int value) return the AnchorType corresponding to the codestatic ClientAnchor.AnchorType
Returns the enum constant of this class with the specified name.static ClientAnchor.AnchorType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MOVE_AND_RESIZE
Move and Resize With Anchor Cells (0)Specifies that the current drawing shall move and resize to maintain its row and column anchors (i.e. the object is anchored to the actual from and to row and column)
-
DONT_MOVE_DO_RESIZE
Don't Move but do Resize With Anchor Cells (1)Specifies that the current drawing shall not move with its row and column, but should be resized. This option is not normally used, but is included for completeness.
Note: Excel has no setting for this combination, nor does the ECMA standard. -
MOVE_DONT_RESIZE
Move With Cells but Do Not Resize (2)Specifies that the current drawing shall move with its row and column (i.e. the object is anchored to the actual from row and column), but that the size shall remain absolute.
If additional rows/columns are added between the from and to locations of the drawing, the drawing shall move its to anchors as needed to maintain this same absolute size.
-
DONT_MOVE_AND_RESIZE
Do Not Move or Resize With Underlying Rows/Columns (3)Specifies that the current start and end positions shall be maintained with respect to the distances from the absolute start point of the worksheet.
If additional rows/columns are added before the drawing, the drawing shall move its anchors as needed to maintain this same absolute position.
-
-
Field Details
-
value
public final short value
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
byId
return the AnchorType corresponding to the code- Parameters:
value
- the anchor type code- Returns:
- the anchor type enum
-