|
||||||||||
| 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.GridDisplayControl
ucar.unidata.idv.control.TrackControl
public class TrackControl
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 |
| Field Summary | |
|---|---|
protected StationModelDisplayable |
indicator
selector point |
protected LayoutModelWidget |
layoutModelWidget
the widget for the layout model |
protected static String[] |
TIMES_TO_USE
Time strings |
protected DisplayableData |
timesHolder
the displayable that holdss the times |
| Fields inherited from class ucar.unidata.idv.control.GridDisplayControl |
|---|
CMD_CONTOURDIALOG, CMD_SETLEVELS, gridDataInstance, INITIAL_PROBE_EARTHLOCATION, log_, settingLevel |
| 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 | |
|---|---|
TrackControl()
Create a new Track Control; set the attribute flags |
|
| Method Summary | |
|---|---|
protected void |
addDisplaySettings(DisplaySettingsDialog dsd)
Add display settings paricular to this control |
protected void |
addTimeModeWidget(List controlWidgets)
the control widgets to add to |
void |
applyTimeRange()
Handle some sort of time change. |
protected Container |
doMakeContents()
Make the gui |
protected Component |
doMakeTimeOptionWidget()
Make the time option widget |
void |
editLayoutModel()
Popup the station model editor |
boolean |
getAskedUserToDeclutterTime()
Get the AskedUserToDeclutterTime property. |
protected int |
getColorRangeIndex()
Returns the index to use in the GridDataInstance array of ranges for color ranges. |
String |
getColorWidgetLabel()
Return the label that is to be used for the color widget This allows derived classes to override this and provide their own name, |
void |
getControlWidgets(List controlWidgets)
Add control widgets specific to this control to the list |
protected Set |
getDataTimeSet()
Collect the time animation set from the displayables. |
LatLonPoint |
getDisplayCenter()
Get the display center |
int |
getLineWidth()
Get the line width property. |
StationModel |
getMarkerLayout()
Get the current layout model view. |
float |
getMarkerScale()
Get the scale the user can enter |
boolean |
getMarkerVisible()
Get whether the marker is visible |
protected Hashtable |
getRequestProperties()
Override the base class method that creates request properties and add in the appropriate 2d/3d request parameter. |
protected JComponent[] |
getTimeDeclutterComps()
Make the gui panel for the time decluttering |
boolean |
getTimeDeclutterEnabled()
Get the TimeDeclutterEnabled property. |
double |
getTimeDeclutterMinutes()
Get the TimeDeclutterMinutes property. |
String |
getTrackType()
Get the track type for this control. |
protected int |
getTrackWidth()
Get the track width property. |
protected FieldImpl |
getTrjGridDataInstance()
_more_ |
boolean |
getUseTrackTimes()
Deprecated. |
protected void |
getViewMenuItems(List items,
boolean forMenuBar)
Add in the flythrough menu |
protected boolean |
haveMultipleFields()
Return whether the Data held by this display control contains multiple fields (e.g., for the isosurface colored by another parameter |
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 |
initAfterUnPersistence(ControlContext vc,
Hashtable properties,
List preSelectedDataChoices)
Called by the IntegratedDataViewer to
initialize after this control has been unpersisted |
protected JPanel |
makeLayoutModelWidget()
Make the gui widget for setting the layout model |
protected FieldImpl |
mergeGrid(FieldImpl fi)
merge tracks into one |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
Method called by other classes that share the selector. |
void |
setAskedUserToDeclutterTime(boolean value)
Set the AskedUserToDeclutterTime property. |
protected boolean |
setData(DataChoice choice)
Set the data in this control |
protected void |
setDataInstance(DataInstance dataInstance)
Set the dataInstance and its paramName in the superclass member data. |
void |
setDataTimeRange(DataTimeRange range)
Set the DataTimeRange |
void |
setLineWidth(int width)
Deprecated. use #setLineWidth(int) |
void |
setMarkerLayout(StationModel model)
Set the current station model view. |
void |
setMarkerScale(float f)
Set the scale the user can enter |
void |
setMarkerSymbol(String value)
Deprecated. now use #setMarkerLayout(StationModel) |
void |
setMarkerText(String value)
Deprecated. now use #setMarkerLayout(StationModel) |
void |
setMarkerVisible(boolean value)
Set the marker visible |
void |
setStationModelFromWidget(StationModel sm)
set the station model |
void |
setTimeDeclutterEnabled(boolean value)
Set the TimeDeclutterEnabled property. |
void |
setTimeDeclutterMinutes(double value)
Set the TimeDeclutterMinutes property. |
void |
setTimeSubsetEnabled(boolean value)
Deprecated. |
void |
setTimeSubsetMinutes(double value)
Deprecated. |
protected void |
setTrackTimes()
Set the times on the track |
void |
setTrackType(String type)
Set the track type for this control. |
void |
setTrackWidth(int width)
Deprecated. use #setLineWidth(int) |
void |
setUseTrackTime(boolean value)
Deprecated. |
void |
setUseTrackTimes(boolean value)
Deprecated. |
void |
showFlythrough()
Show the flythrough |
protected void |
timeChanged(Real time)
Respond to a timeChange event |
protected void |
timeDeclutterChanged()
Handle when the time declutering state has changed |
protected void |
updateIndicator()
Update the indicator with new shapes |
protected void |
updateTimeSelectRange()
Update the select range for the widget with the data's range |
| 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 |
|---|
protected LayoutModelWidget layoutModelWidget
protected StationModelDisplayable indicator
protected DisplayableData timesHolder
protected static final String[] TIMES_TO_USE
| Constructor Detail |
|---|
public TrackControl()
| Method Detail |
|---|
protected void getViewMenuItems(List items,
boolean forMenuBar)
getViewMenuItems in class DisplayControlImplitems - the menu itemsforMenuBar - true for the menu bar
public void showFlythrough()
throws Exception
Exception - problem showing the flythrough
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class DisplayControlImpldataChoice - the DataChoice of the moment.
RemoteException - Java RMI error
VisADException - VisAD Errorprotected void updateIndicator()
public String getColorWidgetLabel()
getColorWidgetLabel in class DisplayControlImplprotected void setDataInstance(DataInstance dataInstance)
setDataInstance in class DisplayControlImpldataInstance - the data instance to use
public LatLonPoint getDisplayCenter()
throws RemoteException,
VisADException
getDisplayCenter in class DisplayControlImplRemoteException - Java RMI error
VisADException - VisAD Errorprotected void timeChanged(Real time)
timeChanged in class DisplayControlImpltime - new time
protected boolean setData(DataChoice choice)
throws VisADException,
RemoteException
setData in class DisplayControlImplchoice - data choice
RemoteException - Java RMI error
VisADException - VisAD Error
protected FieldImpl mergeGrid(FieldImpl fi)
throws VisADException,
RemoteException
fi - input fieldimpl contains one or more tracks
RemoteException - _more_
VisADException - _more_
protected void setTrackTimes()
throws VisADException,
RemoteException
RemoteException - Java RMI problem
VisADException - VisAD problem
protected Container doMakeContents()
throws VisADException,
RemoteException
doMakeContents in class DisplayControlImplRemoteException - On Badness
VisADException - On Badnessprotected void timeDeclutterChanged()
protected JComponent[] getTimeDeclutterComps()
public void getControlWidgets(List controlWidgets)
throws VisADException,
RemoteException
getControlWidgets in class DisplayControlImplcontrolWidgets - list of control widgets
RemoteException - Java RMI error
VisADException - VisAD Errorprotected void addTimeModeWidget(List controlWidgets)
addTimeModeWidget in class DisplayControlImplcontrolWidgets - the control widgets to add toprotected Component doMakeTimeOptionWidget()
protected FieldImpl getTrjGridDataInstance()
public void initAfterUnPersistence(ControlContext vc,
Hashtable properties,
List preSelectedDataChoices)
IntegratedDataViewer to
initialize after this control has been unpersisted
initAfterUnPersistence in interface DisplayControlinitAfterUnPersistence in class DisplayControlImplvc - The context in which this control existsproperties - Properties that may hold thingspreSelectedDataChoices - set of preselected data choicesprotected void addDisplaySettings(DisplaySettingsDialog dsd)
addDisplaySettings in class DisplayControlImpldsd - the DisplaySettingsDialogpublic void setDataTimeRange(DataTimeRange range)
setDataTimeRange in class DisplayControlImplrange - the DataTimeRangepublic void applyTimeRange()
applyTimeRange in class DisplayControlImplprotected Hashtable getRequestProperties()
getRequestProperties in class DisplayControlImplprotected void updateTimeSelectRange()
protected boolean haveMultipleFields()
haveMultipleFields in class GridDisplayControlprotected int getColorRangeIndex()
getColorRangeIndex in class GridDisplayControl
public void receiveShareData(Sharable from,
Object dataId,
Object[] data)
receiveShareData in interface SharablereceiveShareData in class DisplayControlImplfrom - other class.dataId - type of sharingdata - Array of data being shared. In this case, the first
(and only?) object in the array is the levelpublic void setTrackWidth(int width)
width - width for track (pixels)public void setLineWidth(int width)
setLineWidth in class DisplayControlImplwidth - width for track (pixels)public int getLineWidth()
getLineWidth in class DisplayControlImpl
protected Set getDataTimeSet()
throws RemoteException,
VisADException
getDataTimeSet in class DisplayControlImplRemoteException - On badness
VisADException - On badnessprotected int getTrackWidth()
public void setTrackType(String type)
type - track typepublic String getTrackType()
public void setTimeSubsetMinutes(double value)
value - The new value for TimeSubsetMinutespublic void setTimeSubsetEnabled(boolean value)
value - The new value for TimeSubsetEnabledpublic void setUseTrackTime(boolean value)
value - The new value for useTrackTimepublic void setUseTrackTimes(boolean value)
value - The new value for useTrackTimepublic boolean getUseTrackTimes()
public void setTimeDeclutterMinutes(double value)
value - The new value for TimeDeclutterMinutespublic double getTimeDeclutterMinutes()
public void setTimeDeclutterEnabled(boolean value)
value - The new value for TimeDeclutterEnabledpublic boolean getTimeDeclutterEnabled()
public void setAskedUserToDeclutterTime(boolean value)
value - The new value for AskedUserToDeclutterTimepublic boolean getAskedUserToDeclutterTime()
public void setMarkerText(String value)
value - The new value for MarkerTextpublic void setMarkerSymbol(String value)
value - The new value for MarkerSymbolpublic void setMarkerLayout(StationModel model)
model - station model layoutpublic StationModel getMarkerLayout()
public float getMarkerScale()
public void setMarkerScale(float f)
f - The scalepublic void editLayoutModel()
public void setMarkerVisible(boolean value)
value - true to be visiblepublic boolean getMarkerVisible()
public void setStationModelFromWidget(StationModel sm)
sm - the station modelprotected JPanel makeLayoutModelWidget()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||