Package org.geotools.renderer.label
Class LabelIndex
Object
LabelIndex
Stores label items and helps in finding the interferering ones, either by pure overlap or within a certain distance
from the specified bounds
- Author:
- Andrea Aime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLabel(LabelCacheItem item, Rectangle2D bounds) Adds a label into the indexbooleanlabelsWithinDistance(Rectangle2D bounds, double distance) Returns true if there is any label in the index within the specified distance from the bounds.voidreserveArea(List<Rectangle2D> reserved) Reserve the area indicated by these Geometry.
-
Constructor Details
-
LabelIndex
public LabelIndex()
-
-
Method Details
-
labelsWithinDistance
Returns true if there is any label in the index within the specified distance from the bounds. For speed reasons the bounds will be simply expanded by the distance, no curved buffer will be generated -
addLabel
Adds a label into the index -
reserveArea
Reserve the area indicated by these Geometry.
-