|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
jsky.image.gui.ImageHistoryItem
public class ImageHistoryItem
Used to store information about previously viewed images. For downloaded files, the filename is the name of a temp file that can be accessed only in this session. If the application is restarted, the URL will have to be used instead.
Field Summary | |
---|---|
protected java.lang.String |
cmap
Colormap used |
protected double |
dec
The Dec coordinate of the image center (or Double.NaN if not known) |
protected java.lang.String |
filename
Filename (may be a temp download file) |
protected double |
hcut
Low cut |
protected java.lang.String |
itt
Intensity table used |
protected double |
lcut
High cut |
protected double |
ra
The RA coordinate of the image center (or Double.NaN if not known) |
protected float |
scale
magnification factor |
protected int |
scaleAlg
Name of the image lookup scale algorithm |
protected java.lang.String |
title
The title for this item |
protected java.net.URL |
url
The origial image URL |
protected boolean |
userSetCutLevels
True if user set the cut levels |
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
ImageHistoryItem(MainImageDisplay imageDisplay,
double ra,
double dec,
java.lang.String title,
java.net.URL url,
java.lang.String filename)
Create an image history item based on the given arguments. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Load the file if it exists, otherwise the URL, and arrange to restore the history settings once the image is loaded. |
boolean |
match(double ra,
double dec)
Return true if this entry matches the given coordinates |
void |
stateChanged(javax.swing.event.ChangeEvent ce)
Called when the image is actually loaded, so we can restore the settings |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String title
protected double ra
protected double dec
protected java.net.URL url
protected java.lang.String filename
protected java.lang.String cmap
protected java.lang.String itt
protected double hcut
protected double lcut
protected boolean userSetCutLevels
protected int scaleAlg
protected float scale
Constructor Detail |
---|
public ImageHistoryItem(MainImageDisplay imageDisplay, double ra, double dec, java.lang.String title, java.net.URL url, java.lang.String filename)
imageDisplay
- the image display widgetra
- the image center RA coordinatedec
- the image center Dec coordinatetitle
- the title for the history menuurl
- the URL for the original imagefilename
- the local filename, if downloadedMethod Detail |
---|
public boolean match(double ra, double dec)
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
public void stateChanged(javax.swing.event.ChangeEvent ce)
stateChanged
in interface javax.swing.event.ChangeListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |