Revision 6031 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/fframes/FFrameSymbol.java

View differences:

FFrameSymbol.java
44 44
 */
45 45
package com.iver.cit.gvsig.gui.layout.fframes;
46 46

  
47
import com.iver.andami.PluginServices;
48

  
49
import com.iver.cit.gvsig.fmap.DriverException;
50
import com.iver.cit.gvsig.fmap.core.v02.FGraphicUtilities;
51
import com.iver.cit.gvsig.fmap.core.v02.FSymbol;
52
import com.iver.cit.gvsig.gui.layout.Layout;
53
import com.iver.cit.gvsig.gui.project.SaveException;
54

  
55
import com.iver.utiles.XMLEntity;
56

  
57 47
import java.awt.Graphics2D;
58 48
import java.awt.Rectangle;
59 49
import java.awt.geom.AffineTransform;
60 50
import java.awt.geom.Rectangle2D;
61 51
import java.awt.image.BufferedImage;
62 52

  
53
import com.iver.andami.PluginServices;
54
import com.iver.cit.gvsig.fmap.DriverException;
55
import com.iver.cit.gvsig.fmap.core.v02.FGraphicUtilities;
56
import com.iver.cit.gvsig.gui.layout.Layout;
63 57

  
58

  
64 59
/**
65 60
 * FFrame para introducir una S?mbolo en el Layout.
66 61
 *
67 62
 * @author Vicente Caballero Navarro
68 63
 */
69
public class FFrameSymbol extends FFrame {
70
    private FSymbol m_Symbol;
64
public class FFrameSymbol extends FFrameGraphics {
65
    //private FSymbol m_Symbol;
71 66

  
72 67
    /**
73 68
     * Crea un nuevo FFrameSymbol.
74 69
     */
75 70
    public FFrameSymbol() {
71
    	super();
72
    	super.setType(Layout.RECTANGLESYMBOL);
76 73
    }
77 74

  
78 75
    /**
......
98 95
            Rectangle rec = new Rectangle((int) re.x, (int) re.y,
99 96
                    (int) (re.width), (int) (re.height));
100 97

  
101
            FGraphicUtilities.DrawSymbol((Graphics2D) g, mT2, rec, m_Symbol);
98
            FGraphicUtilities.DrawSymbol((Graphics2D) g, mT2, rec, getFSymbol());
102 99
        }
103 100

  
104 101
        g.rotate(Math.toRadians(-getRotation()), re.x + (re.width / 2),
......
106 103
    }
107 104

  
108 105
    /**
109
     * Pone el FSymbol.
110
     *
111
     * @param symbol
112
     * @param type Tipo de s?mbolo.
113
     */
114
    public void setSymbol(FSymbol symbol, int type) {
115
        m_Symbol = symbol;
116
    }
117

  
118
    /**
119 106
     * DOCUMENT ME!
120 107
     *
121 108
     * @return DOCUMENT ME!
......
124 111
     *
125 112
     * @see com.iver.cit.gvsig.gui.layout.fframes.IFFrame#getXMLEntity()
126 113
     */
127
    public XMLEntity getXMLEntity() throws SaveException {
114
  /*  public XMLEntity getXMLEntity() throws SaveException {
128 115
        XMLEntity xml = super.getXMLEntity();
129 116

  
130 117
        try {
......
136 123

  
137 124
        return xml;
138 125
    }
126
    */
139 127

  
140 128
    /**
141 129
     * @see com.iver.cit.gvsig.gui.layout.fframes.IFFrame#setXMLEntity(com.iver.utiles.XMLEntity,
142 130
     *      com.iver.cit.gvsig.project.Project)
143 131
     */
144
    public void setXMLEntity03(XMLEntity xml, Layout l) {
132
   /* public void setXMLEntity03(XMLEntity xml, Layout l) {
145 133
        if (xml.getIntProperty("m_Selected") != 0) {
146 134
            this.setSelected(true);
147 135
        } else {
......
150 138

  
151 139
        this.m_Symbol = FSymbol.createFromXML03(xml.getChild(0));
152 140
    }
153

  
141
*/
154 142
    /**
155 143
     * @see com.iver.cit.gvsig.gui.layout.fframes.IFFrame#setXMLEntity(com.iver.utiles.XMLEntity,
156 144
     *      com.iver.cit.gvsig.project.Project)
157 145
     */
158
    public void setXMLEntity(XMLEntity xml) {
146
/*    public void setXMLEntity(XMLEntity xml) {
159 147
        if (xml.getIntProperty("m_Selected") != 0) {
160 148
            this.setSelected(true);
161 149
        } else {
......
165 153
        setRotation(xml.getDoubleProperty("m_rotation"));
166 154
        this.m_Symbol = FSymbol.createFromXML(xml.getChild(0));
167 155
    }
168

  
156
*/
169 157
    /**
170 158
     * @see com.iver.cit.gvsig.gui.layout.fframes.IFFrame#getNameFFrame()
171 159
     */
......
187 175
     *
188 176
     * @return S?mbolo.
189 177
     */
190
    public FSymbol getFSymbol() {
178
   /* public FSymbol getFSymbol() {
191 179
        return m_Symbol;
192 180
    }
193

  
194
    /**
195
     * Inserta el s?mbolo al FFrame.
196
     *
197
     * @param symbol S?mbolo a insertar.
198
     */
199
    public void setFSymbol(FSymbol symbol) {
200
        m_Symbol = symbol;
201
    }
202

  
203
	public void initialize() {
181
*/
182
    public void initialize() {
204 183
		// TODO Auto-generated method stub
205 184

  
206 185
	}

Also available in: Unified diff