|
||||||||||
| 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.PlanViewControl
ucar.unidata.idv.control.ValuePlanViewControl
public class ValuePlanViewControl
Class for controlling the display of plan view text plots of gridded data.
| 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.PlanViewControl |
|---|
currentLevel, currentLevels, currentSlice, datachoice, levelReadout, MACRO_LEVEL, SHARE_LEVEL |
| 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, 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, SIDE_LEGEND |
| Constructor Summary | |
|---|---|
ValuePlanViewControl()
Default constructor. |
|
| Method Summary | |
|---|---|
protected LinearLatLonSet |
calculateLatLonBounds(Rectangle2D screenBounds)
Calculate the LatLonBounds based on the VisAD screen bound. |
protected DisplayableData |
createPlanDisplay()
Method to create the particular DisplayableData that
this this instance uses for data depictions. |
void |
editLayoutModel()
Popup the station model editor |
protected Rectangle2D |
getBounds()
Get the bounds for the visible portion of the screen. |
void |
getControlWidgets(List controlWidgets)
Add into the given the widgets for the different attributes |
boolean |
getDeclutter()
Get whether this DisplayControl should be decluttered or not. |
float |
getDeclutterFilter()
Get whether this DisplayControl should be decluttered or not. |
StationModel |
getLayoutModel()
Get the current layout model view. |
float |
getLayoutScale()
Get the scale the user can enter |
protected float |
getScaleFromDisplayable()
A utility to get the scale from the dislayable |
protected FieldImpl |
getSliceForDisplay(FieldImpl slice)
Get the slice for the display |
protected void |
handleChangedStationModel(StationModel changedModel)
The station model changed |
void |
handleDisplayChanged(DisplayEvent evt)
Listen for DisplayEvents |
void |
initDone()
Init is done |
protected void |
loadDataInThread()
A utility method that sets the wait cursor and calls loadData in a separate thread . |
protected JPanel |
makeLayoutModelWidget()
Make the gui widget for setting the layout model |
void |
projectionChanged()
Method to call if projection changes. |
void |
propertyChange(PropertyChangeEvent evt)
Property change method. |
void |
setDeclutter(boolean v)
Set whether this DisplayControl should be decluttered or not. |
void |
setDeclutterFilter(float filter)
Set whether the filtering for decluttering. |
void |
setLayoutModel(StationModel model)
Set the current station model view. |
void |
setLayoutScale(float f)
Set the scale the user can enter |
| Methods inherited from class ucar.unidata.idv.control.DisplayControlBase |
|---|
boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToEarth, boxToScreen, calculateRectangle, createStationTfo, earthToBox, earthToBox, earthToBoxTuple, earthToScreen, formatLevels, getScreenCenter, getSelectedStation, isLeftButtonDown, logException, logException, makeEarthLocation, 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.collab.Sharable |
|---|
getShareGroup, getSharing, getUniqueId |
| Constructor Detail |
|---|
public ValuePlanViewControl()
PlanViewControl
| Method Detail |
|---|
protected DisplayableData createPlanDisplay()
throws VisADException,
RemoteException
DisplayableData that
this this instance uses for data depictions.
createPlanDisplay in class PlanViewControlRemoteException - Java RMI error
VisADException - VisAD Errorpublic void initDone()
initDone in class DisplayControlImplpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpropertyChange in class PlanViewControlevt - event to act onprotected void handleChangedStationModel(StationModel changedModel)
changedModel - The changed station model_public void handleDisplayChanged(DisplayEvent evt)
handleDisplayChanged in class DisplayControlImplevt - The eventpublic void projectionChanged()
projectionChanged in interface DisplayControlprojectionChanged in class PlanViewControl
public void getControlWidgets(List controlWidgets)
throws VisADException,
RemoteException
getControlWidgets in class PlanViewControlcontrolWidgets - List of ControlWidgets to add into
RemoteException
VisADExceptionprotected void loadDataInThread()
protected FieldImpl getSliceForDisplay(FieldImpl slice)
throws VisADException
getSliceForDisplay in class PlanViewControlslice - slice to use
VisADException - problem subsetting the slicepublic void setLayoutModel(StationModel model)
model - station model layoutpublic StationModel getLayoutModel()
public float getLayoutScale()
public void setLayoutScale(float f)
f - The scalepublic void setDeclutter(boolean v)
v - true to declutterpublic boolean getDeclutter()
public void setDeclutterFilter(float filter)
filter - value of 1 (default) for no overlap (default).
0 < filter < 1 allows some data overlap.
filter > 1 causes data to be more widely spaced.public float getDeclutterFilter()
public void editLayoutModel()
protected float getScaleFromDisplayable()
protected JPanel makeLayoutModelWidget()
protected Rectangle2D getBounds()
protected LinearLatLonSet calculateLatLonBounds(Rectangle2D screenBounds)
screenBounds - VisAD screen bounds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||