|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.renderer.label.LabelIndex
public class LabelIndex
Stores label items and helps in finding the interferering ones, either by pure overlap or within a certain distance from the specified bounds
Constructor Summary | |
---|---|
LabelIndex()
|
Method Summary | |
---|---|
void |
addLabel(LabelCacheItem item,
java.awt.geom.Rectangle2D bounds)
Adds a label into the index |
boolean |
labelsWithinDistance(java.awt.geom.Rectangle2D bounds,
double distance)
Returns true if there is any label in the index within the specified distance from the bounds. |
void |
reserveArea(java.util.List<java.awt.geom.Rectangle2D> reserved)
Reserve the area indicated by these Geometry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelIndex()
Method Detail |
---|
public boolean labelsWithinDistance(java.awt.geom.Rectangle2D bounds, double distance)
bounds
- distance
-
public void addLabel(LabelCacheItem item, java.awt.geom.Rectangle2D bounds)
item
- bounds
- public void reserveArea(java.util.List<java.awt.geom.Rectangle2D> reserved)
reserved
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |