All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----apps.ADILBrowser.ADILViewerApplet
The ADIL is an on-line library of astronomical images in FITS format. For every FITS image in the Library there is a preview GIF version available for browsing over the Web. In general, these preview images download more quickly than their FITS counterparts. The ADIL also provides access to the FITS headers separately. This applet allows users to browse a preview image and its related header. Through use of the ADILViewer, users may:
the Applet Interface
This applet contains one visual component: ncsa.horizon.viewer.ADILViewer. This viewer provides two display areas side-by-side. The left side displays a scaled version of the requested slice. The right side displays zoomed version of the image. Clicking positions in the left display will cause a new zoomed image to appear in the right display centered over the selected pixel. The user may control how much the right image is zoomed via buttons along the bottom of the viewer panel. The user may optionally choose "Region" zooming which allows a box to be drawn in the left display, representing the region to be shown in the right display. The coordinate positions corresponding to the pixel below the mouse are displayed as the mouse is moved about within either display. Users may display the image's text header by clicking on the header button.
Using the Applet within an HTML Document
Although this applet was developed for use with the ADIL, the data it displays need not originate from the ADIL's Web server. The information needed to download the data are passed to the applet from the HTML document via the following parameters:
If downloaded successfully, the header is parsed for coordinate information assuming a modified FITS header format. This format differs from standard FITS header format in that linefeeds appear at the end of every 80-character card-record. (Eventually, this applet will be trained to take the standard format as well.)
This parameter is provided because the ADIL keeps the keyword and the "HISTORY" portions of the header in seperate files; thus, this parameter is used to specify the HISTORY portion. When the header is displayed, this text is appended to the text specified by the header1 parameter.
protected ADILViewer viewer
protected AVAp_Viewable data
protected boolean isApplet
protected Thread imageLoader
protected AVAp_HeaderLoader hdrldr
protected AVAp_Button getURL
protected TextField URLentry
protected AVAp_Button browseButton
protected FileDialog fileDialog
protected URL hdrURL1
protected URL hdrURL2
protected String hdr1
public ADILViewerApplet()
public ADILViewerApplet(boolean isApplet)
public void init()
public CoordinateSystem getCoordSys(URL header)
public static void main(String args[])
public boolean action(Event event,
Object obj)
public void newViewable(String urlstr,
boolean gethdr)
All Packages Class Hierarchy This Package Previous Next Index