|
|
Java Image Preview Application V1.35 |
![]() |
Contents |
Snapshot with Eagle Nebula M16-A
|
<APPLET codebase="/Your/Installation/Directory/"
|
| Parameter | Valid Range | Meaning |
|---|---|---|
| nodestroy | True or False | Whether there is menu item QUIT to terminate program. |
| eqflag | True or False | Turns histogram equalization on/off. |
| flipx | True or False | Whether to flip the image horizontally (left/right) |
| flipy | True or False | Whether to flip the image vertically (top/bottom) |
| mag | Real Number | Initial magnification |
| popup | True or False | Image frame pops up at startup time. | wantframe | True or False | Run applet in separate frame. |
| fitsurl | URL | file: or http: pointer to FITS file |
Usage: java jipa.JIPA [-d -e -f{x|y}* -m mag -p -w [fitsurl]]
-d There is no menu item QUIT to terminate program.
-e Apply histogram equalization.
-f{x|y}* Flip image about X and/or Y axis.
-m factor Magnification factor as real number.
-p Image frame pops up at startup time.
-w Run JIPA in its own frame.
fitsurl URL of FITS file; optionally gzip compressed;
Version 1.4 supports h-compressed files.
On a UNIX terminal this translates into a command like this (assuming that file
$HOME/tmp/jipa.fits.gz does exist):
java jipa.JIPA -epw -fx -fy -m 1.0 file:$HOME/tmp/jipa.fits.gz
Hint: When running out of memory while manipulating large image frames, set java option -mx to a reasonable value. JIPA requires at least 2.5 times the size of the FITS file to work properly. Below is the same command as above, but this time with the upper limit of the java heap set to 64 MB RAM:
java -mx64m jipa.JIPA -epw -fx -fy -m 1.0 file:$HOME/tmp/jipa.fits.gz
.tcshrc):
source /ecfsoft/java/aliases; jdk116
| File | Size |
|---|---|
| JIPAStartUp.jar | 35 KB |
| JIPABody.jar | 150 KB |
| OR when used with Internet Explorer ... | |
| JIPAStartUp.cab | 32 KB |
| JIPABody.cab | 140 KB |
| OR when used as a Bean ... | |
| JIPABean.jar | 186 KB |
| Optional Test Image (gziped FITS) | |
| jipa.fits.gz | 74 KB |
| Optional JavaDoc (for developers) | |
| browse JavaDoc off-line (download and unjar JavaDoc) |
408 KB |
| browse JavaDoc on-line | |
$HOME/bin/ on your local machine then the CLASSPATH needs to be set like this (again, for UNIX):
setenv CLASSPATH $HOME/bin/JIPAStartUp.jar:$HOME/bin/JIPABody.jar:$JAVA_HOME/lib/classes.zip
Usage: java jipa.JIPA [-d -e -f{x|y}* -m mag -p -w [fitsurl]]
-d Disable file menu item QUIT.
-e Apply histogram equalization when displaying image.
-f{x|y}* Flip image about X and/or Y axis.
-m factor Magnification factor as real number.
-p Image frame pops up at startup time.
-w Run JIPA in its own frame.
fitsurl URL of FITS file (optionally gzip compressed).
e.g.: java jipa.JIPA -dew -fx -fy -m 1.0 file:/disk1/img/data.fgz
NOTE: On operating systems that do NOT support command line arguments
invoke JIPA without parameters.
fliptb was renamed to flipy.
implementation of Observer of UserObject and interface class SVQualifyInterface.
| Platform/Environment | Java Virtual Machine or Java Component |
|---|---|
| Linux, Suse 5.1 | |
| Browser | NS 4.04, AppletViewer |
| MacOS | |
| Browser | NS 4 |
| Solaris 2.5 | |
| Browser | NS 4.04, NS 4.08, NS 4.5, IE 4, HotJava 1.1, AppletViewer |
| Stand-alone | JDK 1.1.4, JDK 1.1.6, JDK 1.2beta4 |
| Instantiated | Starview 6 |
| Windows95 | |
| Browser | NS 4.04, IE 4 |
| Stand-alone | JRE 1.1.4 |
| Windows NT 4 | |
| Browser | NS 4 |
| Missing Entity | Work Around |
|---|---|
| Package java.awt.event | Use old event model AWT 1.0 (instead of AWT 1.1). |
| Class java.awt.ScrollPane | Re-implement scrollable canvas class (>1000 lines of code!) |
| Method drawImage(10 args) in class java.awt.Graphics | Using simpler method drawImage(6 args) together with more complicated clipping strategy. |
| Method setSize in class java.awt.Component | Use deprecated method resize. |
| Method setLocation in class java.awt.Component | Catch exception and skip code when JVM doesn't support it. |
| Method setCursor in class java.awt.Component | Catch exception and skip code when JVM doesn't support it. |
| Method setCaretPosition in class java.awt.TextComponent | Catch exception and skip code when JVM doesn't support it. |
| Method setBlockIncrement in class java.awt.Scrollbar | Use deprecated method setPageIncrement. |
| Methods setHgap and setVgap in java.awt.GridLayout | Using layout manager GridBagLayout instead. |
| Method setEnabled in java.awt.MenuItem | Use deprecated methods enable and disable. |
| Method insert in java.awt.MenuItem | Rebuild menu on demand using add(). |
| Method getResource in java.lang.Class | Use method getResourceAsStream instead, which is not as powerful and therefore leads to more complicated code. |
| Method interrupt() in java.lang.Thread | For interrupt handling in Thread context call myThread.stop and catch java error java.lang.ThreadDeath in myThread.run. Limitation: Only one interrupt per instance of myThread can be caught. |
| Constructor Checkbox(String, boolean) in class java.awt.Checkbox | Use Constructor Checkbox(0 args) and call methods setLabel and setState. |
| Constructor TextArea(String, int, int, int) in class java.awt.TextArea | Catch exception and use constructor TextArea(String, int, int) in that case. Note: Automatic word wrapping is also unlikely to work in this case. |
| Reference | Download Article | Download Poster or Slides |
|---|---|---|
| Dolensky, M., Micol, A., Pirenne, 1998, HST Archive Services Implemented in Java, The ESO Messenger, 93, 23 | HTML
PostScript (1.6 M) Word97 (595 K) |
- |
| Dolensky, M., 1998, Java Components and Design Patterns for Astronomy, Poster at Workshop on Observing Tools at Univ. of Maryland Conf. Center | PostScript (2.8 M) | HTML
PostScript (6.0 M) PPT (377 K) |
| Dolensky, M., Mayhew, B., Kennedy, B., 1998, Design Study about Integration of Starview 6 and JIPA using advanced Java Mechanisms, ASP Conf. Ser., in press | - | HTML
PostScript (6.7 M) PPT (1.0 M) |