One of world Wind Java development

Source: Internet
Author: User

We began to learn world wind Java development by referring to the "Java three-dimensional GIS development Guide CD-ROM" and the official website forum.

First Demo

Base class public class Vge_gfbasicclass extends jframe{protected Worldwindowglcanvas Worldwindowglcanvas;//worldwind     Canvas protected StatusBar statusbar;//status bar protected Model modelearth;protected Layerpanel Layerpanel; Layer Board public Vge_gfbasicclass () {//create canvas by specified size Dimension canvassize = new Dimension (+); This.worldwindowglcanvas = New Worldwindowglcanvas (); this.worldWindowGLCanvas.setPreferredSize (canvassize);//Create Earth model and bind to the screen Modelearth = ( Model) worldwind.createconfigurationcomponent (avkey.model_class_name); This.worldWindowGLCanvas.setModel ( Modelearth); This.add (This.worldwindowglcanvas, borderlayout.center);//Add status bar This.statusbar = new StatusBar (); This.add (StatusBar, borderlayout.page_end); This.statusBar.setEventSource (Worldwindowglcanvas);// Show Layers Panel Layerpanel = new Layerpanel (Worldwindowglcanvas); This.add (Layerpanel, borderlayout.west); This.setdefaultcloseoperation (Jframe.exit_on_close); this.setvisible (true); This.setsize (canvasSize);} public static void Main (string[] args) {String strtItle = "....." subsystem ";  Vge_gfbasicclass Wwrun = new Vge_gfbasicclass ();  Wwrun.settitle (strtitle + ":" + Wwrun.getclass (). GetName ()); }}

Run directly, as follows:



One of world Wind Java development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.