Map
Class Compass

java.lang.Object
  extended by Map.Compass

public class Compass
extends java.lang.Object

Draws a compass given the rotation of the map in degrees.

Author:
David McLaren

Field Summary
(package private)  Coordinate3d arrowHead
           
(package private)  Coordinate3d arrowHeadEndLeft
           
(package private)  Coordinate3d arrowHeadEndRight
           
(package private)  Coordinate3d arrowTail
           
(package private)  Coordinate3d compassCentre
           
(package private)  int compassRadius
           
(package private)  double mapRotationDegrees
           
(package private)  java.lang.String northString
           
(package private)  java.awt.Font northStringFont
           
(package private)  int panelWidth
           
(package private)  float stringHeight
           
(package private)  float stringWidth
           
 
Constructor Summary
Compass()
           
 
Method Summary
 void drawCompass(java.awt.Graphics2D g2d, MapRectProjector rectProj)
           
 void setMapRotationDegrees(double mapRotationDegrees)
           
 void setPanelWidth(int panelWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compassRadius

int compassRadius

mapRotationDegrees

double mapRotationDegrees

panelWidth

int panelWidth

compassCentre

Coordinate3d compassCentre

arrowTail

Coordinate3d arrowTail

arrowHead

Coordinate3d arrowHead

arrowHeadEndLeft

Coordinate3d arrowHeadEndLeft

arrowHeadEndRight

Coordinate3d arrowHeadEndRight

northString

java.lang.String northString

stringWidth

float stringWidth

stringHeight

float stringHeight

northStringFont

java.awt.Font northStringFont
Constructor Detail

Compass

public Compass()
Method Detail

drawCompass

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

setMapRotationDegrees

public void setMapRotationDegrees(double mapRotationDegrees)

setPanelWidth

public void setPanelWidth(int panelWidth)