Enum LabelLineConnection
- java.lang.Object
-
- java.lang.Enum<LabelLineConnection>
-
- com.esri.arcgisruntime.mapping.labeling.LabelLineConnection
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LabelLineConnection>
public enum LabelLineConnection extends java.lang.Enum<LabelLineConnection>
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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOMATIC
The default approach for connectable features is to connect them (MINIMIZE_LABELS
).MINIMIZE_LABELS
Line geometries with the same label and coincident end vertices should be considered together as a single, continuous geometry when placing labels.NONE
Keep one label per line feature geometry.UNAMBIGUOUS_LABELS
Line geometries with the same label and coincident end vertices should be joined, until they hit a junction.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LabelLineConnection
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LabelLineConnection[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTOMATIC
public static final LabelLineConnection 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
public static final LabelLineConnection 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
public static final LabelLineConnection NONE
Keep one label per line feature geometry.- Since:
- 100.11.0
-
UNAMBIGUOUS_LABELS
public static final LabelLineConnection 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 Detail
-
values
public static LabelLineConnection[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LabelLineConnection c : LabelLineConnection.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LabelLineConnection valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-