Package jsky.coords

Examples of jsky.coords.DMS


                if (c == Double.class)
                    return hms.getVal();
                else
                    return new Float(hms.getVal());
            } else if (fieldDesc.isDec()) {
                DMS dms = new DMS(s);
                if (c == Double.class)
                    return dms.getVal();
                else
                    return new Float(dms.getVal());
            }
        }

        try {
            if (c == Double.class) {
View Full Code Here


        }
        double latArr[] = new double[latLevels.size()];
        String latLabels[] = new String[latLevels.size()];
        for (int i = 0; i < latArr.length; i++) {
            latArr[i] = latLevels.get(i);
            latLabels[i] = (new DMS(latArr[i])).toString();
        }

        if (polar) {
            drawRadial(g);
        } else {
View Full Code Here

        if (!Double.isNaN(val)) {
            if (_isRA) {
                HMS hms = new HMS(val/15.);
                ((JLabel) component).setText(hms.toString(_showSeconds));
            } else {
                DMS dms = new DMS(val);
                ((JLabel) component).setText(dms.toString(_showSeconds));
            }
        }

        return component;
    }
View Full Code Here

        }
        if (!Double.isNaN(val)) {
            if (hoursFlag) {
                ((JTextField) component).setText(new HMS(val / 15.).toString());
            } else {
                ((JTextField) component).setText(new DMS(val).toString());
            }
        }

        return component;
    }
View Full Code Here

                } catch (Exception e) {
                    DialogUtil.error("Invalid value: '" + o + "', expected decimal degrees or h:m:s");
                }
            } else {
                try {
                    DMS dms = new DMS((String) o);
                    return dms.getVal();
                } catch (Exception e) {
                    DialogUtil.error("Invalid value: '" + o + "', expected decimal degrees or d:m:s");
                }
            }
        }
View Full Code Here

TOP

Related Classes of jsky.coords.DMS

Copyright © 2018 www.massapicom. 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.