Enum Class TLspContinuousLabelingAlgorithm.LabelMovementBehavior
java.lang.Object
java.lang.Enum<TLspContinuousLabelingAlgorithm.LabelMovementBehavior>
com.luciad.realtime.lightspeed.labeling.TLspContinuousLabelingAlgorithm.LabelMovementBehavior
- All Implemented Interfaces:
Serializable
,Comparable<TLspContinuousLabelingAlgorithm.LabelMovementBehavior>
,Constable
- Enclosing class:
TLspContinuousLabelingAlgorithm
public static enum TLspContinuousLabelingAlgorithm.LabelMovementBehavior
extends Enum<TLspContinuousLabelingAlgorithm.LabelMovementBehavior>
Indicates when labels should be moved.
- Since:
- 2012.1
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUse this to avoid moving labels as much as possible.Use this to ensure an optimal spread of labels across the screen.Use this to avoid moving labels, but keep them close to their object. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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
-
MINIMAL_MOVEMENT
Use this to avoid moving labels as much as possible. Labels are only moved if they overlap with another label. Once the overlap ends, the labels stay in their last position. -
REDUCED_MOVEMENT
Use this to avoid moving labels, but keep them close to their object. Labels are attracted to their desired location (seeTLspContinuousLabelingAlgorithm.setDesiredRelativeLocation(java.awt.Point)
). Two labels are repelled from each-other only when they overlap. -
OPTIMAL_SPREAD
Use this to ensure an optimal spread of labels across the screen. Labels are attracted to their desired location (seeTLspContinuousLabelingAlgorithm.setDesiredRelativeLocation(java.awt.Point)
). Also, two labels are repelled from each-other if they are nearby.
-
-
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
-