astro
Class ConstellationShape
java.lang.Object
astro.ConstellationShape
public class ConstellationShape
- extends Object
A helper class that allows drawing the classical star constellations.
It uses Simbad to resolve constellation giving HR numbers of stars.
According to the parsing rules of SkyPath, the following to chars
are supported to build a whole constellation:
- m followed by an HR number: move to the star with the given
HR number.
- l followed by an HR number: line to the star with the given
HR number.
- cclose path.
|
Field Summary |
static String |
LEO
For test purposes. |
|
Method Summary |
protected static void |
convert(File read,
File write)
Reads from the file in the first argument and converts it into
a SkyPath-parsable string. |
static void |
main(String[] arg)
Reads from the file in the first argument and converts it into
a SkyPath-parsable string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LEO
public static String LEO
- For test purposes.
ConstellationShape
public ConstellationShape()
main
public static void main(String[] arg)
throws IOException
- Reads from the file in the first argument and converts it into
a
SkyPath-parsable string. The numbers found ar HR numbers
and converted into ra/dec using simbad.
- Throws:
IOException
convert
protected static void convert(File read,
File write)
throws IOException
- Reads from the file in the first argument and converts it into
a
SkyPath-parsable string. The numbers found ar HR numbers
and converted into ra/dec using simbad.
- Throws:
IOException