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.AngScaleFind 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 doublescale(double delta)Get an appropriate scaling for this coordinate.double[]scaling(double min, double max)Get the desired starting values and scaling interval.voidsetSexagesimal(boolean flag)Do we want sexagesimal coordinates?voidsetTime(boolean flag)Do we want coordinates in time?
-
-
-
Method Detail
-
scale
public double scale(double delta)
Get an appropriate scaling for this coordinate.- Overrides:
scalein 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:
scalingin 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:
setSexagesimalin classskyview.data.AngScale
-
setTime
public void setTime(boolean flag)
Do we want coordinates in time?- Overrides:
setTimein classskyview.data.AngScale
-
-