Package uk.ac.starlink.ttools.plot2.geom
Class AngScale2
- java.lang.Object
-
- skyview.data.AngScale
-
- uk.ac.starlink.ttools.plot2.geom.AngScale2
-
public class AngScale2 extends skyview.data.AngScale
Find an appropriate delta to use for getting grid intervals.This subclasses the SkyView AngScale class in order to modify its behaviour slightly. The original implementation is copied from the original skyview source.
The changes consist of addding some larger values to the
*Bigs[]
arrays, so that lower crowding values actually yield more sparse grids. That includes values that correspond to no grid lines at all (180/360 degrees for lat/lon).- Author:
- Tom McGlynn, Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description AngScale2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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?void
setTime(boolean flag)
Do we want coordinates in time?
-
-
-
Method Detail
-
scale
public double scale(double delta)
Get an appropriate scaling for this coordinate.- Overrides:
scale
in classskyview.data.AngScale
- Parameters:
delta
- The range of the coordinate.
-
scaling
public double[] scaling(double min, double max)
Get the desired starting values and scaling interval.- Overrides:
scaling
in classskyview.data.AngScale
- Parameters:
min
- The minimum coordinate value.max
- The maximum coordinate value- 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?- Overrides:
setSexagesimal
in classskyview.data.AngScale
-
setTime
public void setTime(boolean flag)
Do we want coordinates in time?- Overrides:
setTime
in classskyview.data.AngScale
-
-