Package jsky.science

Examples of jsky.science.Coordinates


            return null;
        }
    }

    public void setCoordinates(Coordinates position) {
        Coordinates old = getCoordinates();

        firePropertyChange(COORDINATES_PROPERTY, old, position);

        fOldPosition = position;
View Full Code Here


        }
    }

    public void setCoordinates(String ra, String dec) {
        try {
            Coordinates newPosition = Coordinates.valueOf(ra, dec);

            firePropertyChange(COORDINATES_PROPERTY, fOldPosition, newPosition);

            fOldPosition = newPosition;
View Full Code Here

    }

    public void actionPerformed(ActionEvent e) {
        if (e.getActionCommand() == RA_NOTIFY
                || e.getActionCommand() == DEC_NOTIFY) {
            Coordinates newPosition = null;
            try {
                newPosition = Coordinates.valueOf(fRaField.getText(), fDecField.getText());

                firePropertyChange(COORDINATES_PROPERTY, fOldPosition, newPosition);
View Full Code Here

            setCoordinates(fOldPosition);
        }
    }

    public static void main(String[] args) {
        Coordinates offset = new Coordinates(5., 5.);
        CoordinatesPanel panel = new CoordinatesPanel();
        panel.setCoordinates(offset);
        panel.setEquinoxShown(true);
        panel.setOrientation(VERTICAL);
        JOptionPane.showConfirmDialog(null, panel);
View Full Code Here

TOP

Related Classes of jsky.science.Coordinates

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.