All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class benno.globe.Globe2

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----benno.globe.Globe2

public class Globe2
extends Applet
implements Runnable
Displays a Globe with labels. This version does not attempt to fill in the outlines as the curve filling code doesn't work

Version:
$Revision: 1.23 $
Author:
Ben Clifford, Andrew Smith (patches)

Constructor Index

 o Globe2()

Method Index

 o cartesian(LongLat)
 o destroy()
 o FindNorthangle(Marker, LongLat)
 o init()
 o mouseClick(MouseEvent)
 o paint(Graphics)
 o polar(Position)
 o rotateCurveTo(Curve, LongLat, LongLat)
 o rotateMarkerTo(Marker, LongLat, LongLat)
 o rotateTo(CurveSet, LongLat, LongLat)
 o rotateTo(MarkerSet, LongLat, LongLat)
 o run()
 o showStatus(String)
 o start()
 o stop()
 o thread_init()
 o thread_paint()
 o update(Graphics)
special override for double-buffering.

Constructors

 o Globe2
 public Globe2()

Methods

 o init
 public void init()
Overrides:
init in class Applet
 o thread_init
 public void thread_init()
 o run
 public void run()
 o FindNorthangle
 public LongLat FindNorthangle(Marker northpole,
                               LongLat pos)
 o rotateTo
 public MarkerSet rotateTo(MarkerSet s,
                           LongLat pos,
                           LongLat northangle)
 o rotateTo
 public CurveSet rotateTo(CurveSet s,
                          LongLat pos,
                          LongLat northangle)
 o cartesian
 public Position cartesian(LongLat p)
 o polar
 public LongLat polar(Position p)
 o rotateMarkerTo
 public Marker rotateMarkerTo(Marker m,
                              LongLat pos,
                              LongLat northangle)
 o rotateCurveTo
 public Curve rotateCurveTo(Curve c,
                            LongLat pos,
                            LongLat northangle)
 o update
 public void update(Graphics g)
special override for double-buffering. just calls paint, without clearing the area.

Overrides:
update in class Container
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o thread_paint
 public void thread_paint()
 o start
 public void start()
Overrides:
start in class Applet
 o stop
 public void stop()
Overrides:
stop in class Applet
 o destroy
 public void destroy()
Overrides:
destroy in class Applet
 o showStatus
 public void showStatus(String s)
Overrides:
showStatus in class Applet
 o mouseClick
 public void mouseClick(MouseEvent e)

All Packages  Class Hierarchy  This Package  Previous  Next  Index