public class NavigatedMapPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_MAP
name of default map
|
static java.util.List |
DEFAULT_MAPS
An application can set the list of maps to use
|
protected NavigatedPanel |
navigatedPanel
navigated panel
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
NavigatedMapPanel()
Default constructor.
|
NavigatedMapPanel(boolean makeToolBar)
Default constructor.
|
NavigatedMapPanel(boolean makeNavToolBar,
boolean makeMoveToolBar)
ctor
|
NavigatedMapPanel(java.util.List maps)
Create a NMP with a set of maps
|
NavigatedMapPanel(java.util.List defaultMaps,
boolean makeToolBar)
Create a NMP with a set of maps
|
NavigatedMapPanel(java.util.List defaultMaps,
boolean makeNavToolBar,
boolean makeMoveToolBar)
Create a NMP with a set of maps
|
NavigatedMapPanel(java.util.List defaultMaps,
boolean makeNavToolBar,
boolean makeMoveToolBar,
java.awt.image.BufferedImage preview_image,
edu.wisc.ssec.mcidas.AreaFile af)
Construct a NavigatedMapPanel
|
NavigatedMapPanel(java.lang.String defaultMap)
Construct a new
NavigatedMapPanel using the specified
station selection type, map and template. |
Modifier and Type | Method and Description |
---|---|
void |
addMapRenderer(Renderer r)
Add a renderer.
|
protected void |
annotateMap(java.awt.Graphics2D gNP)
Draw any annotations on the map
|
protected NavigatedPanel |
doMakeMapPanel()
Factory method to make the map panel.
|
protected void |
doPickPoint(PickEvent e)
A hook so subclasses can override and respond to pick point events.
|
NavigatedPanel |
getNavigatedPanel()
Access to the navigated panel.
|
protected ucar.unidata.geoloc.ProjectionImpl |
getProjection()
Get the projection
|
ucar.unidata.geoloc.ProjectionImpl |
getProjectionImpl()
Get the projection used by the nav panel
|
void |
redraw()
Redraw the graphics on the screen.
|
void |
resetBounds(ucar.unidata.geoloc.ProjectionRect rect) |
void |
setDrawBounds(double ulx,
double uly,
double lrx,
double lry)
Set the drawing bounds.
|
void |
setDrawBounds(ucar.unidata.geoloc.LatLonPoint ul,
ucar.unidata.geoloc.LatLonPoint lr)
Set the drawing bounds
|
void |
setMapRenderer(Renderer r)
Set the map renderer for this object
|
void |
setProjectionImpl(ucar.unidata.geoloc.ProjectionImpl p)
Set the projection to use for this map.
|
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 DEFAULT_MAP
public static java.util.List DEFAULT_MAPS
protected NavigatedPanel navigatedPanel
public NavigatedMapPanel()
public NavigatedMapPanel(boolean makeToolBar)
makeToolBar
- Make the nav toolbarpublic NavigatedMapPanel(boolean makeNavToolBar, boolean makeMoveToolBar)
makeNavToolBar
- make nav tool barmakeMoveToolBar
- make move tool barpublic NavigatedMapPanel(java.lang.String defaultMap)
NavigatedMapPanel
using the specified
station selection type, map and template.defaultMap
- map to usepublic NavigatedMapPanel(java.util.List maps)
maps
- default set of maps.public NavigatedMapPanel(java.util.List defaultMaps, boolean makeToolBar)
defaultMaps
- default set of maps.makeToolBar
- Make the nav toolbarpublic NavigatedMapPanel(java.util.List defaultMaps, boolean makeNavToolBar, boolean makeMoveToolBar)
defaultMaps
- default set of maps.makeNavToolBar
- Make the nav toolbarmakeMoveToolBar
- Make the move toolbarpublic NavigatedMapPanel(java.util.List defaultMaps, boolean makeNavToolBar, boolean makeMoveToolBar, java.awt.image.BufferedImage preview_image, edu.wisc.ssec.mcidas.AreaFile af)
defaultMaps
- _more_makeNavToolBar
- _more_makeMoveToolBar
- _more_preview_image
- _more_af
- _more_protected NavigatedPanel doMakeMapPanel()
public void resetBounds(ucar.unidata.geoloc.ProjectionRect rect)
rect
- public void setDrawBounds(double ulx, double uly, double lrx, double lry)
ulx
- upper left xuly
- upper left ylrx
- lower right xlry
- lower right ypublic void setDrawBounds(ucar.unidata.geoloc.LatLonPoint ul, ucar.unidata.geoloc.LatLonPoint lr)
ul
- upper left pointlr
- lower right pointprotected void doPickPoint(PickEvent e)
e
- PickEvent
to processpublic NavigatedPanel getNavigatedPanel()
public void setMapRenderer(Renderer r)
r
- map rendererpublic void addMapRenderer(Renderer r)
r
- renderer to add.public void setProjectionImpl(ucar.unidata.geoloc.ProjectionImpl p)
p
- projection to usepublic ucar.unidata.geoloc.ProjectionImpl getProjectionImpl()
public void redraw()
protected void annotateMap(java.awt.Graphics2D gNP)
gNP
- The Graphics to draw intoprotected ucar.unidata.geoloc.ProjectionImpl getProjection()