Revision 21358 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/FLayoutGraphics.java

View differences:

FLayoutGraphics.java
84 84
	 * Transforma un FFrameLegend a FFrames de tipo FFrameSymbol y FFrameText.
85 85
	 */
86 86
	public void simplify() {
87
		layout.getLayoutContext().getEFS().startComplex();
87
		layout.getLayoutContext().getFrameCommandsRecord().startComplex();
88 88
		IFFrame[] fframes=layout.getLayoutContext().getFFrames();
89 89
		for (int i = fframes.length - 1; i >= 0; i--) {
90 90
			IFFrame fframe = fframes[i];
......
95 95
				}
96 96
			}
97 97
		}
98
		layout.getLayoutContext().getEFS().endComplex(PluginServices.getText(this,"simplify"));
98
		layout.getLayoutContext().getFrameCommandsRecord().endComplex(PluginServices.getText(this,"simplify"));
99 99
		layout.getLayoutControl().refresh();
100 100
	}
101 101

  
......
143 143
	 * FFrames individuales.
144 144
	 */
145 145
	public void ungrouping() {
146
		layout.getLayoutContext().getEFS().startComplex();
146
		layout.getLayoutContext().getFrameCommandsRecord().startComplex();
147 147
		IFFrame[] fframes=layout.getLayoutContext().getFFrames();
148 148
		for (int i = fframes.length - 1; i >= 0; i--) {
149 149
			IFFrame fframe = fframes[i];
......
167 167
				}
168 168
			}
169 169
		}
170
		layout.getLayoutContext().getEFS().endComplex(PluginServices.getText(this,"ungroup"));
170
		layout.getLayoutContext().getFrameCommandsRecord().endComplex(PluginServices.getText(this,"ungroup"));
171 171
		layout.getLayoutControl().refresh();
172 172
	}
173 173

  
......
182 182
	 * Posiciona los FFrames seleccionados delante de los no seleccionados.
183 183
	 */
184 184
	public void before() {
185
		layout.getLayoutContext().getEFS().startComplex();
185
		layout.getLayoutContext().getFrameCommandsRecord().startComplex();
186 186
		IFFrame[] fframes=layout.getLayoutContext().getFFrames();
187 187
		for (int i = fframes.length - 1; i >= 0; i--) {
188 188
			IFFrame fframe = fframes[i];
......
193 193

  
194 194
				IFFrame fframeAux=fframe.cloneFFrame(layout);
195 195
				fframeAux.setLevel(layout.getLayoutContext().getNumBefore());
196
				layout.getLayoutContext().getEFS().update(fframe,fframeAux);
196
				layout.getLayoutContext().getFrameCommandsRecord().update(fframe,fframeAux);
197 197
				fframeAux.getBoundingBox(layout.getLayoutControl().getAT());
198 198
			}
199 199
		}
200
		layout.getLayoutContext().getEFS().endComplex(PluginServices.getText(this,"change_before"));
200
		layout.getLayoutContext().getFrameCommandsRecord().endComplex(PluginServices.getText(this,"change_before"));
201 201
		layout.getLayoutContext().updateFFrames();
202 202
		layout.getLayoutControl().refresh();
203 203
	}
......
207 207
	 * seleccionados.
208 208
	 */
209 209
	public void behind() {
210
		layout.getLayoutContext().getEFS().startComplex();
210
		layout.getLayoutContext().getFrameCommandsRecord().startComplex();
211 211
		IFFrame[] fframes=layout.getLayoutContext().getFFrames();
212 212
		for (int i = fframes.length - 1; i >= 0; i--) {
213 213
			IFFrame fframe = fframes[i];
......
218 218

  
219 219
				IFFrame fframeAux=fframe.cloneFFrame(layout);
220 220
				fframeAux.setLevel(layout.getLayoutContext().getNumBehind());
221
				layout.getLayoutContext().getEFS().update(fframe,fframeAux);
221
				layout.getLayoutContext().getFrameCommandsRecord().update(fframe,fframeAux);
222 222
				fframeAux.getBoundingBox(layout.getLayoutControl().getAT());
223 223
			}
224 224
		}
225
		layout.getLayoutContext().getEFS().endComplex(PluginServices.getText(this,"change_behind"));
225
		layout.getLayoutContext().getFrameCommandsRecord().endComplex(PluginServices.getText(this,"change_behind"));
226 226
		layout.getLayoutContext().updateFFrames();
227 227
		layout.getLayoutControl().refresh();
228 228
	}
......
243 243
			if (fframeAux!=null) {
244 244
				if (fframeAux instanceof IFFrameUseFMap)
245 245
					((IFFrameUseFMap)fframeAux).refresh();
246
				layout.getLayoutContext().getEFS().update(frame,fframeAux);
246
				layout.getLayoutContext().getFrameCommandsRecord().update(frame,fframeAux);
247 247
				fframeAux.getBoundingBox(layout.getLayoutControl().getAT());
248 248
				layout.getLayoutContext().updateFFrames();
249 249
				layout.getLayoutControl().setIsReSel(true);

Also available in: Unified diff