|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.plot.ElevationPlotModel
public class ElevationPlotModel
A model class for plotting elevation vs local sidereal time for a given list of target positions. This class can be used to display the graph using JFreeChart.
Field Summary | |
---|---|
static int |
HOURS_TO_MILLISEC
|
static java.lang.String |
LST
Constant for local sidereal time |
static java.lang.String |
SITE_TIME
Constant for telescope site time |
static java.lang.String |
UT
Constant for UT time |
Constructor Summary | |
---|---|
ElevationPlotModel(SiteDesc site,
java.util.Date date,
TargetDesc[] targets)
Initialize an elevation plot model for the given date, location, and target coordinates. |
|
ElevationPlotModel(SiteDesc site,
java.util.Date date,
TargetDesc[] targets,
java.lang.String timeZoneDisplayName,
java.lang.String timeZoneId)
Initialize an elevation plot model for the given date, location, and target coordinates. |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
register to receive change events from this object whenever the model changes. |
java.util.Date |
getAstronomicalTwilightEnd()
Return the end time of astronomical twilight in the selected time zone |
java.util.Date |
getAstronomicalTwilightStart()
Return the start time of astronomical twilight in the selected time zone |
java.lang.String[] |
getCategories()
Return an array of the available categories |
java.util.Date |
getDate()
Return the date for the plot |
java.util.Date |
getDateForHour(double hour)
Return the date/time given the UT hour between 0 and 24 |
java.util.Date |
getEndDate()
Return the maximum date value |
org.jfree.data.category.IntervalCategoryDataset |
getIntervalCategoryDataset(java.lang.String category)
Return an IntervalCategoryDataset for this model for the given category |
java.util.Date |
getLst(java.util.Date date)
Return the LST date for the given UT date |
double |
getMaxElevation(int targetIndex)
Return the approximate maximum elevation for the given target index |
double |
getMaxElevationTime(int targetIndex)
Return the approximate time in ms of the maximum elevation for the given target index |
java.util.Date |
getNauticalTwilightEnd()
Return the end time of nautical twilight in the selected time zone |
java.util.Date |
getNauticalTwilightStart()
Return the start time of nautical twilight in the selected time zone |
int |
getNumTargets()
Return the number of target objects returned by getTargets() . |
static double |
getObsThreshold()
Return the threshold in degrees above the horizon where targets are considered observable |
org.jfree.data.xy.XYDataset |
getSecondaryDataset()
Return an XYDataset for this model that shows parallactic angle against time |
SiteDesc |
getSite()
Return the name and location of the observatory site |
java.util.Date |
getStartDate()
Return the minimum date value |
java.util.Date |
getSunrise()
Return the official sunrise time in the selected time zone |
java.util.Date |
getSunset()
Return the official sunset time in the selected time zone |
javax.swing.table.TableModel |
getTableModel(int targetIndex)
Return the TableModel corresponding to the given index in the array returned from getTargets() . |
TargetDesc[] |
getTargets()
Return an array of target objects, whose elevations are being plotted |
java.util.TimeZone |
getTimeZone()
Return the time zone to use for the X values |
java.lang.String |
getTimeZoneDisplayName()
Return the time zone display name to use for the X values |
java.lang.String |
getTimeZoneId()
Return the time zone id to use for the X values |
java.lang.String |
getTitle()
Return a title based on the site and the date |
org.jfree.data.xy.XYDataset |
getXYDataset()
Return an XYDataset for this model that shows altitude against time |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
Stop receiving change events from this object. |
void |
setDate(java.util.Date date)
Set the date of the plot |
static void |
setObsThreshold(double d)
Set the threshold in degrees above the horizon where targets are considered observable |
void |
setSampleInterval(int minutes)
Set the sample interval for the plot. |
void |
setSite(SiteDesc site)
Set the observatory site description |
void |
setTargets(TargetDesc[] targets)
Set the array of target objects, whose elevations are being plotted |
void |
setTimeZone(java.lang.String timeZoneDisplayName,
java.lang.String timeZoneId)
Set the time zone to use to display the X values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HOURS_TO_MILLISEC
public static final java.lang.String LST
public static final java.lang.String UT
public static final java.lang.String SITE_TIME
Constructor Detail |
---|
public ElevationPlotModel(SiteDesc site, java.util.Date date, TargetDesc[] targets, java.lang.String timeZoneDisplayName, java.lang.String timeZoneId)
site
- the name and location of the observatory sitedate
- the date for which the plot should be calculatedtargets
- an array of target object descriptionstimeZoneDisplayName
- the display name for the time zone for the X axistimeZoneId
- the time zone id for the X axis (one of "UT", "LST", or some standard time zone id)public ElevationPlotModel(SiteDesc site, java.util.Date date, TargetDesc[] targets)
site
- the name and location of the observatory sitedate
- the date for which the plot should be calculatedtargets
- an array of target object descriptionsMethod Detail |
---|
public void setSampleInterval(int minutes)
public java.lang.String getTitle()
public static double getObsThreshold()
public static void setObsThreshold(double d)
public SiteDesc getSite()
public void setSite(SiteDesc site)
public java.lang.String getTimeZoneDisplayName()
public java.lang.String getTimeZoneId()
public java.util.TimeZone getTimeZone()
public void setTimeZone(java.lang.String timeZoneDisplayName, java.lang.String timeZoneId)
timeZoneDisplayName
- name to display for the time zonetimeZoneId
- the id of the time zonepublic java.util.Date getDate()
public void setDate(java.util.Date date)
public int getNumTargets()
getTargets()
.
public TargetDesc[] getTargets()
public void setTargets(TargetDesc[] targets)
public javax.swing.table.TableModel getTableModel(int targetIndex)
getTargets()
.
public org.jfree.data.xy.XYDataset getXYDataset()
public org.jfree.data.xy.XYDataset getSecondaryDataset()
public double getMaxElevation(int targetIndex)
public double getMaxElevationTime(int targetIndex)
public java.lang.String[] getCategories()
public org.jfree.data.category.IntervalCategoryDataset getIntervalCategoryDataset(java.lang.String category)
public java.util.Date getLst(java.util.Date date)
public java.util.Date getStartDate()
public java.util.Date getEndDate()
public java.util.Date getDateForHour(double hour)
public java.util.Date getSunset()
public java.util.Date getSunrise()
public java.util.Date getNauticalTwilightStart()
public java.util.Date getNauticalTwilightEnd()
public java.util.Date getAstronomicalTwilightStart()
public java.util.Date getAstronomicalTwilightEnd()
public void addChangeListener(javax.swing.event.ChangeListener l)
public void removeChangeListener(javax.swing.event.ChangeListener l)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |