gov.noaa.pmel.sgt.swing
Class ValueIconFormat
java.lang.Object
|
+--gov.noaa.pmel.sgt.swing.ValueIconFormat
- public class ValueIconFormat
- extends java.lang.Object
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.
- Since:
- 2.0
- Version:
- $Revision: 1.2 $, $Date: 2001/02/06 20:05:52 $
- Author:
- Donald Denbo
- See Also:
DecimalFormat,
ValueIcon
|
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 |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueIconFormat
public ValueIconFormat(java.lang.String xfrmt,
java.lang.String yfrmt)
- Construct
ValueIconFormat from x and y coordinate
DeciamalFormats.
format
public java.lang.String format(double x,
double y)
- Format a string using
DecimalFormat for x and y
coordinates
Send comments about the Scientific Graphics toolkit to dwd@pmel.noaa.gov. For more information about Java Development in the EPIC Group see the EPIC Software Page
Generated on December 13 2001