18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

BUILDING APPLICATIONS WITH VISUAL JAVABEANS<br />

Rather than walk through this scenario, you can<br />

get the completed application from the samples<br />

installation location. The sample is installed as<br />

part of the <strong>ArcGIS</strong> developer samples.<br />

The <strong>ArcGIS</strong> developer samples are not included<br />

in the typical installation of the <strong>ArcGIS</strong> <strong>Engine</strong><br />

<strong>Developer</strong> Kit. If you don’t have them installed,<br />

rerun the <strong>Developer</strong> Kit Install wizard, click<br />

Custom or Modify, and click the samples feature<br />

under Software developer kit.<br />

This walkthrough is for developers who want to build and deploy an application<br />

using visual Java components. It describes the process of building and deploying<br />

an application using the visual JavaBeans available in the <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong><br />

Kit.<br />

On Windows you can find this sample in:<br />

\<strong>Developer</strong>Kit\samples\<strong>Developer</strong>_<strong>Guide</strong>_Scenarios\<br />

Building_an_<strong>ArcGIS</strong>_Controls_Map_Viewer_ApplicationJava.zip<br />

On Solaris and Linux you can find the sample in:<br />

/developerkit/samples/<strong>Developer</strong>_<strong>Guide</strong>_Scenarios/<br />

Building_an_<strong>ArcGIS</strong>_Controls_Map_Viewer_ApplicationJava.zip<br />

PROJECT DESCRIPTION<br />

This scenario demonstrates the steps required to create a GIS application for<br />

viewing preauthored ESRI map documents, or MXDs. The scenario covers the<br />

following techniques:<br />

• Setting up the development environment<br />

• Building a GUI using the visual components<br />

• Loading map documents<br />

• Adding commands to the toolbar<br />

• “Buddying up” the ToolbarBean and TOCBean<br />

• Adding toolbar items to the ToolbarBean<br />

• Creating a popup menu using ToolbarMenu<br />

• Controlling Label Editing in the TOCBean component<br />

• Drawing an overview rectangle on the MapBean<br />

• Creating a custom tool<br />

• Customizing the ToolbarBean<br />

• Deploying using an executable JAR<br />

CONCEPTS<br />

The <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> Kit provides reusable visual Java components<br />

corresponding to each <strong>ArcGIS</strong> Control. This developer scenario will show how<br />

these components can be embedded in a Java GUI to build a map viewer application.<br />

The visual components provided by the <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> Kit are heavyweight<br />

AWT components that conform to the JavaBeans component architecture,<br />

allowing them to be used as drag-and-drop components for designing Java GUIs<br />

in JavaBeans-compatible IDEs. Each component has certain properties and<br />

methods and is capable of firing events. Internally, the Java components use JNI<br />

to host the <strong>ArcGIS</strong> controls, thereby providing nearly the same speed of execution<br />

as any native application built using the controls. By assembling the <strong>ArcGIS</strong><br />

<strong>Engine</strong> visual components in a Java application and ‘wiring them up’ with each<br />

other and with other ArcObjects components, custom GIS applications can be<br />

rapidly built and deployed on supported <strong>ArcGIS</strong> <strong>Engine</strong> platforms.<br />

304 • <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!