Class ILspLabelConflictChecker.Conflict

java.lang.Object
com.luciad.view.lightspeed.label.ILspLabelConflictChecker.Conflict
Enclosing interface:
ILspLabelConflictChecker

public static class ILspLabelConflictChecker.Conflict extends Object
This class represents a conflict. A conflict contains information about one or more causes of the conflict :
  • The given bounds were outside the view.
  • The given bounds were partially outside the view.
  • The given bounds overlap with other bounds.
  • The given bounds overlap with an obstacle.
This class can be extended to add extra conflict information.
Since:
2012.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    Conflict(boolean aOutsideView, boolean aPartiallyOutsideView, boolean aOverlapWithBounds, boolean aOverlapWithObstacles)
    Create a new conflict with the given info.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns if the given bounds are completely outside the view.
    boolean
    Returns if the given bounds overlap with one or more obstacles.
    boolean
    Returns if the given bounds overlap with one or more other label placements.
    boolean
    Returns if the given bounds are partially outside the view.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Conflict

      public Conflict(boolean aOutsideView, boolean aPartiallyOutsideView, boolean aOverlapWithBounds, boolean aOverlapWithObstacles)
      Create a new conflict with the given info.
      Parameters:
      aOutsideView - denotes that the given bounds are completely outside the view.
      aPartiallyOutsideView - denotes that the given bounds are partially outside the view.
      aOverlapWithBounds - denotes that the given bounds overlap with one or more other bounds.
      aOverlapWithObstacles - denotes that the given bounds overlap with one or more obstacles.
  • Method Details

    • isOutsideView

      public boolean isOutsideView()
      Returns if the given bounds are completely outside the view.
      Returns:
      if the given bounds are completely outside the view.
    • isPartiallyOutsideView

      public boolean isPartiallyOutsideView()
      Returns if the given bounds are partially outside the view.
      Returns:
      if the given bounds are partially outside the view.
    • isOverlapWithPlacements

      public boolean isOverlapWithPlacements()
      Returns if the given bounds overlap with one or more other label placements.
      Returns:
      if the given bounds overlap with one or more other label placements.
    • isOverlapWithObstacles

      public boolean isOverlapWithObstacles()
      Returns if the given bounds overlap with one or more obstacles.
      Returns:
      if the given bounds overlap with one or more obstacles.