public class RoccaSidePanel.SidePanel extends PamBorderPanel
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
RoccaSidePanel.SidePanel() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addASighting(boolean duplicatesOk)
Ask the user for a new sighting number, and add it to the side panel
|
java.lang.String |
addASighting(java.lang.String newSNum)
Add the new sighting number to the sidepanel
|
void |
clearSpeciesCount() |
java.lang.String |
createDetectionStatsHeader()
Creates a string containing the header information for the detection
stats file
serialVersionUID=15 2014/11/12 add time parameters to header
|
java.lang.String |
createDetectionStatsString(RoccaSightingDataUnit unit)
Creates a string containing the data for the passed detection.
|
void |
deleteSighting()
Delete a detection
Currently untested and not attached to any buttons
|
void |
drawThePanel() |
void |
enableFlipButtons()
enable/disable the sighting scroll buttons, depending on where we
are in the sighting list
|
void |
loadSighting()
Load the sighting information from an existing file.
|
void |
nextSighting() |
void |
prevSighting() |
void |
renameSightingAndFiles()
Rename the sighting number and the files with that sighting number
as well.
|
void |
saveSighting()
Save the sighting information immediately
|
void |
setBackground(java.awt.Color bg) |
addComponent, getColorId, setBorder
getDefaultColor, getFrame, getPreferredBorderColours, layoutGrid, setDefaultColor, setPreferredBorderColour
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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 void setBackground(java.awt.Color bg)
setBackground
in class PamPanel
public void drawThePanel()
public void enableFlipButtons()
public void prevSighting()
public void nextSighting()
public void clearSpeciesCount()
public void renameSightingAndFiles()
public void saveSighting()
public java.lang.String createDetectionStatsHeader()
public java.lang.String createDetectionStatsString(RoccaSightingDataUnit unit)
Note that the loadSighting()
method reads in
the sighting stats information in the same order as shown here;
if this format is changed, the loadSighting() method must be changed
as well.
serialVersionUID=15 2014/11/12 tell the data unit to calculate the time params and include them in the output
unit
- the RoccaSightingDataUnit to get the data frompublic void loadSighting()
(RoccaSightingDataUnit unit) createDetectionStatsString
method. If
the format in that method is ever changed, it should be changed here
as well. Note also that this method does not check the existing
datablock for duplicate sighting numbers. Since (at the moment) this
method is only called to load a file when Pamguard starts and the
datablock is empty, this isn't a problem.
serialVersionUID=15 2014/11/12 include the time parameters
public void deleteSighting()
public java.lang.String addASighting(boolean duplicatesOk)
duplicatesOk
- Boolean indicating whether or not it's ok to use duplicate sighting numberspublic java.lang.String addASighting(java.lang.String newSNum)
newSNum
- the new sighting number to be used