|
||||||||||
| 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.LocationIndicatorControl
public class LocationIndicatorControl
A MetApps Display Control for drawing lines on a navigated display.
| Nested Class Summary | |
|---|---|
static class |
LocationIndicatorControl.AxisInfo
Holds state about an axis |
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
static int |
IDX_X
Indices into arrays |
static int |
IDX_Y
Indices into arrays |
static int |
IDX_Z
Indices into arrays |
| 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 | |
|---|---|
LocationIndicatorControl()
Create a new Drawing Control; set attributes. |
|
| Method Summary | |
|---|---|
protected boolean |
canHandleEvents()
Should we handle display events |
void |
centerAtOrigin()
Center at origin |
void |
centerAtPoint()
Center at bearing point |
protected void |
checkVisibility()
Have the axisInfos check their visibilty |
void |
colorChanged(String colorName)
The color has changed |
protected Container |
doMakeContents()
Make the gui |
void |
doRemove()
Remove this DisplayControl from the system. |
void |
fontChanged(Object value)
The font has changed |
boolean |
getEnabled()
Get the Enabled property. |
protected JComponent |
getExtraLegendComponent(int legendType)
Assume that any display controls that have a color table widget will want the color table to show up in the legend. |
Font |
getFont()
Get the font from the ui widget |
boolean |
getKeepInBox()
Get the KeepInBox property. |
protected void |
getLegendLabels(List labels,
int legendType)
Overwrite the legend labels |
int |
getLineWidth()
Get the line width |
float[] |
getOriginLoc()
Get the Origin property. |
float[] |
getPointLoc()
Get the Point property. |
boolean |
getShowPoint()
Get the ShowPoint property. |
double |
getSolidAlphaPercent()
Get the SolidAlphaPercent property. |
Color |
getSolidColor()
Get the solid plane color |
float |
getSpan()
Get the Span property. |
protected void |
getViewMenuItems(List items,
boolean forMenuBar)
Add to view menu |
LocationIndicatorControl.AxisInfo |
getXInfo()
Get the x axis info |
LocationIndicatorControl.AxisInfo |
getYInfo()
Get the y axis info |
LocationIndicatorControl.AxisInfo |
getZInfo()
Get the z axis info |
void |
goToAddress(String which)
Go the a street address |
void |
goToAddressInner(String which)
Go the a street address |
void |
handleDisplayChanged(DisplayEvent event)
Listen for DisplayEvents |
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). |
double[] |
latLonAltToXYZ(double lat,
double lon,
double alt)
Convert the lat/lon/alt to visad box coordinates |
void |
lineWidthChanged(Integer v)
The line width has changed |
void |
projectionChanged()
Respond to the projection changing event |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
Method called by other classes that share the the state. |
void |
rotateAbout(Integer i)
Rotate about the index |
void |
setDisplayVisibility(boolean on)
Turn on the visibility of this display |
void |
setEnabled(boolean value)
Set the Enabled property. |
void |
setFont(Font value)
Set the Font property. |
void |
setKeepInBox(boolean value)
Set the KeepInBox property. |
void |
setLineWidth(int width)
Set the width of the lines. |
void |
setOriginLoc(float[] value)
Set the Origin property. |
void |
setPointLoc(float[] value)
Set the Point property. |
static void |
setPts(LineDrawing ld,
float x1,
float x2,
float y1,
float y2,
float z1,
float z2)
Set the location of the line |
void |
setShowPoint(boolean value)
Set the ShowPoint property. |
void |
setSolidAlphaPercent(double value)
Set the SolidAlphaPercent property. |
void |
setSolidColor(Color c)
Set the solid plane color |
void |
setSpan(float value)
Set the Span property. |
void |
setVisibleX(boolean value)
Set the VisibleX property. |
void |
setXInfo(LocationIndicatorControl.AxisInfo info)
Set the x axis info |
void |
setYInfo(LocationIndicatorControl.AxisInfo info)
Set the y axis info |
void |
setZInfo(LocationIndicatorControl.AxisInfo info)
Set the z axis info |
protected boolean |
shouldAddControlListener()
Signal base class to add this as a control listener |
protected boolean |
shouldAddDisplayListener()
Signal base class to add this as a display listener |
void |
spanSliderChanged(int value)
The span value has changed |
void |
transparencyChanged(Object selected)
Handle the alpha value changing |
void |
updatePositionFromReadout(ucar.unidata.idv.control.LocationIndicatorControl.LocationReadout readout)
Update the position from the text fields |
void |
viewpointChanged()
Respond to control changed events from the view manager |
| 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 |
| Field Detail |
|---|
public static final int IDX_X
public static final int IDX_Y
public static final int IDX_Z
| Constructor Detail |
|---|
public LocationIndicatorControl()
| Method Detail |
|---|
public boolean init(DataChoice dataChoice)
throws VisADException,
RemoteException
init in class DisplayControlImpldataChoice - the DataChoice of the moment.
RemoteException - When bad things happen
VisADException - When bad things happenpublic void updatePositionFromReadout(ucar.unidata.idv.control.LocationIndicatorControl.LocationReadout readout)
readout - The readout
public static void setPts(LineDrawing ld,
float x1,
float x2,
float y1,
float y2,
float z1,
float z2)
throws VisADException,
RemoteException
ld - The displayablex1 - locationx2 - locationy1 - locationy2 - locationz1 - locationz2 - location
RemoteException - On badness
VisADException - On badnesspublic void setDisplayVisibility(boolean on)
setDisplayVisibility in interface DisplayControlsetDisplayVisibility in class DisplayControlImplon - Visible?protected void checkVisibility()
public void doRemove()
throws VisADException,
RemoteException
doRemove in interface DisplayControldoRemove in class DisplayControlImplRemoteException - When bad things happen
VisADException - When bad things happenprotected boolean shouldAddDisplayListener()
shouldAddDisplayListener in class DisplayControlImplprotected boolean shouldAddControlListener()
shouldAddControlListener in class DisplayControlImpl
protected void getLegendLabels(List labels,
int legendType)
getLegendLabels in class DisplayControlImpllabels - List of labelslegendType - Side or bottompublic void viewpointChanged()
viewpointChanged in class DisplayControlImplpublic void projectionChanged()
projectionChanged in interface DisplayControlprojectionChanged in class DisplayControlImplprotected JComponent getExtraLegendComponent(int legendType)
getExtraLegendComponent in class DisplayControlImpllegendType - type of legend
protected boolean canHandleEvents()
public void handleDisplayChanged(DisplayEvent event)
handleDisplayChanged in class DisplayControlImplevent - The event
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 fontChanged(Object value)
value - The valuepublic void colorChanged(