Enum LabelOverlapStrategy

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<LabelOverlapStrategy>

    public enum LabelOverlapStrategy
    extends java.lang.Enum<LabelOverlapStrategy>
    The strategy for whether another label is allowed to be placed over this feature or label.
    Since:
    100.11.0
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALLOW
      The other label will be allowed to place itself in its preferred location, ignoring this obstacle.
      AUTOMATIC
      The other label will use the default overlap behavior which depends on the object being overlapped.
      AVOID
      The other label will move to minimize overlapping this obstacle, but will overlap if necessary.
      EXCLUDE
      The other label will be not be placed rather than overlap this obstacle.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static LabelOverlapStrategy valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static LabelOverlapStrategy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • AUTOMATIC

        public static final LabelOverlapStrategy AUTOMATIC
        The other label will use the default overlap behavior which depends on the object being overlapped.

        This value corresponds to no value being specified for a LabelDefinition overlap property.

        Since:
        100.11.0
      • ALLOW

        public static final LabelOverlapStrategy ALLOW
        The other label will be allowed to place itself in its preferred location, ignoring this obstacle.
        Since:
        100.11.0
      • EXCLUDE

        public static final LabelOverlapStrategy EXCLUDE
        The other label will be not be placed rather than overlap this obstacle.

        The other label can only move if its LabelDefinition.getDeconflictionStrategy() allows. If it cannot move, or if there is no free position available, then the other label will not be placed.

        Since:
        100.11.0
    • Method Detail

      • values

        public static LabelOverlapStrategy[] 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 (LabelOverlapStrategy c : LabelOverlapStrategy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LabelOverlapStrategy 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 name
        java.lang.NullPointerException - if the argument is null