Package com.luciad.view.lightspeed.label
Class ILspLabelConflictChecker.Conflict
java.lang.Object
com.luciad.view.lightspeed.label.ILspLabelConflictChecker.Conflict
- Enclosing interface:
ILspLabelConflictChecker
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.
- Since:
- 2012.0
-
Constructor Summary
ConstructorDescriptionConflict
(boolean aOutsideView, boolean aPartiallyOutsideView, boolean aOverlapWithBounds, boolean aOverlapWithObstacles) Create a new conflict with the given info. -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.
-
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.
-