|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
jsky.catalog.gui.CatalogNavigator
jsky.navigator.Navigator
public class Navigator
Extends CatalogNavigator to include support for displaying images and plotting catalog data in images.
Nested Class Summary | |
---|---|
protected class |
Navigator.NavigatorImageLoader
This local class is used to load an image in the event dispatching thread. |
Nested classes/interfaces inherited from class jsky.catalog.gui.CatalogNavigator |
---|
CatalogNavigator.EmptyPanel |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Navigator(java.awt.Component parent,
CatalogTree catalogTree,
TablePlotter plotter)
Construct a Navigator using the given CatalogTree widget (call setQueryResult to set the catalog or data to display). |
|
Navigator(java.awt.Component parent,
CatalogTree catalogTree,
TablePlotter plotter,
MainImageDisplay imageDisplay)
Construct a Navigator using the given CatalogTree widget (call setQueryResult to set the catalog or data to display). |
Method Summary | |
---|---|
void |
addPickedObjectToTable(PickObjectStatistics stats,
boolean isUpdate)
Add the object described by stats to the currently displayed table, or create a new table if none is being displayed. |
protected void |
addRowForPickedObject(TableQueryResult table,
TableDisplayTool tableDisplayTool,
PickObjectStatistics stats,
boolean isUpdate)
Add a row to the given table with information from the given stats object. |
MainImageDisplay |
getImageDisplay()
Return the image display widget. |
javax.swing.Action |
getImageDisplayAction()
Return the action to use to show the image window. |
protected void |
initSymbolPlotter()
initialize the symbol plotter |
protected void |
loadImage(java.lang.String filename,
java.net.URL url)
Load and display the given image file. |
protected void |
loadImage(java.net.URL url,
java.lang.String contentType)
Download the given image URL to a temporary file and then display the image file when done. |
protected CatalogQueryTool |
makeCatalogQueryTool(Catalog catalog)
Make a panel for querying a catalog (Redefined from the parent class to use a CatalogQueryTool subclass). |
javax.swing.JFileChooser |
makeFileChooser()
Create and return a new file chooser to be used to select a local catalog file to open. |
protected void |
makeImageDisplayControlFrame()
Make an ImageDisplayControlFrame or ...InternalFrame, depending on what type of frames are being used. |
protected TableQueryResult |
makePickObjectTable(PickObjectStatistics stats)
Make a catalog table to use to hold the objects picked by the user and add the first row based on the given stats object. |
protected javax.swing.JComponent |
makeURLComponent(java.net.URL url,
java.lang.String contentType)
Return a new JComponent displaying the contents of the given URL. |
protected void |
notifyNewImageDisplay()
Notify any panels that need to know about the new image display window. |
protected void |
notifyNewImageDisplay(java.util.Stack stack)
Notify any panels in the given stack that need to know about the new image display window. |
void |
openCatalogWindow()
Open the catalog navigator window (in this case, it is already open). |
void |
openCatalogWindow(Catalog cat)
Open the catalog navigator window and display the interface for the given catalog, if not null (in this case, the window is already open). |
void |
openCatalogWindow(java.lang.String name)
Open a catalog window for the named catalog, if found. |
void |
openLocalCatalog()
Pop up a file browser to select a local catalog file to open. |
void |
saveWithImage()
Save the current table as a FITS table in the current FITS image. |
protected void |
setImageDisplay(NavigatorImageDisplay imageDisplay)
Set the image display to use for plotting catalog objects. |
protected void |
setImageDisplayControlFrame(java.awt.Component imageDisplayControlFrame)
Set the frame belonging to the image display widget. |
void |
setImageDisplayManager(NavigatorImageDisplayManager imageDisplayMgr)
Specify an (optional) object that can be used to create the image display frame when needed. |
void |
setImageDisplayNavigator(Navigator navigator)
Set the instance of the catalog navigator to use with this image display. |
void |
showImageDisplay()
Show the image display window. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Navigator(java.awt.Component parent, CatalogTree catalogTree, TablePlotter plotter, MainImageDisplay imageDisplay)
parent
- the parent componentcatalogTree
- a CatalogTree (normally a subclass of CatalogTree
that knows about certain types of catalogs)plotter
- the object to use to plot catalog table data
(when the plot button is pressed)imageDisplay
- optional widget to use to display images (if not specified,
or null, a new window will be created)public Navigator(java.awt.Component parent, CatalogTree catalogTree, TablePlotter plotter)
parent
- the parent componentcatalogTree
- a CatalogTree (normally a subclass of CatalogTree
that knows about certain types of catalogs)plotter
- the object to use to plot catalog table data
(when the plot button is pressed)Method Detail |
---|
public void setImageDisplayManager(NavigatorImageDisplayManager imageDisplayMgr)
public MainImageDisplay getImageDisplay()
protected void setImageDisplay(NavigatorImageDisplay imageDisplay)
protected void setImageDisplayControlFrame(java.awt.Component imageDisplayControlFrame)
public void setImageDisplayNavigator(Navigator navigator)
public javax.swing.Action getImageDisplayAction()
protected CatalogQueryTool makeCatalogQueryTool(Catalog catalog)
makeCatalogQueryTool
in class CatalogNavigator
protected void makeImageDisplayControlFrame()
protected void loadImage(java.lang.String filename, java.net.URL url)
public void showImageDisplay()
protected void loadImage(java.net.URL url, java.lang.String contentType) throws java.io.IOException
java.io.IOException
protected void notifyNewImageDisplay()
protected void notifyNewImageDisplay(java.util.Stack stack)
protected void initSymbolPlotter()
protected javax.swing.JComponent makeURLComponent(java.net.URL url, java.lang.String contentType) throws java.io.IOException
makeURLComponent
in class CatalogNavigator
java.io.IOException
public void openCatalogWindow()
openCatalogWindow
in interface CatalogNavigatorOpener
CatalogNavigatorOpener
public void openCatalogWindow(Catalog cat)
openCatalogWindow
in interface CatalogNavigatorOpener
CatalogNavigatorOpener
public void openCatalogWindow(java.lang.String name)
openCatalogWindow
in interface CatalogNavigatorOpener
CatalogNavigatorOpener
public void openLocalCatalog()
openLocalCatalog
in interface CatalogNavigatorOpener
CatalogNavigatorOpener
public void saveWithImage()
saveWithImage
in class CatalogNavigator
public javax.swing.JFileChooser makeFileChooser()
makeFileChooser
in class CatalogNavigator
public void addPickedObjectToTable(PickObjectStatistics stats, boolean isUpdate)
stats
- describes the selected objectisUpdate
- set to true if this is just an update of the previously selected positionprotected TableQueryResult makePickObjectTable(PickObjectStatistics stats)
protected void addRowForPickedObject(TableQueryResult table, TableDisplayTool tableDisplayTool, PickObjectStatistics stats, boolean isUpdate)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |