Package jsky.science

Examples of jsky.science.ProperMotion


    public ProperMotionPanel() {
        super();

        setLayout(new GridBagLayout());
        fMotion = new ProperMotion();

        fPanelOffset = new CoordinatesOffsetPanel();

        fRaPmLabel = new JLabel("+/-");
        fRaPmField = new JTextField(3 + CoordinatesOffset.NUM_DECIMAL);
        fRaPmUnits = new JLabel("/yr");

        fDecPmLabel = new JLabel("+/-");
        fDecPmField = new JTextField(3 + CoordinatesOffset.NUM_DECIMAL);
        fDecPmUnits = new JLabel("/yr");

        add(fPanelOffset);
        add(fRaPmLabel);
        add(fRaPmField);
        add(fRaPmUnits);
        add(fDecPmLabel);
        add(fDecPmField);
        add(fDecPmUnits);

        String tooltip = "Errors should formatted, +/-##.##, units are arcsec/yr";
        fRaPmField.setToolTipText(tooltip);
        fDecPmField.setToolTipText(tooltip);

        setProperMotion(new ProperMotion());
        setOrientation(HORIZONTAL);

        fPanelOffset.addPropertyChangeListener(new PropertyChangeListener() {

            public void propertyChange(PropertyChangeEvent event) {
View Full Code Here


            setConstraints(fDecPmUnits, 6, 0, 1, 1, GridBagConstraints.WEST);
        }
    }

    public static void main(String[] args) {
        ProperMotion offset = new ProperMotion(5., 5., Coordinates.ARCSEC);
        ProperMotionPanel panel = new ProperMotionPanel();
        panel.setProperMotion(offset);
        panel.setOrientation(HORIZONTAL);
        JOptionPane.showConfirmDialog(null, panel);
    }
View Full Code Here

TOP

Related Classes of jsky.science.ProperMotion

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.