public class HOGG extends javax.swing.JPanel implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.awt.datatransfer.ClipboardOwner, java.awt.event.ItemListener, KernelPoolListener, java.beans.PropertyChangeListener
Database
,
Configuration
,
Serialized Formjavax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLICATION_GROUP
The name of the aggregate (group)
Parameter under which all
parameters specific to HiPlan are enclosed. |
static java.lang.String |
CCDS_MENU |
static java.lang.String |
CONFIGURATION_MENU |
static java.lang.String |
DEBUG_MENU |
static boolean |
DEFAULT_DEBUG_MENU |
static java.awt.Color |
DEFAULT_STANDALONE_BORDER_COLOR |
static int |
DEFAULT_STANDALONE_BORDER_WIDTH |
static int |
DEFAULT_UNBINNED_LINE_INCREMENT |
static boolean |
DEFAULT_WITHHOLD_APRIL_FOOLS |
static java.lang.String |
DISABLE_MENU |
static int |
DURATION_MAX_HSTABLE
The maximum observation duration for a high-stability observation, in
seconds.
|
static int |
DURATION_MAX_NORMAL
The maximum observation duration for a normal stability observation, in
seconds.
|
static java.lang.String |
ENABLE_MENU |
static int |
FAILURE
Exit status for an unsuccessful operation.
|
static java.lang.String |
FAVORITE_TEMPLATES_MENU |
static java.lang.String |
FELICS_COMPRESSION_RATIO
The name of the configuration parameter that holds the FELICS compression
ratio when not provided by the observation record.
|
static java.lang.String |
FILE_MENU |
static java.lang.String |
HELP_MENU |
static java.lang.String |
HIWEB_PASSWORD
The name of the configuration parameter that holds the operator's HiWeb
password.
|
static java.lang.String |
HIWEB_USERNAME
The name of the configuration parameter that holds the operator's HiWeb
username.
|
static java.lang.String |
ID
Class identification name with source code version and date.
|
static java.lang.String |
IMAGING_MODES_GROUP
The name of the aggregate (group)
Parameter under which all
imaging mode parameters are enclosed. |
static java.lang.String |
IN_HIPLAN_PROPERTY
The system property whose value is "true" if the HOGG is part of HiPlan.
|
static java.lang.String |
INCREMENT_LINES_MENU |
static java.lang.String |
LINE_TIME_IF_UNKNOWN
The name of the configuration parameter whose value is to be used for
unknown line times.
|
static double |
LONG_SETUP
The warm setup duration in seconds.
|
static double |
MEDIUM_SETUP
The medium setup duration in seconds.
|
static java.lang.String |
MODE_DESCRIPTION
The name of the
Configuration Parameter that holds the
description of the imaging mode. |
static java.lang.String |
MODE_FELICS
The name of the
Configuration Parameter that indicates
whether FELICS compression will be used for the imaging mode. |
static java.lang.String |
MODE_LONG_SETUP_TOKEN
The value for SETUP_DURATION mode parameter that indicates the long ("warm")
setup duration is to be used.
|
static java.lang.String |
MODE_MEDIUM_SETUP_TOKEN
The value for SETUP_DURATION mode parameter that indicates the medium
setup duration is to be used.
|
static java.lang.String |
MODE_NAME
The name of the
Configuration Parameter that holds the name
of an imaging mode. |
static java.lang.String |
MODE_SUBMENU
The name of the
Configuration Parameter that holds the
optional name of a submenu for the imaging mode. |
static java.lang.String |
MODES_MENU |
static java.lang.String |
NO_STANDALONE_BORDER_COLOR |
static java.lang.String |
OPEN_QUICK_PICK_MENU |
static java.lang.String |
OPEN_RECENT_MENU |
static java.lang.String |
OPEN_SAVED_MENU |
static java.lang.String |
PRESET_LINES_MENU |
static java.lang.String |
RANDOM_STANDALONE_BORDER_COLOR |
static java.lang.String |
READ_ONLY
The name of the configuration parameter whose value indicates that the HOGG
should start up in read-only mode.
|
static java.lang.String |
READ_ONLY_PROPERTY
The system property whose value is "true" if the HOGG should be started up
in read-only mode.
|
static java.lang.String |
RECENT_TEMPLATES_MENU |
static java.lang.String |
SELECT_MENU |
static double |
SETUP_MAX
The maximum setup duration value in seconds.
|
static java.lang.String |
STANDALONE_BORDER_COLOR |
static java.lang.String |
STANDALONE_BORDER_WIDTH |
static java.lang.String |
STANDALONE_PROPERTY
The system property whose value is "true" if the HOGG should be started up
in standalone mode.
|
static java.lang.String |
STANDARD_IMAGING_MODES_FILENAME
The name of the PVL file containing the standard imaging modes for HiRISE.
|
static java.lang.String |
STORED_LUTS_MENU |
static int |
SUCCESS
Exit status for a successful operation.
|
static java.lang.String |
TABS_MENU |
static java.lang.String |
TARGET_NAME_ACTION_COMMAND
The action command issued when the taget name combo box changes.
|
static java.lang.String |
TEMPLATE_IDS
The name of the configuration parameter that identifies one or more template
observation IDs.
|
static java.lang.String |
TEMPLATE_MENU |
static java.lang.String |
UNBINNED_LINE_INCREMENT |
static java.lang.String |
USE_PTF_FIELDS_PROPERTY
The system property whose value is "true" if the HOGG should initially use
certain PTF fields when a new record is loaded.
|
static java.lang.String |
UTILITY_MENU |
static java.lang.String |
WITHHOLD_APRIL_FOOLS |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
HOGG()
Creates a HOGG interface panel.
|
HOGG(java.lang.String filename)
Creates a HOGG interface panel using the specified filename to
get a
Configuration . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Recieves
ActionEvent s. |
void |
addChangeListener(javax.swing.event.ChangeListener changeListener)
Adds a ChangeListener to this HOGG panel.
|
void |
appendAttentionMessage(java.lang.String msg)
Adds an attention message to the message panel.
|
void |
appendErrorMessage(java.lang.String msg)
Adds an error message to the message panel.
|
void |
appendMessage(java.lang.String msg)
Adds text to the message panel or clears it.
|
void |
appendMessage(java.lang.String msg,
javax.swing.text.AttributeSet style)
Adds text to the message panel or clears it.
|
void |
appendSuccessMessage(java.lang.String msg)
Adds a success message to the message panel.
|
void |
appendTrackerAttentionMessage(java.lang.String msg)
Appends an attention-getting message to this HOGG's HiPlan Tracker message
panel.
|
void |
appendTrackerErrorMessage(java.lang.String msg)
Appends an error message to this HOGG's HiPlan Tracker message panel.
|
void |
appendTrackerMessage(java.lang.String msg)
Appends a message to this HOGG's HiPlan Tracker message panel.
|
void |
appendTrackerMessage(java.lang.String msg,
javax.swing.text.AttributeSet style)
Appends a styled message to this HOGG's HiPlan Tracker message panel.
|
void |
appendTrackerSuccessMessage(java.lang.String msg)
Appends a success message to this HOGG's HiPlan Tracker message panel.
|
void |
appendTrackerWarningMessage(java.lang.String msg)
Appends a warning message to this HOGG's HiPlan Tracker message panel.
|
void |
appendWarningMessage(java.lang.String msg)
Adds a warning message to the message panel.
|
boolean |
canProceed()
Indicates whether a HOGG operation that might wipe out changes to a
suggestion can proceed.
|
protected void |
fireStateChanged()
Send a
ChangeEvent to each registered listener. |
Alerts |
getAlerts()
Presents the HOGG's alert manager.
|
javax.swing.event.ChangeListener[] |
getChangeListeners()
Returns an array of all the ChangeListeners registered to this
HOGG panel.
|
PIRL.Configuration.Configuration |
getConfiguration()
Returns the HOGG's configuration.
|
PIRL.Configuration.Configuration |
getInitialConfiguration()
Returns the HOGG's initial configuration.
|
javax.swing.JMenuBar |
getMenuBar()
Returns the HOGG's menu bar.
|
javax.swing.Action |
getNoLutAction() |
Observation_Record_Broker |
getObservationRecordBroker()
Returns the HOGG's observation record broker.
|
java.lang.String |
getOperator()
Gets the name of the operator controlling the HOGG.
|
javax.swing.Action |
getPlaceholderLutAction() |
HiPlan_Tracker |
getTracker()
Gets this HOGG's HiPlan Tracker.
|
void |
handleAbout()
Handles a request to display the application About dialog.
|
boolean |
handleMacQuit()
Handles a request to quit as generated by the Mac-supplied Quit menu item.
|
java.util.Map<java.lang.String,Histogram> |
histograms()
Gets the histograms for the active CCDs of the current observation.
|
protected void |
installOverlay(boolean install)
Conditionally install an overlay image on the root pane's glass
pane.
|
boolean |
isEmbedded()
Tests whether the HOGG is running as an embedded panel.
|
boolean |
isInHiPlan()
Tests whether the HOGG is running as part of the HiPlan application.
|
boolean |
isStandalone()
Tests whether the HOGG is running as a standalone application.
|
boolean |
isWritable()
Returns true if the current record is writable.
|
void |
itemStateChanged(java.awt.event.ItemEvent e) |
void |
kernelPoolChanged(KernelPoolEvent e)
Invoked when the SPICE kernel pool changes.
|
void |
lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
Notifies the HOGG that is no longer the clipboard owner.
|
static void |
main(java.lang.String[] args)
Invokes the standalone application version of the HOGG in its own
thread.
|
Observation_Record |
observation_record()
Gets the HOGG's observation record as defined by its controls.
|
void |
propertyChange(java.beans.PropertyChangeEvent e) |
void |
removeChangeListener(javax.swing.event.ChangeListener changeListener)
Removes a ChangeListener from this HOGG panel.
|
void |
retrieveObservation(PTF_Record ptfRecord)
Retrieves an observation from HiCat if available.
|
void |
setTracker(HiPlan_Tracker tracker)
Sets the HiPlan Tracker for this instance of the HOGG.
|
void |
stateChanged(javax.swing.event.ChangeEvent event)
Receives
ChangeEvent s. |
Observation_Record |
submitObservation()
Submits the displayed observation to the database.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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
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, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String ID
public static final java.lang.String IMAGING_MODES_GROUP
Parameter
under which all
imaging mode parameters are enclosed.public static final java.lang.String MODE_NAME
Configuration
Parameter
that holds the name
of an imaging mode. The name, if present, will be used as the label for the
mode in the Modes menu.public static final java.lang.String MODE_DESCRIPTION
Configuration
Parameter
that holds the
description of the imaging mode. The description, if present, will be used
in the tool tip text for the mode.public static final java.lang.String MODE_SUBMENU
Configuration
Parameter
that holds the
optional name of a submenu for the imaging mode. If the parameter is
present, the value will be added to a submenu whose name is the value of
this parameter.public static final java.lang.String MODE_FELICS
Configuration
Parameter
that indicates
whether FELICS compression will be used for the imaging mode. If the
parameter is present and all participating CCDs are using LUT compression,
the FELICS compression will be used; otherwise FELICS compression will not
be used.public static final java.lang.String MODE_LONG_SETUP_TOKEN
public static final java.lang.String MODE_MEDIUM_SETUP_TOKEN
public static final java.lang.String READ_ONLY_PROPERTY
public static final java.lang.String STANDALONE_PROPERTY
public static final java.lang.String IN_HIPLAN_PROPERTY
public static final java.lang.String USE_PTF_FIELDS_PROPERTY
This parameter is meaningful only when the HOGG is used in dialog mode in conjunction with a PTF editor, such as when used in the HiPlan application.
public static final java.lang.String STANDARD_IMAGING_MODES_FILENAME
Constants.RESOURCES_DIRECTORY
.public static final double SETUP_MAX
public static final double LONG_SETUP
public static final double MEDIUM_SETUP
public static final int DURATION_MAX_NORMAL
public static final int DURATION_MAX_HSTABLE
public static final java.lang.String FILE_MENU
public static final java.lang.String OPEN_QUICK_PICK_MENU
public static final java.lang.String OPEN_RECENT_MENU
public static final java.lang.String OPEN_SAVED_MENU
public static final java.lang.String CONFIGURATION_MENU
public static final java.lang.String MODES_MENU
public static final java.lang.String TEMPLATE_MENU
public static final java.lang.String RECENT_TEMPLATES_MENU
public static final java.lang.String FAVORITE_TEMPLATES_MENU
public static final java.lang.String CCDS_MENU
public static final java.lang.String ENABLE_MENU
public static final java.lang.String DISABLE_MENU
public static final java.lang.String SELECT_MENU
public static final java.lang.String PRESET_LINES_MENU
public static final java.lang.String INCREMENT_LINES_MENU
public static final java.lang.String TABS_MENU
public static final java.lang.String UTILITY_MENU
public static final java.lang.String STORED_LUTS_MENU
public static final java.lang.String HELP_MENU
public static final java.lang.String TARGET_NAME_ACTION_COMMAND
public static final java.lang.String APPLICATION_GROUP
Parameter
under which all
parameters specific to HiPlan are enclosed.public static final java.lang.String LINE_TIME_IF_UNKNOWN
Time_Utilities.DEFAULT_LINE_TIME
.public static final java.lang.String READ_ONLY
READ_ONLY_PROPERTY
system property; if not defined, the value is
false.public static final java.lang.String FELICS_COMPRESSION_RATIO
Observation_Fields.DEFAULT_FELICS_COMPRESSION_RATIO
.public static final java.lang.String HIWEB_USERNAME
This parameter is used by the suggestion editor
.
public static final java.lang.String HIWEB_PASSWORD
This parameter is used by the suggestion editor
.
public static final java.lang.String TEMPLATE_IDS
public static final java.lang.String UNBINNED_LINE_INCREMENT
public static final int DEFAULT_UNBINNED_LINE_INCREMENT
public static final java.lang.String WITHHOLD_APRIL_FOOLS
public static final boolean DEFAULT_WITHHOLD_APRIL_FOOLS
public static final java.lang.String DEBUG_MENU
public static final boolean DEFAULT_DEBUG_MENU
public static final java.lang.String STANDALONE_BORDER_COLOR
public static final java.awt.Color DEFAULT_STANDALONE_BORDER_COLOR
public static final java.lang.String RANDOM_STANDALONE_BORDER_COLOR
public static final java.lang.String NO_STANDALONE_BORDER_COLOR
public static final java.lang.String STANDALONE_BORDER_WIDTH
public static final int DEFAULT_STANDALONE_BORDER_WIDTH
public static final int SUCCESS
public static final int FAILURE
public HOGG(java.lang.String filename) throws PIRL.Configuration.Configuration_Exception, Connection_Tester.Connection_Exception, Invalid_Argument_Exception
Configuration
. The configuration is updated based on
discovered system properties. A new Database
is instantiated
according to the configuration's parameters, and a connection is opened. An
Observation_Record_Broker
is created to manage observation record
transactions with the database.
The filename parameter will override any pre-existing values for
the configuration filename system
property
unless it is null.
filename
- the name of the configuration file that specifies the
configurable parameters for the HOGG.PIRL.Database.Database_Exception
- if there is a problem with the database.PIRL.Configuration.Configuration_Exception
- if there is a problem with the configuration
file.Connection_Tester.Connection_Exception
- if there is a problem
establishing a database connection.Invalid_Argument_Exception
READ_ONLY_PROPERTY
,
STANDALONE_PROPERTY
public HOGG() throws PIRL.Configuration.Configuration_Exception, Connection_Tester.Connection_Exception, Invalid_Argument_Exception
Configuration
filename
is taken from the system properties; the configuration itself is updated
based on additional discovered properties. A new Database
is
instantiated according to the configuration's parameters, and a connection
is opened. An Observation_Record_Broker
is created to manage
observation record transactions with the database.PIRL.Database.Database_Exception
- if there is a problem with the database.PIRL.Configuration.Configuration_Exception
- if there is a problem with the configuration
file.Connection_Tester.Connection_Exception
- if there is a problem
establishing a database connection.Invalid_Argument_Exception
Constants.CONFIGURATION_PROPERTY
,
READ_ONLY_PROPERTY
,
STANDALONE_PROPERTY
public javax.swing.Action getPlaceholderLutAction()
public javax.swing.Action getNoLutAction()
protected void installOverlay(boolean install)
If the overlay is installed, a menu item is also added to the Utilities menu to selectively show and hide the overlay.
install
- if true and if the HOGG has a root pane,
install the overlay image to the container's glass pane.JRootPane
,
JRootPane.getGlassPane()
public java.lang.String getOperator()
public javax.swing.JMenuBar getMenuBar()
public Observation_Record_Broker getObservationRecordBroker()
public PIRL.Configuration.Configuration getConfiguration()
Note: The returned configuration has not been santized of bare passwords; displaying this configuration will reveal the operator's password and should be avoided.
public PIRL.Configuration.Configuration getInitialConfiguration()
Note: Passwords in the returned configuration have been masked.
public Alerts getAlerts()
public boolean isWritable()
Containers for the HOGG panel should use this method to set the state of any
controls that write the observation record. The HOGG fires ChangeEvent
s when the value returned by this method may have changed.
public boolean isStandalone()
public boolean isEmbedded()
isStandalone
public boolean isInHiPlan()
public void setTracker(HiPlan_Tracker tracker)
tracker
- the HiPlan Tracker.public HiPlan_Tracker getTracker()
public void addChangeListener(javax.swing.event.ChangeListener changeListener)
ChangeEvent
is
fired whenever the current Observation_Record
changes from
read/write to read-only or back.changeListener
- the ChangeListener to add.public void removeChangeListener(javax.swing.event.ChangeListener changeListener)
changeListener
- the ChangeListener to remove.public javax.swing.event.ChangeListener[] getChangeListeners()
protected void fireStateChanged()
ChangeEvent
to each registered listener. The source is this
HOGG panel.public void actionPerformed(java.awt.event.ActionEvent e)
ActionEvent
s. This method is invoked when
an action occurs within this HOGG object. This method invokes
additional methods appropriate to the source of the action event.actionPerformed
in interface java.awt.event.ActionListener
e
- the action event that invoked this method.public void stateChanged(javax.swing.event.ChangeEvent event)
ChangeEvent
s. This method is invoked, for example, when
changes are made to HIPHOP.stateChanged
in interface javax.swing.event.ChangeListener
event
- the change event that invoked this method.public void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
ClipboardOwner
interface.lostOwnership
in interface java.awt.datatransfer.ClipboardOwner
clipboard
- the clipboard that is no longer owned.contents
- the contents this owner had placed in the clipboard.public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public void kernelPoolChanged(KernelPoolEvent e)
KernelPoolListener
kernelPoolChanged
in interface KernelPoolListener
e
- the kernel pool change event.public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
public boolean handleMacQuit()
Mac_Adapter
registers this method as the handler for the Apple event
generated by this menu item.
This method checks whether it is safe to quit the application. If so, it returns true; otherwise it returns false. This return value is used to determine whether the request to quit is accepted.
This method is exposed for access by the Mac Adapter.
public void handleAbout()
On a Mac, an About menu item is also supplied in the application menu. A
Mac_Adapter
registers this method as the handler for the Apple event
generated by this menu item.
This method is exposed for access by the Mac Adapter.
public void retrieveObservation(PTF_Record ptfRecord)
team_database_id
method. If the retrieval is successful, members of the
ptfRecord are merged into the observation record; the interface is
updated to reflect the new parameters.ptfRecord
- the PTF record from which the observation ID is taken
and from which fields are to be merged.public Observation_Record submitObservation()
Observation_Record_Broker
, which either updates an
existing record or inserts a new one. The following additional processes
take place, in the following order.
If the displayed observation has no ID, the transaction does not take place.
The observation's comment field is updated to include the mapped suggestion ID, if applicable.
The length of the comment field (post suggestion ID update) and the coordinated track history field are checked. If the fields are too large, the operator is prompted to truncate the field or cancel the transaction and adjust the length manually.
The observation is checked to ensure it is safe to submit from a planning process point of view. If its status is REQUEST, it is not necessarily so safe to submit, and the operator is prompted with a warning and the option to cancel or continue. If the operator chooses to continue, a second warning is displayed reminding the operator that a new command file must be generated and uplinked.
The status field is updated to PLAN or DEFUNCT, depending on the state of the Defunct button.
The operator parameter is updated.
The observation is now submitted for update.
SuggestEd is instructed to update the suggestion mapping. If the observation
is defunct, its suggestion is unmapped and unretired (if previously mapped).
Likewise, if the observation's target is NOOP or CRC_CHECK, its suggestion
is also unmapped and unretired if previously mapped. If not, then the
suggestion displayed in SuggestEd is mapped to the current observation if
possible; see Suggestion_Panel.submitMappedId()
for details. If a
problem develops during the mapping, the operator is prompted with details
of the error and the mapping is canceled. Note that the observation
has already been saved in this case; the suggestion merely has not been
mapped.
Suggestion_Panel.unmapSuggestion()
,
Suggestion_Panel.submitMappedId()
public Observation_Record observation_record()
public java.util.Map<java.lang.String,Histogram> histograms()
HIPHOP
, and it is
required that this observation already have been HIPHOPped.public void appendMessage(java.lang.String msg, javax.swing.text.AttributeSet style)
Message_Panel.PLAIN_STYLE
is used.
If msg is null, the panel is cleared.
msg
- the text to append.style
- the style attributes to apply to the appended text.Message_Panel.append(String,AttributeSet)
public void appendMessage(java.lang.String msg)
Message_Panel.PLAIN_STYLE
is applied to the
text as it is appended.msg
- the text to append.appendMessage(String,AttributeSet)
public void appendAttentionMessage(java.lang.String msg)
Message_Panel.ATTENTION_STYLE
is applied to the text as it is appended.msg
- the text to append.Message_Panel.appendAttentionMessage(String)
public void appendSuccessMessage(java.lang.String msg)
Message_Panel.SUCCESS_STYLE
is applied to the text as it is appended.msg
- the text to append.Message_Panel.appendAttentionMessage(String)
public void appendWarningMessage(java.lang.String msg)
Message_Panel.WARNING_STYLE
is applied to the text as it is appended.msg
- the text to append.Message_Panel.appendAttentionMessage(String)
public void appendErrorMessage(java.lang.String msg)
Message_Panel.ERROR_STYLE
is applied to the text as it is appended.msg
- the text to append.Message_Panel.appendAttentionMessage(String)
public void appendTrackerMessage(java.lang.String msg, javax.swing.text.AttributeSet style)
msg
- the message to append.style
- the style for the message.Message_Panel.append(String,AttributeSet)
,
setTracker(HiPlan_Tracker)
public void appendTrackerMessage(java.lang.String msg)
msg
- the message to append.Message_Panel.append(String)
,
setTracker(HiPlan_Tracker)
public void appendTrackerAttentionMessage(java.lang.String msg)
msg
- the message to append.Message_Panel.appendAttentionMessage(String)
,
setTracker(HiPlan_Tracker)
public void appendTrackerSuccessMessage(java.lang.String msg)
msg
- the message to append.Message_Panel.appendSuccessMessage(String)
,
setTracker(HiPlan_Tracker)
public void appendTrackerWarningMessage(java.lang.String msg)
msg
- the message to append.Message_Panel.appendWarningMessage(String)
,
setTracker(HiPlan_Tracker)
public void appendTrackerErrorMessage(java.lang.String msg)
msg
- the message to append.Message_Panel.appendErrorMessage(String)
,
setTracker(HiPlan_Tracker)
public boolean canProceed()
public static void main(java.lang.String[] args)
Observation_ID_Accumulator
for
information about sources.
If the optional observation ID sources yield one and only one observation ID, that observation is automatically loaded into the HOGG for immediate viewing.
HOGG [--configuration configuration_pathname] [--read-only] [observation_id_source [...]]
HOGG --usage
HOGG --version
Options are not case-sensitive and may be reduced to their shortest unique form. One or two dashes may be used.
Configuration_Helper.getConfiguration(String,String,String...)
for details
on the configuration pathname; if this option is not used, the config source
argument is null.
args
- the command-line arguments.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona