|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ucar.unidata.ui.ChooserPanel
ucar.unidata.idv.chooser.IdvChooser
ucar.unidata.idv.chooser.TimesChooser
public class TimesChooser
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static String |
LABEL_TIMES
Label for times |
protected static String |
MSG_TIMES
Message for selecting times |
protected List |
timesComponents
_more_ |
protected JComponent |
timesContainer
times container |
| Fields inherited from class ucar.unidata.idv.chooser.IdvChooser |
|---|
ATTR_ID, ATTR_SHOWDETAILS, dirHistoryCbx, ignoreDirHistory, NULL_PROPERTIES, NULL_STRING, PREF_ADDESERVERS, PREF_CATALOGLIST, PREF_DEFAULTDIR, PREF_IMAGEDESCLIST, PREF_POLLINGINFO, PREF_RADARDESCLIST, PREF_TDSRADARSERVER, PROP_CHOOSER_MAPS, PROP_CHOOSER_PROJECTION_BOUNDS, stationMap |
| Fields inherited from class ucar.unidata.ui.ChooserPanel |
|---|
cancelButton, CMD_LOAD, contents, GRID_INSETS, GRID_SPACING, haveData, helpPath, loadButton, MAP_COLOR, simpleMode |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
TimesChooser(IdvChooserManager mgr,
Element root)
Create me. |
|
| Method Summary | |
|---|---|
protected void |
absoluteTimesSelectionChanged()
Handle when the absolute times selection has changed |
protected void |
checkTimesLists()
Check the times lists |
protected void |
clearTimesList()
Clear all times in the times list. |
protected void |
enableAbsoluteTimesList(boolean enabled)
Enable the absolute times list |
protected void |
enableWidgets()
Enable or disable the GUI widgets based on what has been selected. |
protected List |
getAbsoluteTimes()
Get the list of all absolute times. |
protected int |
getAbsoluteTimeSelectMode()
Get the selection mode for the absolute times panel. |
protected int |
getDefaultRelativeTimeIndex()
Get the default selected index for the relative times list. |
protected boolean |
getDoAbsoluteTimes()
Do we do absolute or relative times |
protected boolean |
getDoRelativeTimes()
Did the user select relative times? |
protected JComponent |
getExtraTimeComponent()
Get the extra time widget. |
protected boolean |
getHaveAbsoluteTimesSelected()
Any absolute times selected |
protected int |
getNumTimesToSelect()
|
float |
getRelativeTimeIncrement()
Get the increment between times for relative time requests. |
int[] |
getRelativeTimeIndices()
Get the relative time indices |
JComponent |
getRelativeTimesChooser()
Create (if needed) and return the list that shows times. |
ChooserList |
getRelativeTimesList()
Create (if needed) and return the list that shows times. |
protected List |
getSelectedAbsoluteTimes()
Get selected absolute times |
ChooserList |
getTimesList()
Create (if needed) and return the list that shows times. |
protected boolean |
haveAnyTimes()
Are there any times in the times list. |
protected boolean |
haveTimeSelected()
Are there any times selected. |
protected List |
makeDatedObjects(List items)
Utility to wrap the given items as DatedThings |
protected JPanel |
makeTimesPanel()
Create the absolute/relative times selector |
protected JPanel |
makeTimesPanel(boolean includeExtra)
Make the times panel |
protected JPanel |
makeTimesPanel(boolean includeExtra,
boolean useTimeLine)
_more_ |
void |
popupTimeline()
Show the timeline |
protected void |
readTimes()
Do what needs to be done to read in the times. |
protected void |
setAbsoluteTimes(List times)
Set the absolute times list. |
protected void |
setDoAbsoluteTimes(boolean yesorno)
Set whether we do absolute or relative times |
protected void |
setSelectedAbsoluteTime(int selectedIndex)
Set the selected index |
protected void |
setSelectedAbsoluteTime(int from,
int to)
Set range of selected times |
protected void |
setSelectedAbsoluteTimes(int[] indices)
Set the selected indices in the absolute times list |
protected void |
setSelectedAbsoluteTimes(List selectedTimes)
Set the selected indices in the absolute times list |
protected void |
setSelectedTimes(DateTime[] times)
Set the selected times in the list based on the input times. |
protected void |
updateStatus()
_more_ |
| Methods inherited from class ucar.unidata.ui.ChooserPanel |
|---|
actionPerformed, addPropertyChangeListener, clearWaitCursor, doHelp, doLoad, doLoadInThread, doMakeContents, doUpdate, firePropertyChange, getButtonLabels, getDefaultButtons, getHaveData, getLoadCommandName, getLoadToolTip, getSimpleMode, getStatusComponent, getStatusLabel, getUpdateToolTip, registerStatusComp, revalidate, setHaveData, setHelpPath, setStatus, setStatus |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String MSG_TIMES
protected static final String LABEL_TIMES
protected JComponent timesContainer
protected List timesComponents
| Constructor Detail |
|---|
public TimesChooser(IdvChooserManager mgr,
Element root)
mgr - The chooser managerroot - The chooser.xml node| Method Detail |
|---|
protected boolean haveAnyTimes()
public ChooserList getTimesList()
protected int getAbsoluteTimeSelectMode()
public ChooserList getRelativeTimesList()
protected void clearTimesList()
protected void readTimes()
protected JPanel makeTimesPanel()
protected void absoluteTimesSelectionChanged()
protected JPanel makeTimesPanel(boolean includeExtra)
includeExtra - true if including extra time component
protected void updateStatus()
ChooserPanel
updateStatus in class IdvChooser
protected JPanel makeTimesPanel(boolean includeExtra,
boolean useTimeLine)
includeExtra - _more_useTimeLine - _more_
protected void enableAbsoluteTimesList(boolean enabled)
enabled - enabled