public class StationLocationMap
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
ALL_UNSELECTED_PROPERTY
Property for unselecting a station 
 | 
static java.lang.String | 
DEFAULT_MAP
name of default map 
 | 
static java.lang.String | 
LABEL_ID
ID label 
 | 
static java.lang.String | 
LABEL_LAT
latitude label 
 | 
static java.lang.String | 
LABEL_LON
longitude label 
 | 
static java.lang.String | 
LABEL_NAME
Name label 
 | 
static java.lang.String | 
SELECTED_PROPERTY
Property for selecting a station 
 | 
static java.lang.String | 
TEMPLATE_ID
Property to use the station ID for the station label 
 | 
static java.lang.String | 
TEMPLATE_NAME
template for name 
 | 
static java.lang.String | 
TEMPLATE_NAME_AND_ID
template for name and id 
 | 
static java.lang.String | 
UNSELECTED_PROPERTY
Property for unselecting a station 
 | 
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description | 
|---|
StationLocationMap()
Default constructor. 
 | 
StationLocationMap(boolean multipleSelect)
Construct a new  
StationLocationMap using the specified
 station selection type. | 
StationLocationMap(boolean multipleSelect,
                  Renderer theMapRender)
Create a StationLocationMap 
 | 
StationLocationMap(boolean multipleSelect,
                  Renderer theMapRender,
                  java.lang.String template)
Create a StationLocationMap 
 | 
StationLocationMap(boolean multipleSelect,
                  java.lang.String defaultMap)
Construct a new  
StationLocationMap using the specified
 station selection type and map. | 
StationLocationMap(boolean multipleSelect,
                  java.lang.String defaultMap,
                  java.lang.String template)
Construct a new  
StationLocationMap using the specified
 station selection type, map and template. | 
StationLocationMap(java.lang.String template)
Construct a new  
StationLocationMap using the specified
 label type. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener. 
 | 
void | 
addPropertyChangeListener(java.lang.String name,
                         java.beans.PropertyChangeListener listener)
Adds a property change listener for a named property. 
 | 
void | 
clearStations()
Convenience method to clear out the data in the station renderer 
 | 
protected void | 
doPickPoint(PickEvent e)
Process the  
PickEvent. | 
boolean | 
getDeclutter()
Determine whether decluttering is on for this map. 
 | 
Renderer | 
getMapRender()
Get the map renderer for this object 
 | 
boolean | 
getMultipleSelect()
See if this supports multiple station selection. 
 | 
NavigatedPanel | 
getNavigatedPanel()
Access to the navigated panel. 
 | 
java.util.List | 
getSelectedStations()
Get the list of selected stations. 
 | 
StationLocationRenderer | 
getStationLocationRenderer()
Access to the station location renderer 
 | 
java.util.List | 
getStations()
Get the list of stations 
 | 
boolean | 
getWasDoubleClick()
See if a double click happened. 
 | 
boolean | 
isFocusable()
Get the isFocusTransverable property 
 | 
boolean | 
isMultipleSelect()
See if this map allows multiple station selection 
 | 
static void | 
main(java.lang.String[] args)
test with ucar.unidata.view.station.StationLocationMap 
 | 
void | 
redraw()
Redraw the graphics on the screen. 
 | 
void | 
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener. 
 | 
void | 
removePropertyChangeListener(java.lang.String name,
                            java.beans.PropertyChangeListener listener)
Removes a property change listener for a named property. 
 | 
protected void | 
selectAll()
Select all visible stations. 
 | 
void | 
setDeclutter(boolean declut)
Change the state of decluttering 
 | 
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. 
 | 
void | 
setSelectedStations(java.util.List stns)
Set the list of selected stations. 
 | 
void | 
setStationRenderer(Renderer r)
Set the station location renderer. 
 | 
void | 
setStations(java.util.List stns)
Set the list of stations to be displayed. 
 | 
void | 
setStations(java.util.List stns,
           boolean declutter)
Set the list of stations to be displayed. 
 | 
void | 
setStations(java.util.List stns,
           java.util.List selectedStations,
           boolean declutter)
Set the list of stations to be displayed. 
 | 
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, updateadd, add, add, add, add, addContainerListener, addImpl, 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, validateTreeaction, 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, 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, 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, transferFocusUpCyclepublic static final java.lang.String SELECTED_PROPERTY
public static final java.lang.String UNSELECTED_PROPERTY
public static final java.lang.String ALL_UNSELECTED_PROPERTY
public static final java.lang.String DEFAULT_MAP
public static final java.lang.String LABEL_ID
public static final java.lang.String LABEL_NAME
public static final java.lang.String LABEL_LAT
public static final java.lang.String LABEL_LON
public static final java.lang.String TEMPLATE_ID
public static final java.lang.String TEMPLATE_NAME
public static final java.lang.String TEMPLATE_NAME_AND_ID
public StationLocationMap()
public StationLocationMap(java.lang.String template)
StationLocationMap using the specified
 label type.  Use default station selection and map.template - The String template to use for displaying station labels.public StationLocationMap(boolean multipleSelect)
StationLocationMap using the specified
 station selection type.  Use default labeling and map.multipleSelect - true to allow multiple station selectionspublic StationLocationMap(boolean multipleSelect,
                          java.lang.String defaultMap)
StationLocationMap using the specified
 station selection type and map.  Use default labeling.multipleSelect - true to allow multiple station selectionsdefaultMap - map to usepublic StationLocationMap(boolean multipleSelect,
                          java.lang.String defaultMap,
                          java.lang.String template)
StationLocationMap using the specified
 station selection type, map and template.multipleSelect - true to allow multiple station selectionsdefaultMap - map to usetemplate - The String template to use for displaying station labels.public StationLocationMap(boolean multipleSelect,
                          Renderer theMapRender)
multipleSelect - true if multiple selection is allowedtheMapRender - the renderer for the mappublic StationLocationMap(boolean multipleSelect,
                          Renderer theMapRender,
                          java.lang.String template)
multipleSelect - true if multiple selection is allowedtheMapRender - the renderer for the maptemplate - the template for the display of the dataprotected void doPickPoint(PickEvent e)
PickEvent.e - PickEvent to processpublic boolean isFocusable()
isFocusable in class java.awt.Componentprotected void selectAll()
public boolean isMultipleSelect()
public java.util.List getSelectedStations()
List of stations that have been selected.public NavigatedPanel getNavigatedPanel()
public void setMapRenderer(Renderer r)
r - map rendererpublic Renderer getMapRender()
public StationLocationRenderer getStationLocationRenderer()
public void setStationRenderer(Renderer r)
r - station location rendererpublic void setSelectedStations(java.util.List stns)
stns - List of stations to set selected.public void setStations(java.util.List stns)
stns - list of stationspublic void setStations(java.util.List stns,
                        boolean declutter)
declutterstns - list of stationsdeclutter - display will be decluttered if true, not if falsepublic void setStations(java.util.List stns,
                        java.util.List selectedStations,
                        boolean declutter)
declutterstns - list of stationsselectedStations - already selected stationsdeclutter - display will be decluttered if true, not if falsepublic java.util.List getStations()
public void setDeclutter(boolean declut)
declut - station display will be decluttered if true, not if
                  falsepublic void clearStations()
public boolean getDeclutter()
public void setProjectionImpl(ucar.unidata.geoloc.ProjectionImpl p)
p - projection to usepublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in class java.awt.Containerlistener - The property change listener.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in class java.awt.Componentlistener - The property change listener.public void addPropertyChangeListener(java.lang.String name,
                                      java.beans.PropertyChangeListener listener)
addPropertyChangeListener in class java.awt.Containername - The name of the property.listener - The property change listener.public void removePropertyChangeListener(java.lang.String name,
                                         java.beans.PropertyChangeListener listener)
removePropertyChangeListener in class java.awt.Componentname - The name of the property.listener - The property change listener.public void redraw()
public boolean getMultipleSelect()
public static void main(java.lang.String[] args)
args - public boolean getWasDoubleClick()