Map
Class StraightLineGrid

java.lang.Object
  extended by Map.StraightLineGrid

public class StraightLineGrid
extends java.lang.Object

Author:
David McLaren \n Generates straight Lat/Long lines and Strings for e.g. MapRectProjector

Field Summary
private  double b
           
private  Coordinate3d intersectPoint
           
private  Coordinate3d intersectPoint2
           
(package private)  double latLinesPerDegree
           
private  double lineGradient
           
(package private)  double longLinesPerDegree
           
(package private)  double mapRangeMetres
           
(package private)  double mapRotation
           
(package private)  int numLatLines
           
(package private)  int numLongLines
           
(package private)  int panelHeight
           
(package private)  LatLong panelLowerLeftLL
           
(package private)  LatLong panelLowerRightLL
           
(package private)  LatLong panelTopLeftLL
           
(package private)  LatLong panelTopRightLL
           
(package private)  int panelWidth
           
(package private)  double pixelsPerMetre
           
 
Constructor Summary
StraightLineGrid()
           
 
Method Summary
 void drawGrid(java.awt.Graphics2D g2d, MapRectProjector rectProj)
           
 void setLatLinesPerDegree(double latLinesPerDegree)
           
 void setLongLinesPerDegree(double longLinesPerDegree)
           
 void setMapRangeMetres(double mapRangeMetres)
           
 void setMapRotation(double mapRotation)
           
 void setPanelHeight(int height)
           
 void setPanelWidth(int width)
           
 void setPixelsPerMetre(double pixelsPerMetre)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pixelsPerMetre

double pixelsPerMetre

panelWidth

int panelWidth

panelHeight

int panelHeight

mapRotation

double mapRotation

mapRangeMetres

double mapRangeMetres

panelTopLeftLL

LatLong panelTopLeftLL

panelTopRightLL

LatLong panelTopRightLL

panelLowerLeftLL

LatLong panelLowerLeftLL

panelLowerRightLL

LatLong panelLowerRightLL

latLinesPerDegree

double latLinesPerDegree

longLinesPerDegree

double longLinesPerDegree

numLatLines

int numLatLines

numLongLines

int numLongLines

lineGradient

private double lineGradient

b

private double b

intersectPoint

private Coordinate3d intersectPoint

intersectPoint2

private Coordinate3d intersectPoint2
Constructor Detail

StraightLineGrid

public StraightLineGrid()
Method Detail

drawGrid

public void drawGrid(java.awt.Graphics2D g2d,
                     MapRectProjector rectProj)

setPanelHeight

public void setPanelHeight(int height)

setPanelWidth

public void setPanelWidth(int width)

setPixelsPerMetre

public void setPixelsPerMetre(double pixelsPerMetre)

setLatLinesPerDegree

public void setLatLinesPerDegree(double latLinesPerDegree)

setLongLinesPerDegree

public void setLongLinesPerDegree(double longLinesPerDegree)

setMapRangeMetres

public void setMapRangeMetres(double mapRangeMetres)

setMapRotation

public void setMapRotation(double mapRotation)