|
||||||||||
| 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.DrawingControl
ucar.unidata.idv.control.TransectDrawingControl
public class TransectDrawingControl
A MetApps Display Control for drawing lines on a navigated display.
| 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.DrawingControl |
|---|
ATTR_EDITABLE, ATTR_TITLE, ATTR_USETIMESINANIMATION, CMD_MOVE, CMD_SELECT, CMD_STRETCH, currentCmd, enabledCbx, FILTER_XGRF, FLAG_FILLED, FLAG_FULLLATLON, glyphs, selectedGlyphs, SHARE_LINES, SUFFIX_XGRF, TAG_EDITOR |
| 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 | |
|---|---|
TransectDrawingControl()
Create a new Drawing Control; set attributes. |
|
| Method Summary | |
|---|---|
protected void |
addControlWidgets(List widgets)
Add gui components to the list |
protected void |
addFileMenuItems(List items,
boolean forMenuBar)
Add the relevant file menu items into the list |
protected void |
doneMovingGlyph(DrawingGlyph glyph)
The user is done moving or resizing the given glyph |
boolean |
getAutoUpdateTransect()
Get the AutoUpdateTransect property. |
protected String |
getGlyphNameDefault(DrawingGlyph glyph)
Use a different name |
protected List |
getShapeCommands()
Provide the list of shape commands to the base class |
boolean |
getShowDisplayTransects()
Get the ShowDisplayTransects property. |
boolean |
getShowRegularTransects()
Get the ShowRegularTransects property. |
void |
initDone()
All initialization is done |
protected void |
makeModePanel(List widgets)
Overwrite base class method to make the mode panel |
void |
removeGlyph(DrawingGlyph glyph)
Overwrite base class method to write out the transects on a delete |
protected void |
selectionChanged()
The selections set of glyphs has changed. |
void |
setAutoUpdateTransect(boolean value)
Set the AutoUpdateTransect property. |
void |
setDisplayedTransect(TransectViewManager tvm)
Add and/or change the displayed transect for the given tvm. |
void |
setDisplayVisibility(boolean on)
Extra check for the display visibility |
void |
setShowDisplayTransects(boolean value)
Set the ShowDisplayTransects property. |
void |
setShowRegularTransects(boolean value)
Set the ShowRegularTransects property. |
boolean |
shouldBeVisible(DrawingGlyph tg)
Overwrite base class method to determine if we should show the glyph |
protected boolean |
showFilledCbx()
Overwrite base class method to not show the filled cbx |
protected boolean |
showLocationWidgets()
Don't show location widgets |
protected boolean |
showTimeWidgets()
Don't show time widgets |
protected void |
timeChanged(Real time)
Ignore this call |
protected void |
transectChanged(DrawingGlyph glyph)
Write out the transects when we've changed |
void |
transectViewsChanged()
This is called by the VMManager to notify us that one of the TransectViewManagers has changed its zoom. |
void |
writeTransects()
Write out the transect xml resource |
void |
zSliderChanged(int value)
Overwrite this even handler to apply the z position to all of the transect glyphs |
| 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 TransectDrawingControl()
| Method Detail |
|---|
public void zSliderChanged(int value)
zSliderChanged in class DrawingControlvalue - New z positionprotected void selectionChanged()
selectionChanged in class DrawingControlprotected void transectChanged(DrawingGlyph glyph)
glyph - Which glyphprotected void doneMovingGlyph(DrawingGlyph glyph)
doneMovingGlyph in class DrawingControlglyph - The glyph that was movedpublic void removeGlyph(DrawingGlyph glyph)
removeGlyph in class DrawingControlglyph - Which glyphpublic void initDone()
initDone in class DisplayControlImplprotected List getShapeCommands()
getShapeCommands in class DrawingControlprotected void addControlWidgets(List widgets)
addControlWidgets in class DrawingControlwidgets - List if gui components
protected void addFileMenuItems(List items,
boolean forMenuBar)
addFileMenuItems in class DrawingControlitems - List of menu itemsforMenuBar - Is this for the menu in the window's menu bar or
for a popup menu in the legend
public void setDisplayedTransect(TransectViewManager tvm)
throws VisADException,
RemoteException
tvm - The view manager
RemoteException - On badness
VisADException - On badnesspublic void writeTransects()
protected boolean showFilledCbx()
showFilledCbx in class DrawingControlprotected void makeModePanel(List widgets)
makeModePanel in class DrawingControlwidgets - List of panel widgets to add toprotected boolean showTimeWidgets()
showTimeWidgets in class DrawingControlprotected boolean showLocationWidgets()
showLocationWidgets in class DrawingControlprotected String getGlyphNameDefault(DrawingGlyph glyph)
getGlyphNameDefault in class DrawingControlglyph - The glyph
public void transectViewsChanged()
public void setAutoUpdateTransect(boolean value)
value - The new value for AutoUpdateTransectpublic boolean getAutoUpdateTransect()
public void setShowRegularTransects(boolean value)
value - The new value for ShowRegularTransectspublic boolean getShowRegularTransects()
public void setShowDisplayTransects(boolean value)
value - The new value for ShowDisplayTransectspublic boolean getShowDisplayTransects()
public void setDisplayVisibility(boolean on)
setDisplayVisibility in interface DisplayControlsetDisplayVisibility in class DrawingControlon - visiblepublic boolean shouldBeVisible(DrawingGlyph tg)
shouldBeVisible in class DrawingControltg - The glyph
protected void timeChanged(Real time)
timeChanged in class DrawingControltime - The time
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||