sgtplot.swing
Class ValueIconFormat
- java.lang.Object
-
- sgtplot.swing.ValueIconFormat
-
public class ValueIconFormat extends java.lang.ObjectValueIconFormatis used to create the value string forValueIcon. This class can be extended to create more sophisticated formatting. For example, handling the modulo 360 of longitude coordinates.- Since:
- 2.0
- See Also:
DecimalFormat,ValueIcon
-
-
Constructor Summary
Constructors Constructor and Description ValueIconFormat(java.lang.String xfrmt, java.lang.String yfrmt)ConstructValueIconFormatfrom x and y coordinateDeciamalFormats.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Stringformat(double x, double y)Format a string usingDecimalFormatfor x and y coordinates.java.lang.Stringformat(SoTPoint pt)Format a string usingDecimalFormatfor x and y coordinates orGeoDateformatting for time.voidsetTimeFormat(java.lang.String tfrmt)Define the time format.
-
-
-
Constructor Detail
-
ValueIconFormat
public ValueIconFormat(java.lang.String xfrmt, java.lang.String yfrmt)ConstructValueIconFormatfrom x and y coordinateDeciamalFormats.
-
-
Method Detail
-
format
public java.lang.String format(double x, double y)Format a string usingDecimalFormatfor x and y coordinates.
-
setTimeFormat
public void setTimeFormat(java.lang.String tfrmt)
Define the time format.- Since:
- 3.0
-
format
public java.lang.String format(SoTPoint pt)
Format a string usingDecimalFormatfor x and y coordinates orGeoDateformatting for time.- Since:
- 3.0
-
-
DMelt 3.0 © DataMelt by jWork.ORG