net.aerith.misao.toolkit.PixyDesktop
Class PixyDesktop

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--net.aerith.misao.gui.BaseFrame
                                      |
                                      +--net.aerith.misao.gui.Desktop
                                            |
                                            +--net.aerith.misao.toolkit.PixyDesktop.PixyDesktop
Direct Known Subclasses:
PixyOperationDesktop, PixyReviewDesktop

public class PixyDesktop
extends Desktop
implements ReportDocumentUpdatedListener

The PixyDesktop represents a desktop of the PIXY system. This is the base class of the PixyOperationDesktop and PixyReviewDesktop.

See Also:
Serialized Form

Inner Class Summary
protected  class PixyDesktop.AstrometryListener
          The AstrometryListener is a listener class of menu selection to operate astrometry.
protected  class PixyDesktop.IdentificationChartListener
          The IdentificationChartListener is a listener class of menu selection to make an identification chart.
protected  class PixyDesktop.IdentificationReportListener
          The IdentificationReportListener is a listener class of menu selection to make an identification report.
protected  class PixyDesktop.IdentifyFromDatabaseListener
          The IdentifyFromDatabaseListener is a listener class of menu selection to identify.
protected  class PixyDesktop.IdentifyListener
          The IdentifyListener is a listener class of menu selection to identify.
protected  class PixyDesktop.PhotometryListener
          The PhotometryListener is a listener class of menu selection to operate photometry.
protected  class PixyDesktop.RegisterToDatabaseListener
          The RegisterToDatabaseListener is a listener class of menu selection to register the XML document to the database.
protected  class PixyDesktop.ReportToVsnetListener
          The ReportToVsnetListener is a listener class of menu selection to make a report of magnitude to VSNET or VSOLJ.
protected  class PixyDesktop.SaveAsPxfListener
          The SaveAsPxfListener is a listener class of menu selection to save the result in a PXF file.
protected  class PixyDesktop.SaveAsXmlListener
          The SaveAsXmlListener is a listener class of menu selection to save the result in a XML file.
protected  class PixyDesktop.SetChipListener
          The SetChipListener is a listener class of menu selection to set the code of the chip.
protected  class PixyDesktop.SetDateListener
          The SetDateListener is a listener class of menu selection to set the image date and time.
protected  class PixyDesktop.SetInstrumentsListener
          The SetInstrumentsListener is a listener class of menu selection to set the instruments.
protected  class PixyDesktop.SetMagnitudeSystemCodeListener
          The SetMagnitudeSystemCodeListener is a listener class of menu selection to set the code of the filter.
protected  class PixyDesktop.SetObserverListener
          The SetObserverListener is a listener class of menu selection to set the observer.
 
Inner classes inherited from class net.aerith.misao.gui.Desktop
Desktop.CloseWindowListener, Desktop.ExitListener, Desktop.SelectWindowListener
 
Inner classes inherited from class net.aerith.misao.gui.BaseFrame
BaseFrame.CopyrightListener, BaseFrame.UIListener
 
Inner classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
protected  ChartComponent catalog_chart
           
protected  javax.swing.JInternalFrame catalog_stars_window
           
protected  PixyDesktop desktop
          This desktop.
protected  ChartComponent detected_chart
           
protected  javax.swing.JInternalFrame detected_stars_window
           
protected  boolean help_message_enabled
           
protected  MonoImage image
          The image to examine.
protected  ImageInformationTable image_info_table
           
protected  javax.swing.JInternalFrame image_info_window
           
protected  javax.swing.JInternalFrame image_window
           
protected  java.util.Vector listeners
           
protected  javax.swing.JMenuItem menu_astrometry
           
protected  javax.swing.JMenuItem menu_identification_chart
           
protected  javax.swing.JMenuItem menu_identification_report
           
protected  javax.swing.JMenuItem menu_identify
           
protected  javax.swing.JMenuItem menu_identify_database
           
protected  javax.swing.JMenuItem menu_photometry
           
protected  javax.swing.JMenuItem menu_register_db
           
protected  javax.swing.JMenuItem menu_report_vsnet
           
protected  javax.swing.JMenuItem menu_save_pxf
           
protected  javax.swing.JMenuItem menu_save_xml
           
protected  javax.swing.JMenuItem menu_set_chip
           
protected  javax.swing.JMenuItem menu_set_date
           
protected  javax.swing.JMenuItem menu_set_filter
           
protected  javax.swing.JMenuItem menu_set_instruments
           
protected  javax.swing.JMenuItem menu_set_observer
           
protected  java.awt.Container pane
          The content pane of this frame.
protected  XmlReport report
          The XML document.
protected  java.lang.Thread thread
           
protected  java.io.File xml_file
          The XML document file.
 
Fields inherited from class net.aerith.misao.gui.Desktop
close_window_listener, db_manager, desktop_pane, file_manager, frame_list, menu_windows, monitor_set, select_window_listener
 
Fields inherited from class net.aerith.misao.gui.BaseFrame
pane, ui_info
 
Fields inherited from class javax.swing.JFrame
accessibleContext, defaultCloseOperation, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, state, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR, weakThis
 
Fields inherited from class java.awt.Window
active, base, focusMgr, inputContext, nameCounter, OPENED, ownedWindowList, serialVersionUID, state, warningString, weakThis, windowListener, windowSerializedDataVersion
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
PixyDesktop()
          Constructs a PixyDesktop.
 
Method Summary
 void addAnalysisMenu()
          Adds the Analysis menus to the menu bar.
 void addFileMenu()
          Adds the File menus to the menu bar.
 void addHelpMenu()
          Adds the Help menus to the menu bar.
 void addImageMenu()
          Adds the Image menus to the menu bar.
 void addOperationMenu()
          Adds the Operaton menus to the menu bar.
 void addParameterMenu()
          Adds the Parameter menus to the menu bar.
 void astrometryUpdated(XmlReport updated_report)
          Invoked when the measured position of the detected stars are updated.
 void dateUpdated(XmlReport updated_report)
          Invoked when the image date is updated.
 void enableXmlMenus()
          Enables manus based on the XML document.
protected  MonitorSet getMonitorSet()
           
static java.awt.Color getTypeColor(java.lang.String type)
          Gets the color of the specified type of pair.
 void initMenu()
          Initializes menu bar.
 void photometryUpdated(XmlReport updated_report)
          Invoked when the measured magnitude of the detected stars are updated.
 void recordUpdated(XmlReport updated_report)
          Invoked when a secondary record, like instruments, is updated.
 void setHelpMessageEnabled(boolean flag)
           
protected  void showImageInformationTable()
           
 void starsUpdated(XmlReport updated_report)
          Invoked when some stars are added, removed or replaced.
private  void updateCharts()
          Updates the detected stars chart and the catalog stars chart.
 
Methods inherited from class net.aerith.misao.gui.Desktop
addFrame, addMonitor, createFileMenus, getDBManager, getFileManager, initialize, openLogWindow, setDBManager, setFileManager
 
Methods inherited from class net.aerith.misao.gui.BaseFrame
addCopyrightMenu, addMenu, createLookAndFeelMenus, updateUI
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, createRootPaneException, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
, addNotify, addToFrameList, constructComponentName, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, initIDs, isResizable, postProcessKeyEvent, readObject, remove, removeFromFrameList, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle, writeObject
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, removeOwnedWindow, removeWindowListener, setCursor, setFocusOwner, setWarningString, show, toBack, toFront, transferFocus
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, countComponents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getCursorTarget, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPrint, list, list, locate, minimumSize, paint, paintComponents, postsOldMouseEvents, preferredSize, print, printComponents, printOneComponent, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, removeAll, removeContainerListener, setFont, updateCursor, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getIntrinsicCursor, getLocation, getLocation, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

desktop

protected PixyDesktop desktop
This desktop.

report

protected XmlReport report
The XML document.

xml_file

protected java.io.File xml_file
The XML document file.

image

protected MonoImage image
The image to examine.

image_window

protected javax.swing.JInternalFrame image_window

detected_stars_window

protected javax.swing.JInternalFrame detected_stars_window

detected_chart

protected ChartComponent detected_chart

catalog_stars_window

protected javax.swing.JInternalFrame catalog_stars_window

catalog_chart

protected ChartComponent catalog_chart

image_info_window

protected javax.swing.JInternalFrame image_info_window

image_info_table

protected ImageInformationTable image_info_table

thread

protected java.lang.Thread thread

listeners

protected java.util.Vector listeners

menu_save_xml

protected javax.swing.JMenuItem menu_save_xml

menu_save_pxf

protected javax.swing.JMenuItem menu_save_pxf

menu_register_db

protected javax.swing.JMenuItem menu_register_db

menu_identify

protected javax.swing.JMenuItem menu_identify

menu_identify_database

protected javax.swing.JMenuItem menu_identify_database

menu_identification_report

protected javax.swing.JMenuItem menu_identification_report

menu_identification_chart

protected javax.swing.JMenuItem menu_identification_chart

menu_astrometry

protected javax.swing.JMenuItem menu_astrometry

menu_photometry

protected javax.swing.JMenuItem menu_photometry

menu_report_vsnet

protected javax.swing.JMenuItem menu_report_vsnet

menu_set_date

protected javax.swing.JMenuItem menu_set_date

menu_set_observer

protected javax.swing.JMenuItem menu_set_observer

menu_set_filter

protected javax.swing.JMenuItem menu_set_filter

menu_set_chip

protected javax.swing.JMenuItem menu_set_chip

menu_set_instruments

protected javax.swing.JMenuItem menu_set_instruments

help_message_enabled

protected boolean help_message_enabled

pane

protected java.awt.Container pane
The content pane of this frame.
Constructor Detail

PixyDesktop

public PixyDesktop()
Constructs a PixyDesktop.
Method Detail

initMenu

public void initMenu()
Initializes menu bar. A JMenuBar must be set to this JFrame previously.
Overrides:
initMenu in class Desktop

addFileMenu

public void addFileMenu()
Adds the File menus to the menu bar.

addOperationMenu

public void addOperationMenu()
Adds the Operaton menus to the menu bar.

addImageMenu

public void addImageMenu()
Adds the Image menus to the menu bar.

addAnalysisMenu

public void addAnalysisMenu()
Adds the Analysis menus to the menu bar.

addParameterMenu

public void addParameterMenu()
Adds the Parameter menus to the menu bar.

addHelpMenu

public void addHelpMenu()
Adds the Help menus to the menu bar.

enableXmlMenus

public void enableXmlMenus()
Enables manus based on the XML document.

getMonitorSet

protected MonitorSet getMonitorSet()

setHelpMessageEnabled

public void setHelpMessageEnabled(boolean flag)

getTypeColor

public static java.awt.Color getTypeColor(java.lang.String type)
Gets the color of the specified type of pair.
Parameters:
type - the type of pair.
Returns:
the color of the specified type of pair.

showImageInformationTable

protected void showImageInformationTable()

photometryUpdated

public void photometryUpdated(XmlReport updated_report)
Invoked when the measured magnitude of the detected stars are updated.
Specified by:
photometryUpdated in interface ReportDocumentUpdatedListener
Parameters:
updated_report - the XML report document.

astrometryUpdated

public void astrometryUpdated(XmlReport updated_report)
Invoked when the measured position of the detected stars are updated.
Specified by:
astrometryUpdated in interface ReportDocumentUpdatedListener
Parameters:
updated_report - the XML report document.

starsUpdated

public void starsUpdated(XmlReport updated_report)
Invoked when some stars are added, removed or replaced.
Specified by:
starsUpdated in interface ReportDocumentUpdatedListener
Parameters:
updated_report - the XML report document.

dateUpdated

public void dateUpdated(XmlReport updated_report)
Invoked when the image date is updated.
Specified by:
dateUpdated in interface ReportDocumentUpdatedListener
Parameters:
updated_report - the XML report document.

recordUpdated

public void recordUpdated(XmlReport updated_report)
Invoked when a secondary record, like instruments, is updated.
Specified by:
recordUpdated in interface ReportDocumentUpdatedListener
Parameters:
updated_report - the XML report document.

updateCharts

private void updateCharts()
Updates the detected stars chart and the catalog stars chart.