Documentation of 'sgtplot.swing.ValueIconFormat' Java class
ValueIconFormat
sgtplot.swing

Class 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
    See Also:
    DecimalFormat, ValueIcon
    • Constructor Summary

      Constructors 
      Constructor and Description
      ValueIconFormat(java.lang.String xfrmt, java.lang.String yfrmt)
      Construct ValueIconFormat from x and y coordinate DeciamalFormats.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValueIconFormat

        public ValueIconFormat(java.lang.String xfrmt,
                               java.lang.String yfrmt)
        Construct ValueIconFormat from x and y coordinate DeciamalFormats.
    • Method Detail

      • format

        public java.lang.String format(double x,
                                       double y)
        Format a string using DecimalFormat for 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 using DecimalFormat for x and y coordinates or GeoDate formatting for time.
        Since:
        3.0

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.