Package com.luciad.realtime.gxy.labeling
Enum Class TLcdGXYContinuousLabelingAlgorithm.LabelMovementBehavior
java.lang.Object
java.lang.Enum<TLcdGXYContinuousLabelingAlgorithm.LabelMovementBehavior>
com.luciad.realtime.gxy.labeling.TLcdGXYContinuousLabelingAlgorithm.LabelMovementBehavior
- All Implemented Interfaces:
Serializable
,Comparable<TLcdGXYContinuousLabelingAlgorithm.LabelMovementBehavior>
,Constable
- Enclosing class:
TLcdGXYContinuousLabelingAlgorithm
public static enum TLcdGXYContinuousLabelingAlgorithm.LabelMovementBehavior
extends Enum<TLcdGXYContinuousLabelingAlgorithm.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 (seeTLcdGXYContinuousLabelingAlgorithm.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 (seeTLcdGXYContinuousLabelingAlgorithm.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
-