Revision 3610 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/fframes/FFrameSymbol.java
FFrameSymbol.java | ||
---|---|---|
44 | 44 |
*/ |
45 | 45 |
package com.iver.cit.gvsig.gui.layout.fframes; |
46 | 46 |
|
47 |
import java.awt.Graphics2D; |
|
48 |
import java.awt.Rectangle; |
|
49 |
import java.awt.geom.AffineTransform; |
|
50 |
import java.awt.geom.Rectangle2D; |
|
51 |
import java.awt.image.BufferedImage; |
|
47 |
import com.iver.andami.PluginServices; |
|
52 | 48 |
|
53 |
import com.iver.andami.PluginServices; |
|
54 | 49 |
import com.iver.cit.gvsig.fmap.DriverException; |
55 | 50 |
import com.iver.cit.gvsig.fmap.core.v02.FGraphicUtilities; |
56 | 51 |
import com.iver.cit.gvsig.fmap.core.v02.FSymbol; |
57 | 52 |
import com.iver.cit.gvsig.gui.layout.Layout; |
58 | 53 |
import com.iver.cit.gvsig.gui.project.SaveException; |
54 |
|
|
59 | 55 |
import com.iver.utiles.XMLEntity; |
60 | 56 |
|
57 |
import java.awt.Graphics2D; |
|
58 |
import java.awt.Rectangle; |
|
59 |
import java.awt.geom.AffineTransform; |
|
60 |
import java.awt.geom.Rectangle2D; |
|
61 |
import java.awt.image.BufferedImage; |
|
61 | 62 |
|
63 |
|
|
62 | 64 |
/** |
63 | 65 |
* FFrame para introducir una S?mbolo en el Layout. |
64 | 66 |
* |
... | ... | |
66 | 68 |
*/ |
67 | 69 |
public class FFrameSymbol extends FFrame { |
68 | 70 |
private FSymbol m_Symbol; |
71 |
|
|
69 | 72 |
/** |
70 | 73 |
* Crea un nuevo FFrameSymbol. |
71 | 74 |
*/ |
... | ... | |
113 | 116 |
} |
114 | 117 |
|
115 | 118 |
/** |
116 |
* @throws SaveException |
|
119 |
* DOCUMENT ME! |
|
120 |
* |
|
121 |
* @return DOCUMENT ME! |
|
122 |
* |
|
123 |
* @throws SaveException |
|
124 |
* |
|
117 | 125 |
* @see com.iver.cit.gvsig.gui.layout.fframes.IFFrame#getXMLEntity() |
118 | 126 |
*/ |
119 | 127 |
public XMLEntity getXMLEntity() throws SaveException { |
120 |
XMLEntity xml = new XMLEntity(); |
|
121 |
try{ |
|
122 |
xml.putProperty("className", this.getClass().getName()); |
|
123 |
xml.putProperty("m_name", m_name); |
|
124 |
xml.putProperty("x", getBoundBox().x); |
|
125 |
xml.putProperty("y", getBoundBox().y); |
|
126 |
xml.putProperty("w", getBoundBox().width); |
|
127 |
xml.putProperty("h", getBoundBox().height); |
|
128 |
xml.putProperty("m_Selected", m_Selected); |
|
129 |
xml.putProperty("type", Layout.RECTANGLESYMBOL); |
|
130 |
xml.putProperty("tag", getTag()); |
|
131 |
xml.putProperty("m_rotation", getRotation()); |
|
132 |
xml.addChild(m_Symbol.getXMLEntity()); |
|
133 |
}catch (Exception e) { |
|
134 |
throw new SaveException(e,this.getClass().getName()); |
|
135 |
} |
|
128 |
XMLEntity xml = super.getXMLEntity(); |
|
129 |
|
|
130 |
try { |
|
131 |
xml.putProperty("type", Layout.RECTANGLESYMBOL); |
|
132 |
xml.addChild(m_Symbol.getXMLEntity()); |
|
133 |
} catch (Exception e) { |
|
134 |
throw new SaveException(e, this.getClass().getName()); |
|
135 |
} |
|
136 |
|
|
136 | 137 |
return xml; |
137 | 138 |
} |
138 | 139 |
|
Also available in: Unified diff