public interface MainImageDisplay extends GraphicsImageDisplay, GenericToolBarTarget
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener l)
register to receive change events from this object whenever the
image or cut levels are changed.
|
void |
displayFITSTable(int hdu)
Display the FITS table at the given HDU index (if supported).
|
WorldCoords |
getBasePos()
Return the base or center position in world coordinates.
|
String |
getFilename()
Return the image file name, if there is one.
|
String |
getObjectName()
Return the name of the object being displayed, if known, otherwise null.
|
Component |
getRootComponent()
Return the top level parent frame (or internal frame)
(Used to open and close the window displaying image).
|
URL |
getURL()
Return the image URL, if there is one, otherwise null.
|
void |
paintImageAndGraphics(Graphics2D g2D)
Paint the image and graphics to the given graphics object (for save and print features)
|
void |
print()
Pop up a dialog for printing the image.
|
void |
removeChangeListener(ChangeListener l)
Stop receiving change events from this object.
|
void |
saveAs()
Pop up a dialog to ask the user for a file name, and then save the image
to the selected file.
|
void |
saveAs(String filename)
Save the current image to the given file, using an image format
based on the file suffix, which should be one of ".fits", ".jpg",
".png", or ".tif".
|
void |
setFilename(String fileOrUrl)
Set the image file to display.
|
void |
setFilename(String fileOrUrl,
URL url)
Set the image file to display, and indicate that the file was downloaded from
the given URL (for image history recording).
|
void |
setSaveNeeded(boolean b)
Set to true if the image has been modified and needs saving.
|
void |
setURL(URL theURL)
Set the URL for the image to display.
|
void |
updateImageData()
Update the display to show the contents of the currently loaded image file.
|
blankImage, clear, getCanvasGraphics, getFitsImage, getPixelValue, getPixelValues, isClear
addImageGraphicsHandler, getCanvas, getCoordinateConverter, getDisplayImage, getImage, getImageHeight, getImageProcessor, getImageWidth, getInterpolation, getOrigin, getScale, getScaleHints, getVisibleArea, getWCS, isAutoCenterImage, isImmediateMode, isInitialized, isPrescaled, isWCS, removeImageGraphicsHandler, scaleToFit, setAutoCenterImage, setImage, setImageProcessor, setImmediateMode, setInterpolation, setOrigin, setPrescaled, setScale, setScaleHints, setWCS, updateImage
getBackAction, getForwAction, getOpenAction
void setFilename(String fileOrUrl)
void setFilename(String fileOrUrl, URL url)
String getFilename()
void setURL(URL theURL)
URL getURL()
void updateImageData()
void displayFITSTable(int hdu)
String getObjectName()
void paintImageAndGraphics(Graphics2D g2D)
void addChangeListener(ChangeListener l)
void removeChangeListener(ChangeListener l)
Component getRootComponent()
void setSaveNeeded(boolean b)
void saveAs()
void saveAs(String filename)
void print()
WorldCoords getBasePos()
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.