Revision 29097 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/geom/utils/FLabel.java
FLabel.java | ||
---|---|---|
56 | 56 |
|
57 | 57 |
import org.apache.batik.ext.awt.geom.PathLength; |
58 | 58 |
import org.gvsig.fmap.geom.aggregate.MultiPoint; |
59 |
import org.gvsig.fmap.geom.exception.CreateGeometryException; |
|
59 | 60 |
import org.gvsig.fmap.geom.util.Converter; |
60 | 61 |
import org.gvsig.fmap.mapcontext.ViewPort; |
61 | 62 |
import org.gvsig.fmap.mapcontext.rendering.symbols.FGraphicUtilities; |
... | ... | |
297 | 298 |
* @param geom Geometry. |
298 | 299 |
* |
299 | 300 |
* @return nuevo FLabel creado. |
301 |
* @throws CreateGeometryException |
|
300 | 302 |
*/ |
301 |
public static FLabel createFLabel(org.gvsig.fmap.geom.Geometry geom) { |
|
303 |
public static FLabel createFLabel(org.gvsig.fmap.geom.Geometry geom) throws CreateGeometryException {
|
|
302 | 304 |
float angle; |
303 | 305 |
Point2D pAux = createLabelPoint(geom); |
304 | 306 |
|
... | ... | |
322 | 324 |
|
323 | 325 |
return label; |
324 | 326 |
} |
325 |
public static Point2D createLabelPoint(org.gvsig.fmap.geom.Geometry geom) { |
|
327 |
public static Point2D createLabelPoint(org.gvsig.fmap.geom.Geometry geom) throws CreateGeometryException {
|
|
326 | 328 |
Point2D pAux = null; |
327 | 329 |
switch (geom.getType()) { |
328 | 330 |
case org.gvsig.fmap.geom.Geometry.TYPES.POINT: |
Also available in: Unified diff