On-line Help

This document explains the on-line help features of Image2000 and presents a cookbook for help authoring. The intended audience is (a) Image2000 developers and (b) those who want to edit and/or extend Image2000 on-line help.

Image2000 uses the JavaHelp package to format and present help. See http://java.sun.com/products/javahelp. The following subsections assume that the reader is familiar with JavaHelp.

Image2000 Help Features

Image2000 has the following help features:

Information for Help Authors

Help IDs

A "helpId" is a string associated with an Image2000 component e.g., a button, window, etc. The string is a key (or "target" in JavaHelp terminology) into the help database. JavaHelp jtm files map helpIds into URLs, each URL identifying the help text associated with the corresponding helpId. The core Image2000 has three jtm mapping files: help/map.jhm for basic help text, help/jai-ops.htm for the JAI operations, and help/codecs.htm for codecs.

For the following components, Image2000 automatically sets the HelpId:

(The details of defining actions, menus, and toolbars in XML, including the assignment of helpIds, are described in Configuration File Formats.)

Image2000 uses component-level helpIds for context-sensitive help as follows:

Help Authoring Cookbook

  1. Edit help/Map.jhm to provide "target" URLs for each helpId described above. For image operations, edit help/jai-ops.jhm to define the targets.
  2. Place html files referenced by the targets in the help/html directory.
  3. Edit help/toc.xml to define the help Table of Contents.
  4. Edit help/index.xml to define index entries. If you do not want an index, then delete the index view section of help/main.hs, the main helpset file.
  5. Before delivery, run help/jhindexer.bat to construct the search database. The indexing program builds the database in the help/JavaHelpSearch directory.

Properties

By default, Image2000 takes the main helpset from help/main.hs. You may override this default by setting the i2k.main.helpset.url to be the URL of the main helpset file.

You may request that Image2000 load additional helpset files by setting the i2k.aux.helpset.url property. This property may be a simple URL or a list of URLs separated with semi-colons.

JAI Operation Parameter Help

Parameter dialogs for JAI operations (in DAG mode or menu mode) have a tooltip for each paramter. The tooltip text for a parameter comes from the XML oplib definition of the operation, i.e., the description attribute of the <param> tag. If the description attribute is omitted for a parameter, then the tooltip text comes from the parameter description in the JAI operation registry.

The ability to override the JAI parameter description in the oplib definition is critical: the property editor for a parameter may perform a conversion from "user units" to "JAI units". For example, the Rotate operation has the following XML definition:

<jaiOp opName="Rotate"> <param name="angle" value="0.0" editor="gov.nasa.gsfc.i2k.proped.DegreePropertyEditor" description="rotation angle in degrees" /> <param name="interpolation" value="INTERP_NEAREST"/> </jaiOp>

The DegreePropertyEditor accepts user input in degrees and converts to radians. The description attribute, "rotation angle in degrees", overrides the JAI registry description of the parameter, telling the user the proper units for input.

Help for Plugins

Image2000 plugins define their own help text. See Plugins.

Known Problems

The following are known problems: