|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ucar.unidata.view.geoloc.RangeAndBearingReadout
public class RangeAndBearingReadout
A class for displaying a readout of range and bearing values
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
RangeAndBearingReadout(MapProjectionDisplay mapDisplay)
Create a new RangeAndBearingReadout for the given display |
|
RangeAndBearingReadout(MapProjectionDisplay mapDisplay,
JLabel label)
Create a new RangeAndBearingReadout for the given display and use the supplied label |
|
RangeAndBearingReadout(MapProjectionDisplay mapDisplay,
JLabel label,
String rangeName,
String bearingName)
Create a new RangeAndBearingReadout for the given display and use the supplied label to update with the names |
|
RangeAndBearingReadout(MapProjectionDisplay mapDisplay,
String rangeName,
String bearingName)
Create a new RangeAndBearingReadout for the given display and use the supplied labels |
|
| Method Summary | |
|---|---|
boolean |
getActive()
Get whether this readout is active. |
String |
getBearingName()
Return the name used for bearing values |
String |
getRangeName()
Get the name used for the range label. |
void |
setActive(boolean value)
Set this active |
void |
setBearingName(String newName)
Set the name used for bearing values. |
void |
setMapProjectionDisplay(MapProjectionDisplay mapDisplay)
Set the display to listen to. |
void |
setRangeName(String newName)
Set the range name (label) |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RangeAndBearingReadout(MapProjectionDisplay mapDisplay)
mapDisplay - display to listen to
public RangeAndBearingReadout(MapProjectionDisplay mapDisplay,
JLabel label)
mapDisplay - display to listen tolabel - label to update
public RangeAndBearingReadout(MapProjectionDisplay mapDisplay,
String rangeName,
String bearingName)
mapDisplay - display to listen torangeName - name (label) for range valuesbearingName - name (label) for bearing values
public RangeAndBearingReadout(MapProjectionDisplay mapDisplay,
JLabel label,
String rangeName,
String bearingName)
mapDisplay - display to listen tolabel - label to updaterangeName - name (label) for range valuesbearingName - name (label) for bearing values| Method Detail |
|---|
public void setMapProjectionDisplay(MapProjectionDisplay mapDisplay)
mapDisplay - new map displaypublic void setActive(boolean value)
value - true to be activepublic boolean getActive()
public String getRangeName()
public void setRangeName(String newName)
newName - new range namepublic String getBearingName()
public void setBearingName(String newName)
newName - new bearing name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||