skyview.data
Class AngScale

java.lang.Object
  extended by skyview.data.AngScale

public class AngScale
extends java.lang.Object

Find an appropriate delta to use for getting grid intervals.


Constructor Summary
AngScale()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 double scale(double delta)
          Get an appropriate scaling for this coordinate.
 double[] scaling(double min, double max)
          Get the desired starting values and scaling interval.
 void setSexagesimal(boolean flag)
          Do we want sexagesimal coordinates?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AngScale

public AngScale()
Method Detail

scale

public double scale(double delta)
Get an appropriate scaling for this coordinate.

Parameters:
delta - The range of the coordinate.
sexagesimal - Do we sant sexagesimal coordinates?

scaling

public double[] scaling(double min,
                        double max)
Get the desired starting values and scaling interval.

Parameters:
min - The minimum coordinate value.
max - The maximum coordinate value
sexagesimal - Do we want sexagesimal coordinates.
Returns:
a two element vector giving the starting value and delta to be used. .

setSexagesimal

public void setSexagesimal(boolean flag)
Do we want sexagesimal coordinates?


main

public static void main(java.lang.String[] args)