org.jscience.astronomy.solarsystem.artificialsatellites.gui
Class TextEphemerisWriter

java.lang.Object
  extended by org.jscience.astronomy.solarsystem.artificialsatellites.gui.TextEphemerisWriter
All Implemented Interfaces:
EphemerisWriter

public class TextEphemerisWriter
extends java.lang.Object
implements EphemerisWriter

Instances of this class format an ephemeris of StateVector objects as plain text to a JEditorPane instance.


Constructor Summary
TextEphemerisWriter(javax.swing.JEditorPane destination)
          Constructs an instance of this class.
 
Method Summary
 void write(java.lang.String title, java.util.Date dateGenerated, java.util.SortedSet ephemeris, ElementSet tle)
          Writes the ephemeris of StateVector instances to the destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextEphemerisWriter

public TextEphemerisWriter(javax.swing.JEditorPane destination)
Constructs an instance of this class.

Method Detail

write

public void write(java.lang.String title,
                  java.util.Date dateGenerated,
                  java.util.SortedSet ephemeris,
                  ElementSet tle)
Writes the ephemeris of StateVector instances to the destination.

Specified by:
write in interface EphemerisWriter
Parameters:
title - Title of the ephemeris.
dateGenerated - Date that the ephemeris was generated.
ephemeris - Ephemeris of StateVector objects to write.
tle - Two-line element set from which the ephemeris was generated.