Package Map
Class MapPanel
- All Implemented Interfaces:
 ImageObserver,MenuContainer,Serializable,Accessible,PamObserver,ColorManaged
- Direct Known Subclasses:
 DialogMapPanel3D
This is the actual map display, with the bluebackground, the gps track, etc.
 IT sits inside the SimpleMap along with the right hand controls.
- See Also:
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringString type name for map based data selectors.Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddConstantOverlay(MarkOverlayDraw markOverlayDraw) voidaddData(PamObservable o, PamDataUnit arg) Informs the PamObserver that new data have been added to the Observable classprotected voidfindEffortThing(long timeMilliseconds) The components colour scheme.Get the map controller.intdoubledoubledoublelonggetShipGpsData(boolean predict) getToolTipText(MouseEvent event) booleanhandleMarkedMapUnits(List<PamDataUnit> markedDataUnits) This gets called when there are no other markes being used on the map, but some data have been marked out.booleanvoidmasterClockUpdate(long milliSeconds, long sampleNumber) protected voidnewGpsData(GpsDataUnit newGpsDataUnit) Called from simple map when new gps data arrive.voidvoidnewViewTime(GpsDataUnit gpsDataUnit) voidvoidvoidreceiveSourceNotification(int type, Object object) Receive a notification from the data source - typically a change in DAQ status.voidcalled when an Observable (PamDataBlock) is removed from the systemvoidrepaint(boolean baseToo) voidInstruct map to redraw it's base image next time anything is redrawn.protected voidrotateHeadingUp(boolean repaint) protected voidrotateNorthUp(boolean repaint) voidsetBackground(Color bg) voidvoidsetMapCentreDegrees(LatLong mapCentreDegrees) voidsetMapController(MapController mapController) voidsetMapRangeMetres(int mapRangeMetres) voidsetMapRotationDegrees(double mapRotationDegrees) voidsetMapZoom(float zoomFactor) voidsetPixelsPerMetre(double pixelsPerMetre) voidsetRectProj(MapRectProjector rectProj) voidsetSampleRate(float sampleRate, boolean notify) New sample ratevoidsetSimpleMapRef(SimpleMap simpleMapRef) voidvoidstepMapZoom(int direction) voidupdateData(PamObservable observable, PamDataUnit pamDataUnit) Informs the PamObserver that existing data have been updatedprotected voidMethods inherited from class PamView.panel.JPanelWithPamKey
drawKeyOnTop, getKeyPanel, getKeyPosition, setKeyPanel, setKeyPosition, setLayoutMethods inherited from class PamView.panel.PamPanel
addComponent, getDefaultColor, getFrame, getPreferredBorderColours, layoutGrid, setDefaultColorMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
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, validateTreeMethods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle 
- 
Field Details
- 
ship
 - 
myCompass
 - 
DATASELECTNAME
String type name for map based data selectors.- See Also:
 
 
 - 
 - 
Constructor Details
- 
MapPanel
 
 - 
 - 
Method Details
- 
getObserverObject
- Specified by:
 getObserverObjectin interfacePamObserver- Returns:
 - the actual observer. In most cases concrete classes will just return 'this' in response. The exception is the Threaded observer, which will return the single thread observer.
 
 - 
getColorId
Description copied from interface:ColorManagedThe components colour scheme.- Specified by:
 getColorIdin interfaceColorManaged- Overrides:
 getColorIdin classPamPanel- Returns:
 - PamColor
 
 - 
newViewTime
 - 
newGpsData
Called from simple map when new gps data arrive.- Parameters:
 newGpsDataUnit-
 - 
paintComponent
- Overrides:
 paintComponentin classJComponent
 - 
isFillSurface
public boolean isFillSurface()- Returns:
 - true if the entire surface should be filled, not a rated rectangle.
 
 - 
getMinCornerLatLong
- Returns:
 - the minCornerLatLong
 
 - 
getMaxCornerLatLong
- Returns:
 - the maxCornerLatLong
 
 - 
findEffortProvider
 - 
repaintBaseDrawing
public void repaintBaseDrawing()Instruct map to redraw it's base image next time anything is redrawn. - 
repaint
public void repaint(boolean baseToo)  - 
getMapRotationDegrees
public double getMapRotationDegrees() - 
setMapRotationDegrees
public void setMapRotationDegrees(double mapRotationDegrees)  - 
getMapVerticalRotationDegrees
public double getMapVerticalRotationDegrees() - 
getMapCentreDegrees
 - 
setMapCentreDegrees
 - 
setMapCentreCoords
 - 
getMapRangeMetres
public int getMapRangeMetres() - 
setMapRangeMetres
public void setMapRangeMetres(int mapRangeMetres)  - 
getShipLLD
 - 
getShipGpsData
 - 
newShipLLD
public void newShipLLD() - 
rotateHeadingUp
protected void rotateHeadingUp(boolean repaint)  - 
rotateNorthUp
protected void rotateNorthUp(boolean repaint)  - 
getRectProj
 - 
setRectProj
 - 
addData
Description copied from interface:PamObserverInforms the PamObserver that new data have been added to the Observable class- Specified by:
 addDatain interfacePamObserver
 - 
updateData
Description copied from interface:PamObserverInforms the PamObserver that existing data have been updated- Specified by:
 updateDatain interfacePamObserver
 - 
getObserverName
- Specified by:
 getObserverNamein interfacePamObserver
 - 
setSampleRate
public void setSampleRate(float sampleRate, boolean notify) Description copied from interface:PamObserverNew sample rate- Specified by:
 setSampleRatein interfacePamObserver- Parameters:
 sampleRate-notify- Notify other PamObservers and PamObservables in the chain.
 - 
masterClockUpdate
public void masterClockUpdate(long milliSeconds, long sampleNumber) - Specified by:
 masterClockUpdatein interfacePamObserver
 - 
receiveSourceNotification
Description copied from interface:PamObserverReceive a notification from the data source - typically a change in DAQ status. See the constants listed in AcquisitionProcess for potential change types.- Specified by:
 receiveSourceNotificationin interfacePamObserver- Parameters:
 type- the type of changeobject- generic object added here so that we can include anything in the future
 - 
getPixelsPerMetre
public double getPixelsPerMetre() - 
setPixelsPerMetre
public void setPixelsPerMetre(double pixelsPerMetre)  - 
updateObservers
protected void updateObservers() - 
createKey
protected void createKey() - 
getRequiredDataHistory
- Specified by:
 getRequiredDataHistoryin interfacePamObserver- Parameters:
 arg- optional argument from PamObservable- Returns:
 - time in milliseconds required by data held in PamObservable
 
 - 
noteNewSettings
public void noteNewSettings()- Specified by:
 noteNewSettingsin interfacePamObserver
 - 
stepMapZoom
public void stepMapZoom(int direction)  - 
setMapZoom
public void setMapZoom(float zoomFactor)  - 
removeObservable
Description copied from interface:PamObservercalled when an Observable (PamDataBlock) is removed from the system- Specified by:
 removeObservablein interfacePamObserver
 - 
getSimpleMapRef
 - 
setSimpleMapRef
 - 
setBackground
- Overrides:
 setBackgroundin classPamPanel
 - 
addConstantOverlay
 - 
showPopupMenu
 - 
handleMarkedMapUnits
This gets called when there are no other markes being used on the map, but some data have been marked out. Can use to annotate data units that have everything built into them using generic annotations.- Parameters:
 markedDataUnits-- Returns:
 
 - 
getMapController
Get the map controller.- Returns:
 - the map controller.
 
 - 
setMapController
 - 
getToolTipText
- Overrides:
 getToolTipTextin classJComponent
 - 
findEffortThing
 
 -