⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 statusapp.java

📁 world wind java sdk 源码
💻 JAVA
字号:
/*Copyright (C) 2001, 2008 United States Governmentas represented by the Administrator of theNational Aeronautics and Space Administration.All Rights Reserved.*/package gov.nasa.worldwind.examples;import gov.nasa.worldwind.examples.util.StatusLayer;import gov.nasa.worldwind.layers.*;/** * @author jparsons * @version $Id$ */public class StatusApp extends ApplicationTemplate{    public static class AppFrame extends ApplicationTemplate.AppFrame    {        protected StatusLayer layer;        public AppFrame() throws IllegalAccessException, InstantiationException, ClassNotFoundException        {            super(false, true, false);            //Remove scalebar for this example            LayerList layers = this.getWwd().getModel().getLayers();            for (Layer layer1 : layers)            {                if (layer1 instanceof ScalebarLayer)                    layer1.setEnabled(false);            }            this.layer = new StatusLayer();            //this.layer = new StatusMGRSLayer();            //this.layer = new StatusUTMLayer();            layer.setEventSource(this.getWwd());            layer.setCoordDecimalPlaces(2);  // default is 4            //layer.setElevationUnits(StatusLayer.UNIT_IMPERIAL);            insertBeforeCompass(this.getWwd(), layer);        }    }        public static void main(String[] args)        {            ApplicationTemplate.start("StatusLayer", AppFrame.class);        }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -