|
|||||||||
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.CatalogQueryTool
jsky.navigator.NavigatorQueryTool
public class NavigatorQueryTool
Displays a panel for entering query parameters for a catalog search. This class extends the parent class by adding some buttons to set the search area based on the current image display.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, 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 | |
---|---|
NavigatorQueryTool(Catalog catalog,
QueryResultDisplay queryResultDisplay)
Create a NavigatorQueryTool for searching the given catalog. |
|
NavigatorQueryTool(Catalog catalog,
QueryResultDisplay queryResultDisplay,
MainImageDisplay imageDisplay)
Create a NavigatorQueryTool for searching the given catalog. |
Method Summary | |
---|---|
MainImageDisplay |
getImageDisplay()
Return a reference to the main image display window, or null if there isn't one. |
JPanel |
makeButtonPanel()
Make and return the button panel (Redefined from the parent class to add 2 buttons). |
protected void |
selectArea()
Pop up a dialog asking the user to select an area of the image |
protected void |
setFromImage(boolean useDefaultSize)
Set the search coordinates and radius to match the image being displayed. |
void |
setImageDisplay(MainImageDisplay im)
Set the window used to display images (from image servers, etc...). |
void |
setSelectedArea(Rectangle2D r)
Invoked when an area of the image canvas has been dragged out to select the region of the query. |
protected void |
updateImageButtonStates()
Set the enabled state of the image related buttons. |
Methods inherited from class jsky.catalog.gui.CatalogQueryTool |
---|
actionPerformed, getCatalog, getCatalogQueryPanel, getName, getQueryResultDisplay, interrupt, makeCatalogPanelLabel, makeCatalogQueryPanel, search, setQueryResultDisplay |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NavigatorQueryTool(Catalog catalog, QueryResultDisplay queryResultDisplay, MainImageDisplay imageDisplay)
catalog
- The catalog to use.queryResultDisplay
- used to display query results other than tablesimageDisplay
- the image display to use to plot catalog symbolspublic NavigatorQueryTool(Catalog catalog, QueryResultDisplay queryResultDisplay)
catalog
- The catalog to use.queryResultDisplay
- use to display query resultsMethod Detail |
---|
public MainImageDisplay getImageDisplay()
public void setImageDisplay(MainImageDisplay im)
protected void updateImageButtonStates()
public JPanel makeButtonPanel()
makeButtonPanel
in class CatalogQueryTool
protected void selectArea()
public void setSelectedArea(Rectangle2D r)
setSelectedArea
in interface SelectedAreaListener
r
- the selected area of the image in screen coordinates.protected void setFromImage(boolean useDefaultSize)
useDefaultSize
- if true, use the default width and height of 15 arcmin with the
center coordinates of the image, instead of using the image size.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |