Enum Class ILspLabelPlacementEvaluator.PlacementResult

java.lang.Object
java.lang.Enum<ILspLabelPlacementEvaluator.PlacementResult>
com.luciad.view.lightspeed.label.algorithm.discrete.ILspLabelPlacementEvaluator.PlacementResult
All Implemented Interfaces:
Serializable, Comparable<ILspLabelPlacementEvaluator.PlacementResult>, Constable
Enclosing interface:
ILspLabelPlacementEvaluator

public static enum ILspLabelPlacementEvaluator.PlacementResult extends Enum<ILspLabelPlacementEvaluator.PlacementResult>
Placement result for a label. ALspDiscreteLabelingAlgorithm used this value to determine if a placement is valid or not, and if it should try to evaluate other placements or not.
Since:
2012.0
  • Enum Constant Details

    • SUCCESS

      public static final ILspLabelPlacementEvaluator.PlacementResult SUCCESS
      This placement result denotes that a placement is a valid placement, and can be used as placement for a label. When this result is returned, no other placements should be tried as this is a valid one.
    • FALLBACK

      public static final ILspLabelPlacementEvaluator.PlacementResult FALLBACK
      This placement result denotes that a placement is a valid placement, but a better placement is preferred. When this result is returned, other placements should be tried in order to find a better placement. When no better placement can be found, the fallback placement can be used as placement for a label.
    • TRY_NEW_PLACEMENT

      public static final ILspLabelPlacementEvaluator.PlacementResult TRY_NEW_PLACEMENT
      This placement result denotes that a placement is not a valid placement, and should not be used as placement for a label. When this result is returned, other placements should be tried in order to find a better placement. When no better placement can be found (and there is no fallback placement), no placement should be used for the label.
    • FAILED

      public static final ILspLabelPlacementEvaluator.PlacementResult FAILED
      This placement result denotes that a placement is not a valid placement, and that no other placement will be a valid placement. When this result is returned, no other placements should be tried in order to find a better placement. No placement should be used for the view representation.
  • 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 name
      NullPointerException - if the argument is null