public class HiReporter
extends javax.swing.JDialog
implements edu.asu.jmars.layer.obs.mro.MroCustomEditor, java.beans.PropertyChangeListener
HiReporter.Engine
inner
class provides the means to create Actions
for opening
HiReport.Modifier and Type | Class and Description |
---|---|
static class |
HiReporter.Engine
The core functionality of HiReporter.
|
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLICATION_GROUP |
static java.lang.String |
BASE_URL |
static java.lang.String |
BUTTON_LABEL
The button label for the HiReport button as it appears in the MTT focus
panel if the browser launcher is available.
|
static java.lang.String |
COORDINATE_SEARCH_RANGE |
static java.lang.String |
COORDINATE_SEARCH_REPORT |
static java.lang.String |
DEFAULT_BASE_URL |
static double |
DEFAULT_COORDINATE_SEARCH_RANGE |
static java.lang.String |
DEFAULT_COORDINATE_SEARCH_REPORT |
static java.lang.String |
DEFAULT_OBSERVATION_REPORT |
static java.lang.String |
DEFAULT_SUGGESTION_REPORT |
static java.lang.String |
ID
Class identification name with source code version and date.
|
static java.lang.String |
OBSERVATION_REPORT |
static java.lang.String |
SUGGESTION_REPORT |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
HiReporter()
Creates a new HiReporter.
|
HiReporter(java.awt.Component component)
Creates a new HiReporter with an owner frame derived from the incidcated
component.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Gets the label for the HiReporter button as it appears in the MTT focus
panel.
|
boolean |
isEditable(java.lang.String ptfRecordText)
Tests whether a particular PTF record is able to be handled by the
HiReporter.
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
Responds to a property change event from a registered producer of such
changes.
|
java.lang.String |
showDialog(java.awt.Component parentComponent,
java.lang.String ptfRecordText)
Handles a click on the HiReport button in the MTT focus panel.
|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String ID
public static final java.lang.String BUTTON_LABEL
getLabel()
,
Constant Field Valuespublic static final java.lang.String APPLICATION_GROUP
public static final java.lang.String BASE_URL
public static final java.lang.String DEFAULT_BASE_URL
public static final java.lang.String OBSERVATION_REPORT
public static final java.lang.String DEFAULT_OBSERVATION_REPORT
public static final java.lang.String SUGGESTION_REPORT
public static final java.lang.String DEFAULT_SUGGESTION_REPORT
public static final java.lang.String COORDINATE_SEARCH_REPORT
public static final java.lang.String DEFAULT_COORDINATE_SEARCH_REPORT
public static final java.lang.String COORDINATE_SEARCH_RANGE
public static final double DEFAULT_COORDINATE_SEARCH_RANGE
public HiReporter(java.awt.Component component)
showDialog(Component,String)
method.
If component is null, a shared, hidden frame is set as the owner of the dialog.
The availability of the web browser launcher is tested, and if the test
fails, the HiReporter is configured to return a null for the button label
, which will prevent the label's display.
Utilities.testBrowserLauncher()
public HiReporter()
button label
, which will prevent
the label's display.Utilities.testBrowserLauncher()
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
event
- the property change event.public java.lang.String getLabel()
getLabel
in interface edu.asu.jmars.layer.obs.mro.MroCustomEditor
BUTTON_LABEL
,
Utilities.testBrowserLauncher()
public java.lang.String showDialog(java.awt.Component parentComponent, java.lang.String ptfRecordText)
The HiReporter looks for an observation ID or a suggestion ID in the ptfRecordText in the following order:
team
database ID
fieldteam database
ID
fieldcomment
field
An observation ID is an ID that can be expressed as text as defined by the
Observation_ID
class. A suggestion ID is simply an integer.
If no ID can be found, a warning is displayed to the operator.
Note that because this method does not actually modify the PTF text, it
returns a null. In an otherwise typical implentation of the MroCustomEditor
interface, a null return indicates the operator
either canceled the dialog or made no changes; the null prevents
the MTT focus panel from updating the PTF record upon return.
showDialog
in interface edu.asu.jmars.layer.obs.mro.MroCustomEditor
parentComponent
- unused.ptfRecordText
- the text format of the PTF record from which the ID
is parsed.public boolean isEditable(java.lang.String ptfRecordText)
instrument
set field
starts with H, indicating it is a HiRISE record.isEditable
in interface edu.asu.jmars.layer.obs.mro.MroCustomEditor
ptfRecordText
- the text format of the PTF record.Utilities.testBrowserLauncher()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona