|
||||||||||
| 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
ucar.unidata.idv.control.ObsDisplayControl
ucar.unidata.idv.control.StationModelControl
ucar.unidata.idv.control.StationLocationControl
public class StationLocationControl
Class to display a set of locations
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.ObsDisplayControl |
|---|
ObsDisplayControl.RealWrapper |
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.idv.control.StationModelControl |
|---|
currentStationData, densityComps, filters, lastDeclutteredData, layoutModelWidget, lockIcon, stationsLocked, timeDeclutterComps, unlockIcon, zPositionPanel |
| Fields inherited from class ucar.unidata.idv.control.ObsDisplayControl |
|---|
colNames, colString, FIELD_ALL, format, LABEL_ALT, LABEL_LAT, LABEL_LON, LABEL_TIME |
| 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 | |
|---|---|
StationLocationControl()
Default cstr; sets attribute flags |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ae)
Only public as a result of this being an ActionListener. |
protected void |
addSelectedToList(List listOfStations)
add the selected stations to the given list |
void |
buttonPressed(int index)
The id or station button was pressed |
protected StationModelDisplayable |
createStationModelDisplayable()
Called by the init method to create the StationModelDisplayable used for this instance. |
protected Container |
doMakeContents()
Called by the init method to create the contents of this DisplayControl's UI. |
protected DataInstance |
doMakeDataInstance(DataChoice dataChoice)
Creates and returns the DataInstance
corresponding to a DataChoice. |
protected JComponent |
doMakeDisplayPanel()
Make the display gui panel |
protected JComponent |
doMakeStationListPanel()
Make the list of stations panel |
protected JTabbedPane |
doMakeTabs(boolean showDataSets,
boolean showFilters)
Make the main tabbed pane gui |
void |
exportLocations()
Write out the locations as an xml file |
boolean |
getCenterOnClick()
Get the CenterOnClick property. |
protected List |
getCursorReadoutInner(EarthLocation el,
Real animationValue,
int animationStep,
List<ReadoutInfo> samples)
_more_ |
MapProjection |
getDataProjection()
get MapProjection of data to display |
MapProjection |
getDataProjectionForMenu()
Get the MapProjection for this data; if have a single point data object make synthetic map projection for location |
protected String |
getDataProjectionLabel()
What label to use for the data projection |
protected String |
getDetailsContents()
Get the contents of the details html |
boolean |
getDetailsInLegend()
Get the DetailsInLegend property. |
protected void |
getEditMenuItems(List items,
boolean forMenuBar)
Add the relevant edit menu items into the list |
boolean |
getEnabled()
Get the Enabled property. |
protected JComponent |
getExtraLegendComponent(int legendType)
Assume that any display controls that have a color table widget will want the color table to show up in the legend. |
protected List |
getFilterNames()
Return the list of names that shows up in the filter gui names combob box. |
int |
getIdType()
Get the id type for this instance. |
void |
getLegendLabels(List labels,
int legendType)
Get the extra label used for the legend. |
String |
getMenuLabel()
Get the label used for the a menu. |
StationModel |
getMyStationModel()
Get the current station model view. |
protected void |
getSaveMenuItems(List items,
boolean forMenuBar)
Add the relevant file menu items into the list |
boolean |
getShowId()
Get whether the id should be shown (visible). |
boolean |
getShowSymbol()
Get whether the symbol should be shown (visible). |
protected List |
getStationList()
Get the station List. |
protected String |
getStationTableDescription()
Get the station table description. |
List |
getStationTableNames()
Get the StationTableNames property. |
int |
getSymbolType()
Get the symbol type for this instance. |
boolean |
getUseStationModel()
Get the UseStationModel property. |
protected void |
getViewMenuItems(List items,
boolean forMenuBar)
_more_ |
protected void |
handleChangedStationModel(StationModel changedModel)
Station model has changed. |
protected void |
handleMousePressed(EarthLocation el,
DisplayEvent event)
Handle when the user clicks in the main display |
boolean |
hasMapProjection()
Do we have a map projection |
boolean |
init(DataChoice dataChoice)
Called to make this kind of Display Control; also calls code to made the Displayable. |
void |
initAsPrototype()
Clear out the station table names |
protected void |
initDisplayable(StationModelDisplayable myDisplay)
_more_ |
void |
initDone()
Init is done |
protected boolean |
isChartEnabled()
Overwrite base class method so we don't show the chart |
void |
loadData()
Loads the data into the StationModelDisplayable. |
protected void |
loadDataInAWhile()
_more_ |
protected void |
makeStationModelEditMenuItems(List items,
boolean forMenuBar)
Get edit menu items |
void |
reloadDataSource()
The data changed. |
protected void |
resetData()
This gets called when the control has received notification of a dataChange event. |
protected void |
selectedStationsChanged(List selectionList)
The list of stations that changed |
void |
setCenterOnClick(boolean value)
Set the CenterOnClick property. |
protected boolean |
setData(DataChoice choice)
Override the superclass method since currently, the DataChoice for this instance is null or not used. |
void |
setDeclutter(boolean v)
Override setDeclutter |
void |
setDetailsInLegend(boolean value)
Set the DetailsInLegend property. |
void |
setEnabled(boolean value)
Set the Enabled property. |
void |
setIdType(int value)
Set the id type for this instance. |
void |
setOnlyShowFiltered(boolean value)
Set the OnlyShowFiltered property. |
protected void |
setScaleOnDisplayable(float f)
set the scale factor on the displayable |
protected void |
setSelectedStations(List<NamedStationImpl> stations)
set the selected stations |
void |
setShowId(boolean value)
Set whether the id should be shown (visible). |
void |
setShowSymbol(boolean value)
Set whether the symbol should be shown (visible). |
void |
setStationTableName(String value)
Set the station table name for this instance. |
void |
setStationTableNames(List value)
Set the StationTableNames property. |
void |
setSymbolType(int value)
Set the symbol type for this instance. |
void |
setUseStationModel(boolean value)
Set the UseStationModel property. |
void |
showFlythrough()
_more_ |
| Methods inherited from class ucar.unidata.idv.control.ObsDisplayControl |
|---|
applyPreferences, doDeclutterTime, doMakeFieldSelector, doMakeShowRawSelector, exportAsNetcdf, getColString, getColValue, getColValue, getDisplayUnit, getDisplayUnitName, getFieldsToShow, getIndex, getIndicesToShow, getParamLabel, getShowDataRaw, getTimeDeclutterComps, getTimeDeclutterEnabled, getTimeDeclutterMinutes, isIdParam, setColString, setShowDataRaw, setTimeDeclutterEnabled, setTimeDeclutterMinutes, showFieldSelector |
| 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 |
| Constructor Detail |
|---|
public StationLocationControl()
| Method Detail |
|---|
public void initAsPrototype()
initAsPrototype in interface PrototypableinitAsPrototype in class DisplayControlImpl
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class StationModelControldataChoice - the DataChoice of the moment -
not used yet by this implementation; can be null.
VisADException - there was a VisAD error
RemoteException - there was a remote errorprotected boolean isChartEnabled()
isChartEnabled in class StationModelControl
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_public MapProjection getDataProjection()
getDataProjection in interface DisplayControlgetDataProjection in class StationModelControlpublic boolean hasMapProjection()
hasMapProjection in class DisplayControlImplpublic MapProjection getDataProjectionForMenu()
getDataProjectionForMenu in class DisplayControlImpl
public void reloadDataSource()
throws RemoteException,
VisADException
reloadDataSource in class DisplayControlImplRemoteException - On badness
VisADException - On badnessprotected String getDataProjectionLabel()
getDataProjectionLabel in class StationModelControl
protected void resetData()
throws VisADException,
RemoteException
resetData in class StationModelControlRemoteException - Java RMI problem
VisADException - VisAD problempublic void initDone()
initDone in class StationModelControlprotected void handleChangedStationModel(StationModel changedModel)
handleChangedStationModel in class StationModelControlchangedModel - The changed model
protected StationModelDisplayable createStationModelDisplayable()
throws VisADException,
RemoteException
StationModelDisplayable used for this instance.
createStationModelDisplayable in class StationModelControlStationModelDisplayable
VisADException - there was an error creating the Displayable.
RemoteException - there was an error creating the Displayable
protected void initDisplayable(StationModelDisplayable myDisplay)
throws VisADException,
RemoteException
initDisplayable in class StationModelControlmyDisplay - _more_
RemoteException - _more_
VisADException - _more_
protected boolean setData(DataChoice choice)
throws VisADException,
RemoteException
setData in class StationModelControlchoice - DataChoice
VisADException - there was an error creating/setting the data.
RemoteException - there was an error creating/setting the data
for a remote object.DisplayControlImpl.setData(DataChoice)protected void loadDataInAWhile()
loadDataInAWhile in class StationModelControl
protected void handleMousePressed(EarthLocation el,
DisplayEvent event)
handleMousePressed in class StationModelControlel - The locationevent - The event
protected void selectedStationsChanged(List selectionList)
throws VisADException,
RemoteException
selectionList - the list
RemoteException - On badness
VisADException - On badness
protected void setSelectedStations(List<NamedStationImpl> stations)
throws VisADException,
RemoteException
stations - the selected stations
RemoteException - On badness
VisADException - On badness
protected void setScaleOnDisplayable(float f)
throws RemoteException,
VisADException
setScaleOnDisplayable in class StationModelControlf - the scale
RemoteException - On badness
VisADException - On badnessprotected JComponent getExtraLegendComponent(int legendType)
getExtraLegendComponent in class StationModelControllegendType - type of legend
public void getLegendLabels(List labels,
int legendType)
getLegendLabels in class DisplayControlImpllabels - labels to add tolegendType - The type of legend, BOTTOM_LEGEND or SIDE_LEGENDpublic String getMenuLabel()
getMenuLabel in interface DisplayControlgetMenuLabel in class DisplayControlImpl
protected DataInstance doMakeDataInstance(DataChoice dataChoice)
throws RemoteException,
VisADException
Creates and returns the DataInstance
corresponding to a DataChoice. Returns
null if the DataInstance was
somehow invalid.
This method is invoked by the overridable method setData(DataChoice).
doMakeDataInstance in class ObsDisplayControldataChoice - The DataChoice from
which to create a
DataInstance.
VisADException - if a VisAD Failure occurs.
RemoteException - if a Java RMI failure occurs.protected List getFilterNames()
getFilterNames in class StationModelControlprotected String getDetailsContents()
getDetailsContents in class DisplayControlImplpublic void loadData()
StationModelDisplayable.
Declutters the stations if necessary.
loadData in class StationModelControlObsDisplayControl.doMakeDataInstance(DataChoice)protected void addSelectedToList(List listOfStations)
listOfStations - list to add toprotected String getStationTableDescription()
protected List getStationList()
public StationModel getMyStationModel()
public void setStationTableName(String value)
value - name of station table.public void setStationTableNames(List value)
value - The new value for StationTableNamespublic List getStationTableNames()
protected Container doMakeContents()
throws VisADException,
RemoteException
DisplayControl's UI.
doMakeContents in class StationModelControlRemoteException - Java RMI error
VisADException - VisAD Error
protected JTabbedPane doMakeTabs(boolean showDataSets,
boolean showFilters)
throws VisADException,
RemoteException
showDataSets - show the datasets componentshowFilters - show the filters component
RemoteException - On badness
VisADException - On badnessprotected JComponent doMakeDisplayPanel()
protected JComponent doMakeStationListPanel()
public void buttonPressed(int index)
index - which one
protected void getSaveMenuItems(List items,
boolean forMenuBar)
getSaveMenuItems in class StationModelControlitems - List of menu itemsforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legend
protected void getViewMenuItems(List items,
boolean forMenuBar)
getViewMenuItems in class StationModelControlitems - _more_forMenuBar - _more_
public void showFlythrough()
throws Exception
Exception - _more_public void exportLocations()
protected void getEditMenuItems(List items,
boolean forMenuBar)
getEditMenuItems in class StationModelControlitems - List of menu itemsforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legend
protected void makeStationModelEditMenuItems(List items,
boolean forMenuBar)
makeStationModelEditMenuItems in class StationModelControlitems - list of menu itemsforMenuBar - true if for the menu barpublic void actionPerformed(ActionEvent ae)
actionPerformed in interface ActionListeneractionPerformed in class DisplayControlImplae - action event to checkpublic void setSymbolType(int value)
value - symbol type (e.g. StationLocationDisplayable.SYMBOL_PLUS)public int getSymbolType()
public void setIdType(int value)
value - id type (e.g. StationLocationDisplayable.ID_ID)public int getIdType()
public void setShowSymbol(boolean value)
value - true to show the symbol.public boolean getShowSymbol()
public void setShowId(boolean value)
value - true to show the id.public boolean getShowId()
public void setEnabled(boolean value)
value - The new value for Enabledpublic boolean getEnabled()
public void setCenterOnClick(boolean value)
value - The new value for Centerpublic boolean getCenterOnClick()
public void setUseStationModel(boolean value)
value - The new value for UseStationModelpublic boolean getUseStationModel()
public void setOnlyShowFiltered(boolean value)
setOnlyShowFiltered in class StationModelControlvalue - The new value for OnlyShowFilteredpublic void setDeclutter(boolean v)
setDeclutter in class StationModelControlv - new valuepublic void setDetailsInLegend(boolean value)
value - The new value for DetailsInLegendpublic boolean getDetailsInLegend()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||