Examples of padNumZero()


Examples of nav.util.string.StringUtil.padNumZero()

                if (decCoordinate >= 0) {
                    quad = "N";
                } else {
                    quad = "S";
                }
                str = su.padNumZero(Math.abs(deg), 2);
                str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad;
                break;
            case LNG:
                if (decCoordinate >= 0) {
                    quad = "E";
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

                    quad = "N";
                } else {
                    quad = "S";
                }
                str = su.padNumZero(Math.abs(deg), 2);
                str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad;
                break;
            case LNG:
                if (decCoordinate >= 0) {
                    quad = "E";
                } else {
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

                if (decCoordinate >= 0) {
                    quad = "E";
                } else {
                    quad = "W";
                }
                str = su.padNumZero(Math.abs(deg), 3);
                str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad;
        }
        return str;
    }
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

                    quad = "E";
                } else {
                    quad = "W";
                }
                str = su.padNumZero(Math.abs(deg), 3);
                str += "\u00b0" + su.padNumZero(Math.abs(minsDecMins), 2, MINPRECISION) + "'" + quad;
        }
        return str;
    }

    /**
 
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

     */
    public String toStringDec() {
        StringUtil u = new StringUtil();
        switch (coordinate) {
            case LAT:
                return u.padNumZero(decCoordinate, 2, DEGPRECISION);
            case LNG:
                return u.padNumZero(decCoordinate, 3, DEGPRECISION);
        }
        return "error";
    }
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

        StringUtil u = new StringUtil();
        switch (coordinate) {
            case LAT:
                return u.padNumZero(decCoordinate, 2, DEGPRECISION);
            case LNG:
                return u.padNumZero(decCoordinate, 3, DEGPRECISION);
        }
        return "error";
    }

    /**
 
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

        StringUtil u = new StringUtil();

        if (input == 511) {
            output = "n/a";
        } else {
            output = String.valueOf(u.padNumZero(input, 3));
        }

        return output;
    }
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

                        Calendar.MILLISECOND,
                        -newCal.get(Calendar.DST_OFFSET)
                        - newCal.get(Calendar.ZONE_OFFSET));

                // build a string representation of the message time...
                timestampStr = String.valueOf(su.padNumZero(hoursNow, 2))
                        + ":" + String.valueOf(su.padNumZero(minsNow, 2))
                        + ":" + String.valueOf(su.padNumZero(aisSecs, 2));
        }
    }
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

                        -newCal.get(Calendar.DST_OFFSET)
                        - newCal.get(Calendar.ZONE_OFFSET));

                // build a string representation of the message time...
                timestampStr = String.valueOf(su.padNumZero(hoursNow, 2))
                        + ":" + String.valueOf(su.padNumZero(minsNow, 2))
                        + ":" + String.valueOf(su.padNumZero(aisSecs, 2));
        }
    }

    /**
 
View Full Code Here

Examples of nav.util.string.StringUtil.padNumZero()

                        - newCal.get(Calendar.ZONE_OFFSET));

                // build a string representation of the message time...
                timestampStr = String.valueOf(su.padNumZero(hoursNow, 2))
                        + ":" + String.valueOf(su.padNumZero(minsNow, 2))
                        + ":" + String.valueOf(su.padNumZero(aisSecs, 2));
        }
    }

    /**
     * Returns the sender's MMSI.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.