Revision 2183 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/Layout.java
Layout.java | ||
---|---|---|
720 | 720 |
* Refresca el Layout. |
721 | 721 |
*/ |
722 | 722 |
public void refresh() { |
723 |
rect = m_attributes.obtainRect(false, rect, getWidth(), getHeight()); |
|
723 |
//rect = m_attributes.obtainRect(false, rect, getWidth(), getHeight());
|
|
724 | 724 |
status = DESACTUALIZADO; |
725 | 725 |
repaint(); |
726 | 726 |
} |
... | ... | |
1208 | 1208 |
} |
1209 | 1209 |
|
1210 | 1210 |
/** |
1211 |
* Crea un Objeto de esta clase a partir de la informaci?n del XMLEntity. |
|
1212 |
* |
|
1213 |
* @param xml XMLEntity |
|
1214 |
* @param p Proyecto. |
|
1215 |
* |
|
1216 |
* @return Objeto de esta clase. |
|
1217 |
*/ |
|
1218 |
public static Layout createLayout03(XMLEntity xml, Project p) { |
|
1219 |
Layout layout = new Layout(); |
|
1220 |
layout.isCuadricula = xml.getBooleanProperty("isCuadricula"); |
|
1221 |
layout.setName(xml.getStringProperty("m_name")); |
|
1222 |
layout.m_attributes = Attributes.createAtributes03(xml.getChild(0)); |
|
1223 |
|
|
1224 |
for (int i = 1; i < xml.getNumChild(); i++) { |
|
1225 |
if (xml.getChild(i).getStringProperty("className").equals("com.iver.cit.gvsig.gui.layout.fframe.FFrameView")) { |
|
1226 |
layout.addFFrame(FFrame.createFFrame03(xml.getChild(i), layout, p), |
|
1227 |
true); |
|
1228 |
} |
|
1229 |
} |
|
1230 |
|
|
1231 |
for (int i = 1; i < xml.getNumChild(); i++) { |
|
1232 |
if (!xml.getChild(i).getStringProperty("className").equals("com.iver.cit.gvsig.gui.layout.fframe.FFrameView")) { |
|
1233 |
layout.addFFrame(FFrame.createFFrame03(xml.getChild(i), layout, p), |
|
1234 |
true); |
|
1235 |
} |
|
1236 |
} |
|
1237 |
|
|
1238 |
return layout; |
|
1239 |
} |
|
1240 |
|
|
1241 |
/** |
|
1211 | 1242 |
* @see com.iver.mdiApp.ui.MDIManager.View#viewActivated() |
1212 | 1243 |
*/ |
1213 | 1244 |
public void viewActivated() { |
Also available in: Unified diff