Revision 19344 trunk/extensions/extSymbology/src/org/gvsig/symbology/fmap/labeling/GeneralLabelingStrategy.java
GeneralLabelingStrategy.java | ||
---|---|---|
107 | 107 |
*/ |
108 | 108 |
package org.gvsig.symbology.fmap.labeling; |
109 | 109 |
|
110 |
import java.awt.Color; |
|
110 | 111 |
import java.awt.Graphics2D; |
111 | 112 |
import java.awt.geom.Rectangle2D; |
112 | 113 |
import java.awt.image.BufferedImage; |
... | ... | |
127 | 128 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
128 | 129 |
import com.hardcode.gdbms.engine.values.Value; |
129 | 130 |
import com.iver.cit.gvsig.fmap.ViewPort; |
131 |
import com.iver.cit.gvsig.fmap.core.FPoint2D; |
|
130 | 132 |
import com.iver.cit.gvsig.fmap.core.FShape; |
131 | 133 |
import com.iver.cit.gvsig.fmap.core.IFeature; |
132 | 134 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
135 |
import com.iver.cit.gvsig.fmap.core.symbols.SimpleMarkerSymbol; |
|
133 | 136 |
import com.iver.cit.gvsig.fmap.core.v02.FConverter; |
134 | 137 |
import com.iver.cit.gvsig.fmap.drivers.IFeatureIterator; |
135 | 138 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
... | ... | |
291 | 294 |
BufferedImage bi = bis[j]; |
292 | 295 |
if (!isOverlapping(bi, lc.getShape(labelMetrics))) { |
293 | 296 |
lc.draw(g, labelMetrics); |
297 |
SimpleMarkerSymbol sms = new SimpleMarkerSymbol(); |
|
298 |
sms.setSize(5); |
|
299 |
sms.setColor(Color.YELLOW); |
|
300 |
sms.draw(g, null, new FPoint2D(labelMetrics.getAnchor()), null); |
|
294 | 301 |
return true; |
295 | 302 |
} |
296 | 303 |
} |
... | ... | |
298 | 305 |
lc.draw(g, labelMetrics); |
299 | 306 |
return true; |
300 | 307 |
} |
301 |
} |
|
308 |
}
|
|
302 | 309 |
return false; |
303 | 310 |
} |
304 | 311 |
|
Also available in: Unified diff