public class GridLiner
extends java.lang.Object
This is basically the skyview.data.Gridder
class
from Tom McGlynn's Skyview package.
Some very minor modifications have been made to adapt it to
the TTOOLS plotting requirements.
Constructor | Description |
---|---|
GridLiner(java.awt.Rectangle bounds,
skyview.geometry.Rotater rotater,
skyview.geometry.Projecter projecter,
skyview.geometry.Scaler scaler,
boolean sexagesimal,
double lonCrowd,
double latCrowd) |
Create a new GridLiner object.
|
Modifier and Type | Method | Description |
---|---|---|
void |
dumpLines() |
Display the lines
|
java.awt.Rectangle |
getBounds() |
|
java.lang.String[] |
getLabels() |
Get the labels for the lines
|
double[][][] |
getLines() |
Get the line points
|
void |
grid() |
|
void |
setSexigesimal(boolean flag) |
Set whether you want sexagesimal labels
|
public GridLiner(java.awt.Rectangle bounds, skyview.geometry.Rotater rotater, skyview.geometry.Projecter projecter, skyview.geometry.Scaler scaler, boolean sexagesimal, double lonCrowd, double latCrowd)
lonCrowd
- factor controlling how closely grid lines are spaced
in longitude; 1 is normallatCrowd
- factor controlling how closely grid lines are spaced
in latitude; 1 is normalpublic java.awt.Rectangle getBounds()
public void grid() throws skyview.geometry.TransformationException
skyview.geometry.TransformationException
public void setSexigesimal(boolean flag)
public void dumpLines()
public java.lang.String[] getLabels()
public double[][][] getLines()
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.