|
||||||||||
| 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.LineProbeControl
public abstract class LineProbeControl
An abstract base class that manages a vertical probe To create a probe call doMakeProbe To be notified of changes override: void probePositionChanged (double x, double y);
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.unidata.idv.control.DisplayControlImpl |
|---|
DisplayControlImpl.SideLegendLabel |
| Field Summary | |
|---|---|
protected String |
positionText
Keep around for the label macros |
static String |
SHARE_PROFILE
profile sharing property |
| 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 | |
|---|---|
LineProbeControl()
Default Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addLabelMacros(String template,
List patterns,
List values)
Add any macro name/value pairs. |
void |
decreaseProbeSize()
Decrease the probe size |
void |
doMakeProbe()
Default doMakeProbe method. |
void |
doMakeProbe(Color c)
Make the probe with the specific Color. |
void |
doMakeProbe(Color probeColor,
ViewDescriptor view)
Make the probe with the specific Color and
ViewDescriptor. |
void |
doMakeProbe(ViewDescriptor view)
Make the probe with the specific ViewDescriptor. |
JMenu |
doMakeProbeMenu(JMenu probeMenu)
Make a menu for controlling the probe size, shape and position. |
protected void |
doMoveProbe()
Method called when probe is moved. |
protected void |
getEditMenuItems(List items,
boolean forMenuBar)
Get edit menu items |
RealTuple |
getGridCenterPosition()
Get initial XY position from grid data. |
RealTuple |
getInitialLinePosition()
Get initial XY position from the screen |
RealTuple |
getInitialPosition()
Get the initial position of the probe set during unpersistence. |
void |
getLegendLabels(List labels,
int legendType)
Append any label information to the list of labels. |
protected void |
getMacroNames(List names,
List labels)
Add any macro name/label pairs |
String |
getMarker()
Get the Marker property. |
float |
getPointSize()
Get the PointSize property. |
RealTuple |
getPosition()
Get the position of the probe. |
void |
increaseProbeSize()
Increase the probe size |
protected void |
probePositionChanged(RealTuple position)
This gets called when either the user moves the probe point or when we get a sharable event to move the probe point. |
void |
projectionChanged()
Respond to a change in the display's projection. |
void |
propertyChange(PropertyChangeEvent evt)
Handle changes |
void |
receiveShareData(Sharable from,
Object dataId,
Object[] data)
Method called when sharing is enabled. |
void |
resetProbePosition()
Reset the position of the probe to the center. |
void |
setMarker(String value)
Set the Marker property. |
void |
setPointSize(float value)
Set the PointSize property. |
void |
setPosition(RealTuple p)
Set the initial position of the probe. |
void |
setProbePosition(double x,
double y)
Set the probe position from display x and y positions. |
void |
setProbePosition(RealTuple xy)
Set the probe position. |
protected void |
updateLegendLabel()
This method is called to update the legend labels when some state has changed in this control that is reflected in the labels. |
| 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 String SHARE_PROFILE
protected String positionText
| Constructor Detail |
|---|
public LineProbeControl()
| Method Detail |
|---|
public void doMakeProbe()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD Error
public void doMakeProbe(Color c)
throws VisADException,
RemoteException
Color.
c - color for probe.
RemoteException - Java RMI error
VisADException - VisAD Error
public void doMakeProbe(ViewDescriptor view)
throws VisADException,
RemoteException
ViewDescriptor.
view - view descriptor
RemoteException - Java RMI error
VisADException - VisAD Error
public void doMakeProbe(Color probeColor,
ViewDescriptor view)
throws VisADException,
RemoteException
Color and
ViewDescriptor.
probeColor - color for the probeview - view descriptor
RemoteException - Java RMI error
VisADException - VisAD Errorpublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpropertyChange in class DisplayControlImplevt - The eventpublic void resetProbePosition()
protected void getEditMenuItems(List items,
boolean forMenuBar)
getEditMenuItems in class DisplayControlImplitems - list of menu itemsforMenuBar - true if for the menu bar
public void setProbePosition(RealTuple xy)
throws VisADException,
RemoteException
xy - X and Y position of the probe.
VisADException - problem setting probe position
RemoteException - problem setting probe position on remote display
public void setProbePosition(double x,
double y)
throws VisADException,
RemoteException
x - X position of the probe.y - Y position of the probe.
VisADException - problem setting probe position
RemoteException - problem setting probe position on remote displaypublic void setPosition(RealTuple p)
p - position
public RealTuple getPosition()
throws VisADException,
RemoteException
RemoteException - Java RMI error
VisADException - VisAD Errorpublic RealTuple getInitialPosition()
null if not set during
initialization.
public void receiveShareData(Sharable from,
Object dataId,
Object[] data)
receiveShareData in interface SharablereceiveShareData in class DisplayControlImplfrom - Sharable that send the data.dataId - identifier for data to be shareddata - data to be shared.protected void doMoveProbe()
protected void probePositionChanged(RealTuple position)
position - new position for the probe.public void projectionChanged()
projectionChanged in interface DisplayControlprojectionChanged in class DisplayControlImplpublic JMenu doMakeProbeMenu(JMenu probeMenu)
probeMenu - The menu to add to
public void increaseProbeSize()
public void decreaseProbeSize()
public void setPointSize(float value)
value - The new value for PointSizepublic float getPointSize()
public RealTuple getGridCenterPosition()
throws VisADException,
RemoteException
RemoteException - Java RMI problem
VisADException - VisAD problem
public RealTuple getInitialLinePosition()
throws VisADException,
RemoteException
RemoteException - Java RMI problem
VisADException - VisAD problempublic void setMarker(String value)
value - The new value for Markerpublic String getMarker()
protected void getMacroNames(List names,
List labels)
getMacroNames in class DisplayControlImplnames - List of macro nameslabels - List of macro labels
protected void addLabelMacros(String template,
List patterns,
List values)