|
||||||||||
| 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
ucar.unidata.idv.control.TextProductControl
public class TextProductControl
Class to display weather text
| 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 | |
|---|---|
static String |
HTML_TYPE
type for html |
static String |
TEXT_TYPE
type for text |
| 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 | |
|---|---|
TextProductControl()
Default cstr; |
|
| Method Summary | |
|---|---|
protected Container |
doMakeContents()
Make the gui |
String |
getDisplayType()
Get the text display type |
int |
getHours()
Get the Hours property. |
ProductType |
getProductType()
Get the Product property. |
List<String> |
getSelectedStationIds()
Get the SelectedStationId property. |
boolean |
getShowGlossary()
Get the ShowGlossary property. |
protected List |
getStationList()
Get the station list |
void |
hyperlinkUpdate(HyperlinkEvent e)
Handle a hyperlink update |
boolean |
init(DataChoice dataChoice)
Called to make this kind of Display Control; also calls code to made the Displayable. |
static void |
main(String[] args)
Test this out |
protected void |
selectedStationsChanged(List selectionList)
Handle a change to the selected stations |
void |
setDisplayType(String type)
Set the text display type |
void |
setHours(int value)
Set the Hours property. |
void |
setProductType(ProductType value)
Set the Product property. |
void |
setSelectedStationIds(List<String> value)
Set the SelectedStationId property. |
void |
setShowGlossary(boolean value)
Set the ShowGlossary property. |
protected void |
setText(String newText,
boolean fromProduct)
Set the text |
protected void |
timeChanged(Real time)
Handle the time changed |
void |
updateText()
Update the text. |
protected void |
xxxaddSelectedToList(List listOfStations)
Add selected to list |
| 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 |
| Field Detail |
|---|
public static final String TEXT_TYPE
public static final String HTML_TYPE
| Constructor Detail |
|---|
public TextProductControl()
| Method Detail |
|---|
public void hyperlinkUpdate(HyperlinkEvent e)
hyperlinkUpdate in interface HyperlinkListenerhyperlinkUpdate in class DisplayControlImple - Hyperlink event.
protected Container doMakeContents()
throws VisADException,
RemoteException
doMakeContents in class StationLocationControlRemoteException - On badness
VisADException - On badnessprotected List getStationList()
getStationList in class StationLocationControl
protected void selectedStationsChanged(List selectionList)
throws VisADException,
RemoteException
selectedStationsChanged in class StationLocationControlselectionList - list of stations
RemoteException - On badness
VisADException - On badnesspublic void updateText()
protected void xxxaddSelectedToList(List listOfStations)
listOfStations - list of stations
public static void main(String[] args)
throws Exception
args - text
Exception - problem running the main
protected void setText(String newText,
boolean fromProduct)
newText - The new text to setfromProduct - Is the text from a productprotected void timeChanged(Real time)
timeChanged in class StationModelControltime - the time to set
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
StationLocationControl
init in class StationLocationControldataChoice - the DataChoice of the moment -
VisADException - there was a VisAD error
RemoteException - there was a remote errorpublic void setDisplayType(String type)
type - type (TEXT_TYPE or HTML_TYPE);public String getDisplayType()
public void setProductType(ProductType value)
value - The new value for Productpublic ProductType getProductType()
public void setSelectedStationIds(List<String> value)
value - The new value for SelectedStationIdpublic List<String> getSelectedStationIds()
public void setHours(int value)
value - The new value for Hourspublic int getHours()
public void setShowGlossary(boolean value)
value - The new value for ShowGlossarypublic boolean getShowGlossary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||