Revision 33261 trunk/extensions/extSymbology/src/org/gvsig/symbology/fmap/symbols/PictureMarkerSymbol.java
PictureMarkerSymbol.java | ||
---|---|---|
118 | 118 |
|
119 | 119 |
import org.apache.log4j.Logger; |
120 | 120 |
import org.gvsig.symbology.fmap.styles.BackgroundFileStyle; |
121 |
import org.gvsig.tools.file.PathGenerator; |
|
121 | 122 |
|
122 | 123 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
123 | 124 |
import com.iver.cit.gvsig.fmap.Messages; |
... | ... | |
147 | 148 |
|
148 | 149 |
private BackgroundFileStyle bgImage; |
149 | 150 |
private BackgroundFileStyle bgSelImage; |
151 |
private PathGenerator pathGenerator=PathGenerator.getInstance(); |
|
150 | 152 |
|
151 | 153 |
/** |
152 | 154 |
* Constructor method |
... | ... | |
237 | 239 |
xml.putProperty("className", getClassName()); |
238 | 240 |
xml.putProperty("isShapeVisible", isShapeVisible()); |
239 | 241 |
xml.putProperty("desc", getDescription()); |
240 |
xml.putProperty("imagePath", imagePath);
|
|
241 |
xml.putProperty("selImagePath", selImagePath);
|
|
242 |
xml.putProperty("imagePath", pathGenerator.getPath(imagePath));
|
|
243 |
xml.putProperty("selImagePath", pathGenerator.getPath(selImagePath));
|
|
242 | 244 |
xml.putProperty("size", getSize()); |
243 | 245 |
xml.putProperty("offsetX", getOffset().getX()); |
244 | 246 |
xml.putProperty("offsetY", getOffset().getY()); |
... | ... | |
260 | 262 |
public void setXMLEntity(XMLEntity xml) { |
261 | 263 |
setDescription(xml.getStringProperty("desc")); |
262 | 264 |
setIsShapeVisible(xml.getBooleanProperty("isShapeVisible")); |
263 |
imagePath = xml.getStringProperty("imagePath");
|
|
264 |
selImagePath = xml.getStringProperty("selImagePath");
|
|
265 |
imagePath = pathGenerator.getAbsolutePath(xml.getStringProperty("imagePath"));
|
|
266 |
selImagePath = pathGenerator.getAbsolutePath(xml.getStringProperty("selImagePath"));
|
|
265 | 267 |
setSize(xml.getDoubleProperty("size")); |
266 | 268 |
double offsetX = 0.0; |
267 | 269 |
double offsetY = 0.0; |
Also available in: Unified diff