|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.SharableImpl
ucar.unidata.idv.control.DisplayControlBase
ucar.unidata.idv.control.DisplayControlImpl
edu.wisc.ssec.mcidasv.control.cyclone.StormTrackControl
public class StormTrackControl
A MetApps Display Control with Displayable and controls for displaying a track (balloon sounding or aircraft track)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, contourWidget, controlContext, ctw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayListUsesColor, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, selectRangeWidget, settingVisibility, sharables, showNoteText, skipSlider, version, viewManagers, ZFUDGE |
| Fields inherited from interface ucar.unidata.idv.DisplayControl |
|---|
BOTTOM_LEGEND, DEFAULT_PROBEFORMAT, PREF_PREFIX, PREF_PROBEFORMAT, PREF_REMOVEONWINDOWCLOSE, PREF_SAMPLING_MODE, PREF_STANDALONE_REMOVEONCLOSE, PREF_STANDALONE_REMOVEONCLOSE_ASK, PROP_LEGENDICON, RASTERMODE_SHOWALL, RASTERMODE_SHOWNONRASTER, RASTERMODE_SHOWRASTER, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
StormTrackControl()
Create a new Track Control; set the attribute flags |
|
| Method Summary | |
|---|---|
protected void |
addPropertiesComponents(JTabbedPane jtp)
_more_ |
protected void |
applyRange()
|
private boolean |
applyWaysToUse()
_more_ |
protected boolean |
canHandleEvents()
_more_ |
private boolean |
checkTracksVisible(Real currentAnimationTime,
WayDisplayState wds)
_more_ |
void |
deleteStormDisplayState()
_more_ |
boolean |
doApplyProperties()
_more_ |
protected Container |
doMakeContents()
Make the gui |
void |
doRemove()
_more_ |
protected Object[] |
findClosestPoint(EarthLocation el,
List<StormDisplayState> theStates,
Real animationValue,
int distanceThresholdPixels)
This finds the StormTrack and StormTrackPoint that is closest to the given location |
protected String |
formatStormTrackPoint(ucar.unidata.data.storm.StormTrack stormTrack,
ucar.unidata.data.storm.StormTrackPoint stp)
_more_ |
private List<StormDisplayState> |
getActiveStorms()
_more_ |
private ucar.unidata.data.storm.StormTrack |
getClosestTimeForecastTrack(List<ucar.unidata.data.storm.StormTrack> tracks,
Real pTime)
_more_ |
StormDisplayState |
getCurrentStormDisplayState()
_more_ |
protected List |
getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep,
List<ReadoutInfo> samples)
_more_ |
MapProjection |
getDataProjection()
_more_ |
MapProjection |
getDataProjectionForMenu()
_more_ |
protected String |
getDataProjectionLabel()
_more_ |
DisplayMaster |
getDisplayMaster()
_more_ |
protected void |
getEditMenuItems(List items,
boolean forMenuBar)
_more_ |
boolean |
getEditMode()
Get the EditMode property. |
String |
getEndTime()
Get the EndTime property. |
StormDisplayState |
getLocalStormDisplayState()
Get the LocalStormDisplayState property. |
ucar.unidata.data.storm.Way |
getObservationWay()
_more_ |
Hashtable<String,Boolean> |
getOkParams()
Get the OkParams property. |
Hashtable<String,Boolean> |
getOkWays()
Get the OkWays property. |
protected String |
getPref(String basePref)
_more_ |
private Hashtable |
getPreferences()
_more_ |
protected void |
getSaveMenuItems(List items,
boolean forMenuBar)
_more_ |
String |
getStartTime()
Get the StartTime property. |
ucar.unidata.data.storm.StormDataSource |
getStormDataSource()
_more_ |
private List<StormDisplayState> |
getStormDisplays()
_more_ |
private StormDisplayState |
getStormDisplayState(ucar.unidata.data.storm.StormInfo stormInfo)
_more_ |
List<StormDisplayState> |
getStormDisplayStates()
Get the StormDisplayStates property. |
List<ucar.unidata.data.storm.StormParam> |
getTrackParams()
_more_ |
protected void |
getViewMenuItems(List items,
boolean forMenuBar)
_more_ |
NavigatedDisplay |
getVM()
_more_ |
String |
getWayName()
_more_ |
String |
getWaysName()
_more_ |
private JComponent |
getWaysToUseComp()
_more_ |
YearDisplayState |
getYearDisplayState(int year)
_more_ |
List<YearDisplayState> |
getYearDisplayStates()
Get the YearDisplayStates property. |
int |
getYearTimeMode()
Get the YearTimeMode property. |
private void |
handleChangedStationModel(String name)
_more_ |
void |
handleDisplayChanged(DisplayEvent event)
_more_ |
boolean |
hasMapProjection()
_more_ |
boolean |
init(DataChoice dataChoice)
Call to help make this kind of Display Control; also calls code to made the Displayable (empty of data thus far). |
void |
initDone()
_more_ |
void |
initYears()
_more_ |
protected boolean |
isEditable()
_more_ |
void |
loadYear(YearDisplayState yds)
_more_ |
void |
loadYearInner(YearDisplayState yds)
_more_ |
private void |
loadYearPointData()
_more_ |
protected FieldImpl |
makeTrackField(ucar.unidata.data.storm.StormTrack track,
ucar.unidata.data.storm.StormParam param)
_more_ |
protected boolean |
okToShowParam(ucar.unidata.data.storm.StormParam param)
_more_ |
protected boolean |
okToShowWay(ucar.unidata.data.storm.Way way)
_more_ |
private void |
onlyShowTheseParams(List<ucar.unidata.data.storm.StormParam> params,
boolean writeAsPreference)
_more_ |
private void |
onlyShowTheseWays(List<ucar.unidata.data.storm.Way> ways,
boolean writeAsPreference)
_more_ |
void |
propertyChange(PropertyChangeEvent evt)
Property change method. |
private void |
putPreference(String key,
Object object)
_more_ |
private void |
reloadStormTracks()
_more_ |
protected void |
resetData()
This gets called when the control has received notification of a dataChange event. |
void |
saveStormDisplayState()
_more_ |
void |
setColorTable(String whichColorTable,
ColorTable newColorTable)
_more_ |
void |
setEditMode(boolean value)
Set the EditMode property. |
void |
setEndTime(String value)
Set the EndTime property. |
void |
setLocalStormDisplayState(StormDisplayState value)
Set the LocalStormDisplayState property. |
void |
setObservationWay(ucar.unidata.data.storm.Way value)
_more_ |
void |
setOkParams(Hashtable<String,Boolean> value)
Set the OkParams property. |
void |
setOkWays(Hashtable<String,Boolean> value)
Set the OkWays property. |
void |
setStartTime(String value)
Set the StartTime property. |
void |
setStormDisplayStates(List<StormDisplayState> value)
Set the StormDisplayStates property. |
void |
setYearDisplayStates(List<YearDisplayState> value)
Set the YearDisplayStates property. |
void |
setYearTimeMode(int value)
Set the YearTimeMode property. |
protected boolean |
shouldAddControlListener()
Signal base class to add this as a control listener |
void |
showWaysToUseDialog()
_more_ |
void |
stormChanged(StormDisplayState stormDisplayState)
_more_ |
protected void |
timeChanged(Real time)
Respond to a timeChange event |
void |
unloadAllTracks()
_more_ |
void |
unloadYear(YearDisplayState yds)
_more_ |
void |
viewpointChanged()
_more_ |
void |
viewStorm(StormDisplayState stormDisplayState)
_more_ |
private void |
writePreferences()
_more_ |
protected void |
writeToGE(Element docNode,
Hashtable state,
Element parent,
ucar.unidata.data.storm.StormTrack track,
Color color)
_more_ |
void |
writeToKml()
_more_ |
void |
writeToKml(String filename,
boolean doObs,
boolean doForecast,
boolean mostRecent)
_more_ |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getLabeledReal, getLevelReal, getScreenCenter, getSelectedStation, getTmpProperty, isLeftButtonDown, logException, logException, makeEarthLocation, putTmpProperty, removeTmpProperty, screenToBox, screenToBox, screenToEarth, setStations, setStations, toBox, toEarth, userErrorMessage, userMessage |
| Methods inherited from class ucar.unidata.collab.SharableImpl |
|---|
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ucar.unidata.idv.DisplayControl |
|---|
getTmpProperty, putTmpProperty, removeTmpProperty |
| Methods inherited from interface ucar.unidata.collab.Sharable |
|---|
getReceiveShareTime, getShareGroup, getSharing, getUniqueId, setReceiveShareTime |
| Field Detail |
|---|
private static final String PREF_STORMDISPLAYSTATE
private static final String PREF_OKWAYS
private static final String PREF_OBWAY
private static final String PREF_OKPARAMS
private static int cnt
final ImageIcon ICON_ON
final ImageIcon ICON_OFF
private StormDisplayState localStormDisplayState
private Hashtable preferences
private Hashtable<String,Boolean> okWays
private ucar.unidata.data.storm.Way observationWay
private Hashtable<String,Boolean> okParams
private String startTime
private String endTime
private CompositeDisplayable placeHolder
private ucar.unidata.data.storm.StormDataSource stormDataSource
private List<ucar.unidata.data.storm.StormInfo> stormInfos
private EarthLocation lastEarthLocation
private Hashtable<ucar.unidata.data.storm.StormInfo,StormDisplayState> stormDisplayStateMap
private List<StormDisplayState> activeStorms
private TreePanel treePanel
private static final int YEAR_TIME_MODE_YEAR
private static final int YEAR_TIME_MODE_STORM
private int yearTimeMode
private Hashtable<Integer,YearDisplayState> yearDisplayStateMap
private Hashtable yearData
private JComboBox timeModeBox
private JCheckBox obsCbx
private JCheckBox forecastCbx
private JCheckBox mostRecentCbx
private JCheckBox editedCbx
private TwoListPanel waysToUseSelector
private TwoListPanel chartParamsSelector
private JCheckBox waysToUsePreferenceCbx
private JCheckBox chartParamsPreferenceCbx
private List<ucar.unidata.data.storm.Way> allWays
private List<ucar.unidata.data.storm.Way> useWays
private List<ucar.unidata.data.storm.StormParam> allParams
private List<ucar.unidata.data.storm.StormParam> useParams
private JCheckBox obsWayPreferenceCbx
private List<JRadioButton> obsWayRadioButtons
private boolean editMode
private Object MUTEX
private Hashtable rangeTypes
private StationModelDisplayable yearLabels
| Constructor Detail |
|---|
public StormTrackControl()
| Method Detail |
|---|
protected String getPref(String basePref)
basePref - _more_
protected boolean isEditable()
public NavigatedDisplay getVM()
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class DisplayControlImpldataChoice - the DataChoice of the moment.
RemoteException - Java RMI error
VisADException - VisAD Errorprivate JComponent getWaysToUseComp()
private boolean applyWaysToUse()
public void showWaysToUseDialog()
protected void addPropertiesComponents(JTabbedPane jtp)
addPropertiesComponents in class DisplayControlImpljtp - _more_public List<ucar.unidata.data.storm.StormParam> getTrackParams()
public boolean doApplyProperties()
doApplyProperties in class DisplayControlImplprotected boolean shouldAddControlListener()
shouldAddControlListener in class DisplayControlImplpublic void viewpointChanged()
viewpointChanged in class DisplayControlImpl
protected FieldImpl makeTrackField(ucar.unidata.data.storm.StormTrack track,
ucar.unidata.data.storm.StormParam param)
throws Exception
track - _more_param - _more_
Exception - _more_
public void setColorTable(String whichColorTable,
ColorTable newColorTable)
throws RemoteException,
VisADException
setColorTable in class DisplayControlImplwhichColorTable - _more_newColorTable - _more_
RemoteException - _more_
VisADException - _more_public DisplayMaster getDisplayMaster()
protected boolean okToShowWay(ucar.unidata.data.storm.Way way)
way - _more_
protected boolean okToShowParam(ucar.unidata.data.storm.StormParam param)
param - _more_
public StormDisplayState getCurrentStormDisplayState()
protected void resetData()
throws VisADException,
RemoteException
resetData in class DisplayControlImplRemoteException - Java RMI problem
VisADException - VisAD problemprivate List<StormDisplayState> getStormDisplays()
private void reloadStormTracks()
private void onlyShowTheseWays(List<ucar.unidata.data.storm.Way> ways,
boolean writeAsPreference)
ways - _more_writeAsPreference - _more_
private void onlyShowTheseParams(List<ucar.unidata.data.storm.StormParam> params,
boolean writeAsPreference)
params - _more_writeAsPreference - _more_public ucar.unidata.data.storm.StormDataSource getStormDataSource()
public void viewStorm(StormDisplayState stormDisplayState)
stormDisplayState - _more_public void unloadAllTracks()
protected boolean canHandleEvents()
public void handleDisplayChanged(DisplayEvent event)
handleDisplayChanged in class DisplayControlImplevent - _more_
protected void getSaveMenuItems(List items,
boolean forMenuBar)
getSaveMenuItems in class DisplayControlImplitems - _more_forMenuBar - _more_
protected void getEditMenuItems(List items,
boolean forMenuBar)
getEditMenuItems in class DisplayControlImplitems - _more_forMenuBar - _more_
protected void getViewMenuItems(List items,
boolean forMenuBar)
getViewMenuItems in class DisplayControlImplitems - _more_forMenuBar - _more_public String getWayName()
public String getWaysName()
protected String getDataProjectionLabel()
getDataProjectionLabel in class DisplayControlImplpublic MapProjection getDataProjection()
getDataProjection in interface DisplayControlgetDataProjection in class DisplayControlImplpublic boolean hasMapProjection()
hasMapProjection in class DisplayControlImplpublic MapProjection getDataProjectionForMenu()
getDataProjectionForMenu in class DisplayControlImplprivate List<StormDisplayState> getActiveStorms()
private Hashtable getPreferences()
public void deleteStormDisplayState()
public void saveStormDisplayState()
private void writePreferences()
private void putPreference(String key,
Object object)
key - _more_object - _more_private StormDisplayState getStormDisplayState(ucar.unidata.data.storm.StormInfo stormInfo)
stormInfo - _more_
public void initDone()
initDone in class DisplayControlImpl
public void doRemove()
throws VisADException,
RemoteException
doRemove in interface DisplayControldoRemove in class DisplayControlImplRemoteException - _more_
VisADException - _more_public void initYears()
private void loadYearPointData()
public void unloadYear(YearDisplayState yds)
yds - _more_public void loadYear(YearDisplayState yds)
yds - _more_
public void loadYearInner(YearDisplayState yds)
throws Exception
yds - _more_
Exception - _more_public void writeToKml()
public void writeToKml(String filename,
boolean doObs,
boolean doForecast,
boolean mostRecent)
throws VisADException,
RemoteException
filename - _more_doObs - _more_doForecast - _more_mostRecent - _more_
RemoteException - _more_
VisADException - _more_
protected void writeToGE(Element docNode,
Hashtable state,
Element parent,
ucar.unidata.data.storm.StormTrack track,
Color color)
throws Exception
docNode - _more_state - _more_parent - _more_track - _more_color - _more_
RemoteException - _more_
VisADException - _more_
Exception - _more_
protected Container doMakeContents()
throws VisADException,
RemoteException
doMakeContents in class DisplayControlImplRemoteException - On Badness
VisADException - On Badnesspublic void stormChanged(StormDisplayState stormDisplayState)
stormDisplayState - _more_protected void timeChanged(Real time)
timeChanged in class DisplayControlImpltime - new timepublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpropertyChange in class DisplayControlImplevt - event to act onprivate void handleChangedStationModel(String name)
name - _more_public void setStormDisplayStates(List<StormDisplayState> value)
value - The new value for StormDisplayStatespublic List<StormDisplayState> getStormDisplayStates()
public YearDisplayState getYearDisplayState(int year)
year - _more_
public void setYearDisplayStates(List<YearDisplayState> value)
value - The new value for YearDisplayStatespublic List<YearDisplayState> getYearDisplayStates()
protected List getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep,
List<ReadoutInfo> samples)
throws Exception
getCursorReadoutInner in class DisplayControlImplel - _more_animationValue - _more_animationStep - _more_samples - _more_
Exception - _more_
protected String formatStormTrackPoint(ucar.unidata.data.storm.StormTrack stormTrack,
ucar.unidata.data.storm.StormTrackPoint stp)
throws VisADException,
RemoteException
stormTrack - _more_stp - _more_
RemoteException - _more_
VisADException - _more_
protected Object[] findClosestPoint(EarthLocation el,
List<StormDisplayState> theStates,
Real animationValue,
int distanceThresholdPixels)
throws Exception
el - _more_theStates - _more_animationValue - _more_distanceThresholdPixels - _more_
Exception - _more_
private boolean checkTracksVisible(Real currentAnimationTime,
WayDisplayState wds)
throws Exception
currentAnimationTime - _more_wds - _more_
Exception - _more_
private ucar.unidata.data.storm.StormTrack getClosestTimeForecastTrack(List<ucar.unidata.data.storm.StormTrack> tracks,
Real pTime)
throws VisADException
tracks - _more_pTime - _more_
VisADException - _more_public void setOkWays(Hashtable<String,Boolean> value)
value - The new value for OkWayspublic void setObservationWay(ucar.unidata.data.storm.Way value)
value - _more_public Hashtable<String,Boolean> getOkWays()
public ucar.unidata.data.storm.Way getObservationWay()
public void setOkParams(Hashtable<String,Boolean> value)
value - The new value for OkParamspublic Hashtable<String,Boolean> getOkParams()
public void setStartTime(String value)
value - The new value for StartTimepublic String getStartTime()
public void setEndTime(String value)
value - The new value for EndTimepublic String getEndTime()
public void setLocalStormDisplayState(StormDisplayState value)
value - The new value for LocalStormDisplayStatepublic StormDisplayState getLocalStormDisplayState()
public void setYearTimeMode(int value)
value - The new value for YearTimeModepublic int getYearTimeMode()
public void setEditMode(boolean value)
value - The new value for EditModepublic boolean getEditMode()
protected void applyRange()
throws VisADException,
RemoteException
applyRange in class DisplayControlImplVisADException
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||