Revision 9524 branches/piloto3d/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/v02/FLabel.java
FLabel.java | ||
---|---|---|
48 | 48 |
|
49 | 49 |
import java.awt.Color; |
50 | 50 |
import java.awt.Font; |
51 |
import java.awt.Graphics2D; |
|
52 |
import java.awt.Shape; |
|
51 | 53 |
import java.awt.geom.AffineTransform; |
52 | 54 |
import java.awt.geom.Point2D; |
53 | 55 |
import java.awt.geom.Rectangle2D; |
... | ... | |
57 | 59 |
import com.iver.cit.gvsig.fmap.ViewPort; |
58 | 60 |
import com.iver.cit.gvsig.fmap.core.FPoint2D; |
59 | 61 |
import com.iver.cit.gvsig.fmap.core.FShape; |
62 |
import com.iver.cit.gvsig.fmap.core.ISymbol; |
|
60 | 63 |
import com.iver.utiles.XMLEntity; |
61 | 64 |
import com.vividsolutions.jts.geom.Geometry; |
62 | 65 |
import com.vividsolutions.jts.geom.Point; |
... | ... | |
395 | 398 |
return font.deriveFont(alturaPixels); |
396 | 399 |
} |
397 | 400 |
|
401 |
/** |
|
402 |
* Por ahora, para extender el renderizado de etiquetas, habr?a que |
|
403 |
* crear otro FLabel y reimplementar este m?todo para que haga caso |
|
404 |
* a otros s?mbolos. Es decir, NO usar FGraphicUtilities |
|
405 |
* @param g |
|
406 |
* @param affineTransform |
|
407 |
* @param theShape |
|
408 |
* @param theSymbol |
|
409 |
*/ |
|
410 |
public void draw(Graphics2D g, AffineTransform affineTransform, Shape theShape, ISymbol theSymbol) { |
|
411 |
FGraphicUtilities.DrawLabel(g, affineTransform, |
|
412 |
(FShape) theShape, (FSymbol) theSymbol, this); |
|
413 |
|
|
414 |
|
|
415 |
} |
|
416 |
|
|
398 | 417 |
} |
Also available in: Unified diff