Revision 9393 branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/gui/dialogs/FFrameGraphicsDialog.java
FFrameGraphicsDialog.java | ||
---|---|---|
154 | 154 |
updateControls(false); // Para que lo que haya en |
155 | 155 |
} |
156 | 156 |
newFFrameGraphics=(FFrameGraphics)fframegraphics.cloneFFrame(m_layout); |
157 |
FFrameGraphics fframeAux=(FFrameGraphics)fframegraphics.cloneFFrame(m_layout); |
|
158 |
fframeAux.setBoundBox(fframegraphics.getBoundBox()); |
|
159 |
if (getFSymbol().getSymbolType() == FConstant.SYMBOL_TYPE_POINT) |
|
160 |
fframeAux.setSize(FLayoutUtilities.toSheetDistance(Integer.parseInt(getJTextField().getText()),m_layout.getAT())); |
|
161 |
fframeAux.setFSymbol(getFSymbol()); |
|
162 |
fframeAux.setRotation(getPRotation().getRotation()); |
|
163 |
boolean exists=m_layout.getEFS().modifyFFrame(fframegraphics,fframeAux); |
|
164 |
if (!exists) { |
|
165 | 157 |
newFFrameGraphics.setBoundBox(fframegraphics.getBoundBox()); |
166 | 158 |
if (getFSymbol().getSymbolType() == FConstant.SYMBOL_TYPE_POINT) |
167 | 159 |
newFFrameGraphics.setSize(FLayoutUtilities.toSheetDistance(Integer.parseInt(getJTextField().getText()),m_layout.getAT())); |
168 | 160 |
newFFrameGraphics.setFSymbol(getFSymbol()); |
169 | 161 |
newFFrameGraphics.setRotation(getPRotation().getRotation()); |
170 |
} |
|
171 | 162 |
m_layout.updateFFrames(); |
172 |
//m_layout.refresh();
|
|
163 |
m_layout.refresh(); |
|
173 | 164 |
isAcepted = true; |
174 | 165 |
PluginServices.getMDIManager().closeWindow(FFrameGraphicsDialog.this); |
175 | 166 |
|
Also available in: Unified diff