|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.geom.GridLiner
public class GridLiner
This class is used to lines and text to draw coordinate grid grid overlays. in a Graphics context.
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 Summary | |
---|---|
GridLiner(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. |
Method Summary | |
---|---|
void |
dumpLines()
Display the lines |
Rectangle |
getBounds()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridLiner(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 normalMethod Detail |
---|
public Rectangle getBounds()
public void grid() throws skyview.geometry.TransformationException
skyview.geometry.TransformationException
public void setSexigesimal(boolean flag)
public void dumpLines()
public String[] getLabels()
public double[][][] getLines()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |