Revision 7659 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/v02/FSymbol.java
FSymbol.java | ||
---|---|---|
53 | 53 |
import java.awt.Image; |
54 | 54 |
import java.awt.Paint; |
55 | 55 |
import java.awt.Rectangle; |
56 |
import java.awt.Shape; |
|
56 | 57 |
import java.awt.Stroke; |
58 |
import java.awt.geom.AffineTransform; |
|
57 | 59 |
import java.awt.image.BufferedImage; |
58 | 60 |
import java.awt.image.ImageObserver; |
59 | 61 |
import java.net.MalformedURLException; |
... | ... | |
64 | 66 |
|
65 | 67 |
import com.iver.cit.gvsig.fmap.core.FShape; |
66 | 68 |
import com.iver.cit.gvsig.fmap.core.ISLDCompatible; |
69 |
import com.iver.cit.gvsig.fmap.core.ISymbol; |
|
67 | 70 |
import com.iver.cit.gvsig.fmap.core.SLDTags; |
68 | 71 |
import com.iver.cit.gvsig.fmap.core.SLDUtils; |
69 | 72 |
import com.iver.cit.gvsig.fmap.rendering.XmlBuilder; |
... | ... | |
77 | 80 |
* |
78 | 81 |
* @author Vicente Caballero Navarro |
79 | 82 |
*/ |
80 |
public class FSymbol implements ISLDCompatible{ |
|
83 |
public class FSymbol implements ISymbol, ISLDCompatible{
|
|
81 | 84 |
private static BufferedImage img = new BufferedImage(1, 1, |
82 | 85 |
BufferedImage.TYPE_INT_ARGB); |
83 | 86 |
private static Rectangle rect = new Rectangle(0, 0, 1, 1); |
... | ... | |
393 | 396 |
* |
394 | 397 |
* @return rgb del s?mbolo. |
395 | 398 |
*/ |
396 |
public int getRgb() { |
|
399 |
public int getOnePointRgb() {
|
|
397 | 400 |
return rgb; |
398 | 401 |
} |
399 | 402 |
|
... | ... | |
1221 | 1224 |
this.imgObserver = imgObserver; |
1222 | 1225 |
} |
1223 | 1226 |
|
1227 |
public ISymbol getSymbolForSelection() { |
|
1228 |
return FSymbol.getSymbolForSelection(this); |
|
1229 |
} |
|
1230 |
|
|
1231 |
public void draw(Graphics2D g, AffineTransform affineTransform, Shape shp) { |
|
1232 |
FGraphicUtilities.DrawShape(g, affineTransform, (FShape) shp, this); |
|
1233 |
} |
|
1234 |
|
|
1235 |
/* (non-Javadoc) |
|
1236 |
* @see com.iver.cit.gvsig.fmap.core.ISymbol#getPixExtentPlus(java.awt.Graphics2D, java.awt.geom.AffineTransform, java.awt.Shape) |
|
1237 |
*/ |
|
1238 |
public int getPixExtentPlus(Graphics2D g, AffineTransform affineTransform, Shape shp) { |
|
1239 |
// TODO Auto-generated method stub |
|
1240 |
// Por ahora cero, pero habr? que revisar esto. |
|
1241 |
return 0; |
|
1242 |
} |
|
1243 |
|
|
1224 | 1244 |
} |
Also available in: Unified diff