Package org.jpedal.constants
Enum Class Anchor
- All Implemented Interfaces:
Serializable,Comparable<Anchor>,Constable
Represents the reference point (anchor) used when scaling or transforming a rectangular box.
The anchor determines the fixed point of the box during scaling, with the rest of the box
expanding or contracting relative to it.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBox scales relative to the midpoint of its bottom edge.Box scales relative to its bottom-left corner.Box scales relative to its bottom-right corner.Box scales relative to its center point.Box scales relative to the midpoint of its left edge.Box scales relative to the midpoint of its right edge.Box scales relative to the midpoint of its top edge.Box scales relative to its top-left corner.Box scales relative to its top-right corner. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CENTER
Box scales relative to its center point. -
TOP
Box scales relative to the midpoint of its top edge. -
LEFT
Box scales relative to the midpoint of its left edge. -
BOTTOM
Box scales relative to the midpoint of its bottom edge. -
RIGHT
Box scales relative to the midpoint of its right edge. -
TOP_LEFT
Box scales relative to its top-left corner. -
TOP_RIGHT
Box scales relative to its top-right corner. -
BOTTOM_LEFT
Box scales relative to its bottom-left corner. -
BOTTOM_RIGHT
Box scales relative to its bottom-right corner.
-
-
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
-