Previous:  Display controls Next: Using VisAD Displays in the IDV Table of contents Index Glossary Images Frames U09-NRM-127: The role of Distributed Data Access Technologies in NRM - for ITC-IDV version 2.7 > Java Developer Topics > Display controls

6.6.0 Overview of Display Controls
The ucar.unidata.idv.DisplayControl interface defines the API through which all data are displayed. There is a base class ucar.unidata.idv.control.DisplayControlImpl that provides a set of base services. A DisplayControl generally has a data depiction and a control window for modifying or interacting with the display. There are a variety of DisplayControl implementations:

Creating Display Controls

The IDV uses the ucar.unidata.idv.ControlDescriptor class to create set of DisplayControls-s. The set of available DisplayControls-s is defined within the controls.xml resource file.

This file has the form:

  <control
     id="wxtextdisplay"
     categories="wxtext"
     class="ucar.unidata.apps.example.WxTextDisplayControl"
     description="Weather Text Display"
     label="Weather Text Display"
     displaycategory="General"
     properties="windowVisible=true; displayName=Weather Text Display;"/>
The ControlDescriptor class parses the XML and creates a set of ucar.unidata.idv.ControlDescriptor objects which hold this information.

So, you're probably wondering how you can create your own DisplayControl. You need to make a subclass of DisplayControlImpl and override the following methods:
  1. the no arg constructor - for persistence
  2. doMakeContents - make the GUI
  3. init(DataChoice) - sets up the initialization.

 


Previous:  Display controls Next: Using VisAD Displays in the IDV Table of contents Index Glossary Images Frames Français Español Portugese Italian Japanese Korean Russian Chinese-simp Chinese-trad Dutch German Greek Français Español Portugese Italian Japanese Korean Russian Chinese-simp Chinese-trad Dutch German Greek

U09-NRM-127: The role of Distributed Data Access Technologies in NRM - for ITC-IDV version 2.7 > Java Developer Topics > Display controls