|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.noaa.pmel.sgt.swing.ValueIconFormat
public class ValueIconFormat
ValueIconFormat is used to create the value string for
ValueIcon. This class can be extended to create more
sophisticated formatting. For example, handling the modulo 360 of
longitude coordinates.
DecimalFormat,
ValueIcon| Field Summary | |
|---|---|
protected java.lang.String |
tfrm_
|
protected java.text.DecimalFormat |
xfrm_
|
protected java.text.DecimalFormat |
yfrm_
|
| Constructor Summary | |
|---|---|
ValueIconFormat(java.lang.String xfrmt,
java.lang.String yfrmt)
Construct ValueIconFormat from x and y coordinate
DeciamalFormats. |
|
| Method Summary | |
|---|---|
java.lang.String |
format(double x,
double y)
Format a string using DecimalFormat for x and y
coordinates. |
java.lang.String |
format(SoTPoint pt)
Format a string using DecimalFormat for x and y
coordinates or GeoDate formatting for time. |
void |
setTimeFormat(java.lang.String tfrmt)
Define the time format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.text.DecimalFormat xfrm_
protected java.text.DecimalFormat yfrm_
protected java.lang.String tfrm_
| Constructor Detail |
|---|
public ValueIconFormat(java.lang.String xfrmt,
java.lang.String yfrmt)
ValueIconFormat from x and y coordinate
DeciamalFormats.
| Method Detail |
|---|
public java.lang.String format(double x,
double y)
DecimalFormat for x and y
coordinates.
public void setTimeFormat(java.lang.String tfrmt)
public java.lang.String format(SoTPoint pt)
DecimalFormat for x and y
coordinates or GeoDate formatting for time.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||