Revision 9392 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/gui/dialogs/FFrameGraphicsDialog.java
FFrameGraphicsDialog.java | ||
---|---|---|
50 | 50 |
import com.iver.andami.ui.mdiManager.WindowInfo; |
51 | 51 |
import com.iver.cit.gvsig.fmap.core.v02.FConstant; |
52 | 52 |
import com.iver.cit.gvsig.fmap.core.v02.FSymbol; |
53 |
import com.iver.cit.gvsig.gui.layout.Layout; |
|
54 |
import com.iver.cit.gvsig.gui.layout.fframes.FFrameGraphics; |
|
55 | 53 |
import com.iver.cit.gvsig.project.documents.layout.FLayoutUtilities; |
54 |
import com.iver.cit.gvsig.project.documents.layout.fframes.FFrameGraphics; |
|
56 | 55 |
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame; |
57 | 56 |
import com.iver.cit.gvsig.project.documents.layout.fframes.gui.JPRotation; |
57 |
import com.iver.cit.gvsig.project.documents.layout.gui.Layout; |
|
58 | 58 |
import com.iver.cit.gvsig.project.documents.view.legend.gui.FPanelLegendDefault; |
59 | 59 |
|
60 | 60 |
|
... | ... | |
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) { |
|
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.getLayoutControl().getAT()));
|
|
161 |
// fframeAux.setFSymbol(getFSymbol());
|
|
162 |
// fframeAux.setRotation(getPRotation().getRotation());
|
|
163 |
//boolean exists=m_layout.getLayoutContext().getEFS().modifyFFrame(fframegraphics,fframeAux);
|
|
164 |
//if (!exists) {
|
|
165 | 165 |
newFFrameGraphics.setBoundBox(fframegraphics.getBoundBox()); |
166 | 166 |
if (getFSymbol().getSymbolType() == FConstant.SYMBOL_TYPE_POINT) |
167 |
newFFrameGraphics.setSize(FLayoutUtilities.toSheetDistance(Integer.parseInt(getJTextField().getText()),m_layout.getAT())); |
|
167 |
newFFrameGraphics.setSize(FLayoutUtilities.toSheetDistance(Integer.parseInt(getJTextField().getText()),m_layout.getLayoutControl().getAT()));
|
|
168 | 168 |
newFFrameGraphics.setFSymbol(getFSymbol()); |
169 | 169 |
newFFrameGraphics.setRotation(getPRotation().getRotation()); |
170 |
} |
|
171 |
m_layout.updateFFrames(); |
|
172 |
//m_layout.refresh(); |
|
170 |
//} |
|
171 |
// boolean exists=m_layout.getLayoutContext().getEFS().modifyFFrame(fframegraphics,fframeAux); |
|
172 |
m_layout.getLayoutContext().updateFFrames(); |
|
173 |
m_layout.getLayoutControl().refresh(); |
|
173 | 174 |
isAcepted = true; |
174 | 175 |
PluginServices.getMDIManager().closeWindow(FFrameGraphicsDialog.this); |
175 | 176 |
|
Also available in: Unified diff