public class ImageHistoryItem extends AbstractAction implements ChangeListener, Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
cmap
Colormap used
|
protected double |
dec
The Dec coordinate of the image center (or Double.NaN if not known)
|
protected String |
filename
Filename (may be a temp download file)
|
protected double |
hcut
Low cut
|
protected 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 String |
title
The title for this item
|
protected URL |
url
The origial image URL
|
protected boolean |
userSetCutLevels
True if user set the cut levels
|
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
ImageHistoryItem(MainImageDisplay imageDisplay,
double ra,
double dec,
String title,
URL url,
String filename)
Create an image history item based on the given arguments.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent evt)
Load the file if it exists, otherwise the URL, and arrange to restore the history
settings once the image is loaded.
|
float |
getScale()
Get access to the scale factor
|
boolean |
match(double ra,
double dec)
Return true if this entry matches the given coordinates
|
void |
stateChanged(ChangeEvent ce)
Called when the image is actually loaded, so we can restore the settings
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected String title
protected double ra
protected double dec
protected URL url
protected String filename
protected String cmap
protected String itt
protected double hcut
protected double lcut
protected boolean userSetCutLevels
protected int scaleAlg
protected float scale
public ImageHistoryItem(MainImageDisplay imageDisplay, double ra, double dec, String title, URL url, 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 downloadedpublic boolean match(double ra, double dec)
public void actionPerformed(ActionEvent evt)
actionPerformed
in interface ActionListener
public void stateChanged(ChangeEvent ce)
stateChanged
in interface ChangeListener
public float getScale()
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.