从2.0升级到2.1
模块引入问题
作为module载入intellij中,删除对xerces_2_5_0.jar的引用
代码修订
package gov.nasa.worldwindx.applications.worldwindow.features.swinglayermanager
1.LayerManagerPanel
private LayerTree layerTree;
private boolean on = false;
变为 protected
package gov.nasa.worldwind.layers.mercator
主要用于对MercatorTiledImageLayer图层数据的批量下载
1.BasicMercatorTiledImageLayer
private static class DownloadPostProcessor implements
变为public
该类中的private final MercatorTextureTile tile;变更为protected
private final Object fileLock = new Object();
变为public
private boolean isTextureExpired(
变为public
2.MercatorTiledImageLayer
private final LevelSet levels;
变为protected
protected LevelSet getLevels()
变为public
public int computeLevelForResolution(Sector sector, Globe globe,
double resolution)
注释掉参数Globe globe及其后的内容
if (globe == null)
{
String message = Logging.getMessage(“nullValue.GlobeIsNull”);
Logging.logger().severe(message);
throw new IllegalStateException(message);
}
package gov.nasa.worldwind
主要用于自定义模型中,如果不需要自定义模型,没有必要进行修订
1.BasicModel
构造函数中,
if (globeName == null)
return;
变更为
if (globeName == null || globeName == “”)
return;
本文档详细介绍了NASA WorldWind从2.0版本升级到2.1版本的过程,包括模块引入、代码修订等内容。特别强调了对特定类和方法的可见性调整,以及对某些类成员的访问控制更改。

247

被折叠的 条评论
为什么被折叠?



