Module com.esri.arcgisruntime
Enum Class LabelLineConnection
- All Implemented Interfaces:
Serializable
,Comparable<LabelLineConnection>
,Constable
The strategy for whether line features with the same label, and matching end vertices, should be joined before
sharing a label.
- Since:
- 100.11.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe default approach for connectable features is to connect them (MINIMIZE_LABELS
).Line geometries with the same label and coincident end vertices should be considered together as a single, continuous geometry when placing labels.Keep one label per line feature geometry.Line geometries with the same label and coincident end vertices should be joined, until they hit a junction. -
Method Summary
Modifier and TypeMethodDescriptionstatic LabelLineConnection
Returns the enum constant of this class with the specified name.static LabelLineConnection[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTOMATIC
The default approach for connectable features is to connect them (MINIMIZE_LABELS
).This value corresponds to no value being specified for a
LabelDefinition.getLineConnection()
property.- Since:
- 100.11.0
-
MINIMIZE_LABELS
Line geometries with the same label and coincident end vertices should be considered together as a single, continuous geometry when placing labels.For example, if a single label is being placed on a line feature, then the single location will be chosen along the combined geometries. This combining will ignore junctions, so it may be ambiguous which line feature after a junction is the continuation of the earlier geometry.
- Since:
- 100.11.0
-
NONE
Keep one label per line feature geometry.- Since:
- 100.11.0
-
UNAMBIGUOUS_LABELS
Line geometries with the same label and coincident end vertices should be joined, until they hit a junction.For example, if a single label is being placed on a line geometry (composed of multiple features' geometries, but all having the same label text), then a label will be placed on both sides of any junction, to make it unambiguous which geometries are the continuation of the initial geometry.
- Since:
- 100.11.0
-
-
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
-