|
||||||||||
| 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.RadarGridControl
public class RadarGridControl
Display control for a "RadarGrid," radar range-rings plus radial lines.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary |
|---|
| Fields inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
categories, colorScaleInfo, colorScales, contourInfo, contourInfoParams, controlContext, ctw, cw, dataSelection, defaultView, defaultViewManager, DISPLAY_LIST_NAME, displayListTable, displayMasters, displayUnit, helpUrl, initNoteText, instantiatedWithNoData, noteTextArea, noteWrapper, paramName, requestProperties, settingVisibility, sharables, showNoteText, skipSlider, srw, version, viewManagers |
| 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 | |
|---|---|
RadarGridControl()
Default constructor; does nothing. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Deal with action events from the controls made by this class. |
Container |
doMakeContents()
Make the panel of controls in a vertical box. |
void |
doRemove()
Remove the display control |
protected void |
getEditMenuItems(List items,
boolean forMenuBar)
Add the relevant edit menu items into the list |
Font |
getLabelFont()
Get the LabelFont property. |
double |
getLat()
Get the latitude (degrees) of the center point. |
Color |
getLblColor()
Get the color of the labels. |
double |
getLblSpacing()
Get the spacing of the labels. |
boolean |
getLblVisible()
Get whether distance labels are visible. |
int |
getLblWidth()
Get the width of the labels. |
void |
getLegendLabels(List labels,
int legendType)
Get the extra label used for the legend. |
double |
getLon()
Get the longitude (degrees) of the center point. |
double |
getMaxRadius()
Get the maximum radius value for the range rings. |
RadarGrid |
getRadarGrid()
Return the RadarGrid displayable |
Color |
getRadColor()
Get the color of the radials. |
double |
getRadSpacing()
Get the spacing of the radials. |
boolean |
getRadVisible()
Get whether radii are visible. |
int |
getRadWidth()
Get the width of the radial lines. |
Color |
getRrColor()
Get the color of the range rings. |
double |
getRrSpacing()
Get the spacing of the range rings. |
boolean |
getRrVisible()
Get whether range rings are visible. |
int |
getRrWidth()
Get the width of the range rings. |
int |
getStationIdx()
Get the station index in the list. |
String |
getStationTableName()
Get the StationTableName property. |
void |
handleDisplayChanged(DisplayEvent event)
Listen for DisplayEvents |
boolean |
init(DataChoice dataChoice)
Called to make this kind of Display Control; also makes the Displayable. |
protected boolean |
setData(LatLonPoint llp)
reposition center of radar grid. |
void |
setDisplayVisibility(boolean on)
Override base class method (used for legend bar clicks) so we can control the visiblity of the three items - rings, radials, labels - according to user-clicked gui items |
void |
setInitStationLocation(String l)
For setting the property when this object is created |
void |
setLabelFont(Font value)
Set the LabelFont property. |
void |
setLat(double value)
Set the latitude (degrees) of the center point. |
void |
setLblColor(Color value)
Set the color of the labels. |
void |
setLblSpacing(double value)
Set the spacing of the labels. |
void |
setLblVisible(boolean value)
Set whether distance labels are visible. |
void |
setLblWidth(int width)
Set the width of the labels. |
void |
setLon(double value)
Set the longitude (degrees) of the center point. |
void |
setMaxRadius(double value)
Set the maximum radius value for the range rings. |
void |
setRadColor(Color value)
Set the color of the radials. |
void |
setRadSpacing(double value)
Set the spacing of the radials. |
void |
setRadVisible(boolean value)
Set whether radii are visible. |
void |
setRadWidth(int width)
Set the width of the radial lines. |
void |
setRrColor(Color value)
Set the color of the range rings. |
void |
setRrSpacing(double value)
Set the spacing of the range rings. |
void |
setRrVisible(boolean value)
Set whether range rings are visible. |
void |
setRrWidth(int width)
Set the width of the range rings. |
void |
setStationIdx(int idx)
Set the station index in the list. |
void |
setStationTableName(String value)
Set the StationTableName property. |
void |
setVerticalValue(double value)
Deprecated. Keep this around for legacy bundles. |
protected boolean |
shouldAddDisplayListener()
Signal base class to add this as a display listener |
| 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, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, removeSharable, 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 |
|---|
getShareGroup, getSharing, getUniqueId |
| Constructor Detail |
|---|
public RadarGridControl()
| Method Detail |
|---|
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class DisplayControlImpldataChoice - the DataChoice of the moment; may be null.
RemoteException - Java RMI error
VisADException - VisAD Errorprotected boolean shouldAddDisplayListener()
shouldAddDisplayListener in class DisplayControlImpl
public void doRemove()
throws VisADException,
RemoteException
doRemove in interface DisplayControldoRemove in class DisplayControlImplRemoteException - Badness
VisADException - Badness
protected boolean setData(LatLonPoint llp)
throws VisADException,
RemoteException
llp - new center point
RemoteException - Java RMI error
VisADException - VisAD Errorpublic RadarGrid getRadarGrid()
protected void getEditMenuItems(List items,
boolean forMenuBar)
getEditMenuItems in class DisplayControlImplitems - List of menu itemsforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legendpublic Container doMakeContents()
doMakeContents in class DisplayControlImplContainer that holds the widgets for this controlpublic void setDisplayVisibility(boolean on)
setDisplayVisibility in interface DisplayControlsetDisplayVisibility in class DisplayControlImplon - true to display
public void getLegendLabels(List labels,
int legendType)
getLegendLabels in class DisplayControlImpllabels - labels for legendlegendType - The type of legend, BOTTOM_LEGEND or SIDE_LEGENDpublic void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListeneractionPerformed in class DisplayControlImplevent - event to checkpublic void handleDisplayChanged(DisplayEvent event)
handleDisplayChanged in class DisplayControlImplevent - The eventpublic void setRadColor(Color value)
value - Color of radialspublic Color getRadColor()
Color of radialspublic void setRrColor(Color value)
value - Color of range ringspublic Color getRrColor()
Color of range ringspublic void setLblColor(Color value)
value - Color of labelspublic Color getLblColor()
Color of labelspublic void setRrSpacing(double value)
value - spacing (km)public double getRrSpacing()
public void setLblSpacing(double value)
value - spacing (degrees)public double getLblSpacing()
public void setRadSpacing(double value)
value - spacing (degrees)public double getRadSpacing()
public void setRrVisible(boolean value)
value - true if visiblepublic boolean getRrVisible()
public void setLblVisible(boolean value)
value - true if visiblepublic boolean getLblVisible()
public void setRadVisible(boolean value)
value - true if visiblepu