astro
Class GridShape
java.lang.Object
astro.GridShape
public class GridShape
- extends Object
A class that comprises a grid-line. It uses a Morphing instance to
convert a ra or de circle into a Shape object. Note that the
Morphing instance should retrieve null if a ra/de point is
not visible, i.e. on the wrong hemisphere.
The getRa(double, jview.CoordinateTransforming) or getDe(double, jview.CoordinateTransforming) methods return newly allocated shapes,
thus this class can be re-used.
|
Field Summary |
private static double |
STEP
The step-size in degrees. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STEP
private static final double STEP
- The step-size in degrees.
- See Also:
- Constant Field Values
GridShape
public GridShape()
getRa
public static Shape getRa(double ra0,
CoordinateTransforming radec)
- Sets a constant ra. Any shape set before is ereased. This path is
constructed starting at de=-90 and going to de=90 in
STEP
degree steps. It is not closed.
- Returns:
- Null if never drawn
getDe
public static Shape getDe(double de0,
CoordinateTransforming radec)
- Sets a constant dec. Any shape set before is ereased. This path is
constructed starting at ra=0 and going to ra=360 in
STEP/cos(de) degree steps. It is closed.
- Returns:
- Null if never drawn