Enum Class RepeatImageElement.LineImageAlignment
java.lang.Object
java.lang.Enum<RepeatImageElement.LineImageAlignment>
org.openstreetmap.josm.gui.mappaint.styleelement.RepeatImageElement.LineImageAlignment
- All Implemented Interfaces:
Serializable,Comparable<RepeatImageElement.LineImageAlignment>,Constable
- Enclosing class:
- RepeatImageElement
public static enum RepeatImageElement.LineImageAlignment
extends Enum<RepeatImageElement.LineImageAlignment>
The side on which the image should be aligned to the line.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the alignment offset.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOP
Align it to the top side of the line -
CENTER
Align it to the center of the line -
BOTTOM
Align it to the bottom of the line
-
-
Field Details
-
alignmentOffset
-
-
Constructor Details
-
LineImageAlignment
-
-
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
-
getAlignmentOffset
Gets the alignment offset.- Returns:
- The offset relative to the image height compared to placing the image in the middle of the line.
-