public class StationRegionDateChooser extends NPController
stationRegionDateChooser.addPropertyChangeListener( new PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent e) { if (e.getPropertyName().equals("Station")) { selectedStation = (Station) e.getNewValue(); ... } else if (e.getPropertyName().equals("GeoRegion")) { geoRegion = (ProjectionRect) e.getNewValue(); ... } } });
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
atI, eventOk, np, project, renderers, toolPanel
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
StationRegionDateChooser()
Default Contructor, allow both region and station selection.
|
StationRegionDateChooser(boolean stationSelect,
boolean regionSelect,
boolean dateSelect)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addActionValueListener(ActionValueListener l) |
void |
addToolbarAction(javax.swing.AbstractAction act)
Add an action to the toolbar.
|
ActionSourceListener |
getActionSourceListener() |
DateRange |
getDateRange() |
boolean |
getDeclutter()
Get the state of the declutter flag.
|
ProjectionRect |
getGeoSelection() |
LatLonRect |
getGeoSelectionLL() |
boolean |
getGeoSelectionMode() |
NavigatedPanel |
getNavigatedPanel()
Access to the navigated panel.
|
Station |
getSelectedStation()
Get currently selected station, or null if none.
|
static void |
main(java.lang.String[] args) |
javax.swing.JDialog |
makeDialog(javax.swing.RootPaneContainer parent,
java.lang.String title,
boolean modal)
Wrap this in a JDialog component.
|
protected void |
makeUI() |
protected void |
redraw()
Redraw the graphics on the screen.
|
void |
removeActionValueListener(ActionValueListener l) |
void |
setDateRange(DateRange range) |
void |
setDeclutter(boolean declut)
Change the state of decluttering
|
void |
setGeoBounds(LatLonRect llbb) |
void |
setGeoBounds(ProjectionRect bb) |
void |
setGeoSelection(LatLonRect llbb) |
void |
setGeoSelection(ProjectionRect bb) |
void |
setMapArea(ProjectionRect ma) |
void |
setSelectedStation(java.lang.String id)
Looks for the station with given id.
|
void |
setStations(java.util.List stns)
Set the list of Stations.
|
addRenderer, redraw, setProjection
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 StationRegionDateChooser()
public StationRegionDateChooser(boolean stationSelect, boolean regionSelect, boolean dateSelect)
regionSelect
- allow selecting a regionstationSelect
- allow selecting a stationdateSelect
- allow selecting a date rangeprotected void makeUI()
makeUI
in class NPController
public void addToolbarAction(javax.swing.AbstractAction act)
act
- add this actionpublic void addActionValueListener(ActionValueListener l)
public void removeActionValueListener(ActionValueListener l)
public ActionSourceListener getActionSourceListener()
public void setMapArea(ProjectionRect ma)
public void setStations(java.util.List stns)
stns
- list of Stationpublic void setSelectedStation(java.lang.String id)
id
- must match stationIF.getID().public Station getSelectedStation()
public NavigatedPanel getNavigatedPanel()
getNavigatedPanel
in class NPController
public void setDeclutter(boolean declut)
declut
- if true, declutterpublic boolean getDeclutter()
protected void redraw()
public void setGeoBounds(LatLonRect llbb)
public void setGeoBounds(ProjectionRect bb)
public void setGeoSelection(LatLonRect llbb)
public void setGeoSelection(ProjectionRect bb)
public LatLonRect getGeoSelectionLL()
public ProjectionRect getGeoSelection()
public boolean getGeoSelectionMode()
public DateRange getDateRange()
public void setDateRange(DateRange range)
public javax.swing.JDialog makeDialog(javax.swing.RootPaneContainer parent, java.lang.String title, boolean modal)
parent
- JFrame (application) or JApplet (applet) or nulltitle
- dialog window titlemodal
- is modalpublic static void main(java.lang.String[] args)